Interface ListTopicsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListTopicsResponse.Builder,ListTopicsResponse>,SdkBuilder<ListTopicsResponse.Builder,ListTopicsResponse>,SdkPojo,SdkResponse.Builder,SnsResponse.Builder
- Enclosing class:
- ListTopicsResponse
@Mutable @NotThreadSafe public static interface ListTopicsResponse.Builder extends SnsResponse.Builder, SdkPojo, CopyableBuilder<ListTopicsResponse.Builder,ListTopicsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListTopicsResponse.BuildernextToken(String nextToken)Token to pass along to the nextListTopicsrequest.ListTopicsResponse.Buildertopics(Collection<Topic> topics)A list of topic ARNs.ListTopicsResponse.Buildertopics(Consumer<Topic.Builder>... topics)A list of topic ARNs.ListTopicsResponse.Buildertopics(Topic... topics)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, sdkFieldNameToField, 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 Detail
-
topics
ListTopicsResponse.Builder topics(Collection<Topic> 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
ListTopicsResponse.Builder topics(Topic... 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
ListTopicsResponse.Builder topics(Consumer<Topic.Builder>... topics)
A list of topic ARNs.
This is a convenience method that creates an instance of theTopic.Builderavoiding the need to create one manually viaTopic.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#topics(List.) - 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:
#topics(java.util.Collection)
-
nextToken
ListTopicsResponse.Builder nextToken(String nextToken)
Token to pass along to the next
ListTopicsrequest. This element is returned if there are additional topics to retrieve.- Parameters:
nextToken- Token to pass along to the nextListTopicsrequest. 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.
-
-