Interface ListSubscriptionsByTopicResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListSubscriptionsByTopicResponse.Builder,
,ListSubscriptionsByTopicResponse> SdkBuilder<ListSubscriptionsByTopicResponse.Builder,
,ListSubscriptionsByTopicResponse> SdkPojo
,SdkResponse.Builder
,SnsResponse.Builder
- Enclosing class:
ListSubscriptionsByTopicResponse
public static interface ListSubscriptionsByTopicResponse.Builder
extends SnsResponse.Builder, SdkPojo, CopyableBuilder<ListSubscriptionsByTopicResponse.Builder,ListSubscriptionsByTopicResponse>
-
Method Summary
Modifier and TypeMethodDescriptionToken to pass along to the nextListSubscriptionsByTopic
request.subscriptions
(Collection<Subscription> subscriptions) A list of subscriptions.subscriptions
(Consumer<Subscription.Builder>... subscriptions) A list of subscriptions.subscriptions
(Subscription... subscriptions) A list of subscriptions.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
-
subscriptions
A list of subscriptions.
- Parameters:
subscriptions
- A list of subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptions
A list of subscriptions.
- Parameters:
subscriptions
- A list of subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptions
ListSubscriptionsByTopicResponse.Builder subscriptions(Consumer<Subscription.Builder>... subscriptions) A list of subscriptions.
This is a convenience method that creates an instance of theSubscription.Builder
avoiding the need to create one manually viaSubscription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubscriptions(List<Subscription>)
.- Parameters:
subscriptions
- a consumer that will call methods onSubscription.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
ListSubscriptionsByTopic
request. This element is returned if there are more subscriptions to retrieve.- Parameters:
nextToken
- Token to pass along to the nextListSubscriptionsByTopic
request. This element is returned if there are more subscriptions to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-