Interface ListTopicsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListTopicsResponse.Builder,
,ListTopicsResponse> SdkBuilder<ListTopicsResponse.Builder,
,ListTopicsResponse> SdkPojo
,SdkResponse.Builder
,SnsResponse.Builder
- Enclosing class:
ListTopicsResponse
public static interface ListTopicsResponse.Builder
extends SnsResponse.Builder, SdkPojo, CopyableBuilder<ListTopicsResponse.Builder,ListTopicsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionToken to pass along to the nextListTopics
request.topics
(Collection<Topic> topics) A list of topic ARNs.topics
(Consumer<Topic.Builder>... topics) A list of topic ARNs.A list of topic ARNs.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.sns.model.SnsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
topics
A list of topic ARNs.
- Parameters:
topics
- A list of topic ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topics
A list of topic ARNs.
- Parameters:
topics
- A list of topic ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topics
A list of topic ARNs.
This is a convenience method that creates an instance of theTopic.Builder
avoiding the need to create one manually viaTopic.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totopics(List<Topic>)
.- Parameters:
topics
- a consumer that will call methods onTopic.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Token to pass along to the next
ListTopics
request. This element is returned if there are additional topics to retrieve.- Parameters:
nextToken
- Token to pass along to the nextListTopics
request. This element is returned if there are additional topics to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-