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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListSubscriptionsByTopicResponse.Builder
nextToken(String nextToken)
Token to pass along to the nextListSubscriptionsByTopic
request.ListSubscriptionsByTopicResponse.Builder
subscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.ListSubscriptionsByTopicResponse.Builder
subscriptions(Consumer<Subscription.Builder>... subscriptions)
A list of subscriptions.ListSubscriptionsByTopicResponse.Builder
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 Detail
-
subscriptions
ListSubscriptionsByTopicResponse.Builder subscriptions(Collection<Subscription> 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(Subscription... 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 to#subscriptions(List
.) - 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:
#subscriptions(java.util.Collection
)
-
nextToken
ListSubscriptionsByTopicResponse.Builder nextToken(String 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.
-
-