Interface ListSubscriptionsByTopicResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSubscriptionsByTopicResponse.Builder,,ListSubscriptionsByTopicResponse> SdkBuilder<ListSubscriptionsByTopicResponse.Builder,,ListSubscriptionsByTopicResponse> SdkPojo,SdkResponse.Builder,SnsResponse.Builder
- Enclosing class:
ListSubscriptionsByTopicResponse
@Mutable
@NotThreadSafe
public static interface ListSubscriptionsByTopicResponse.Builder
extends SnsResponse.Builder, SdkPojo, CopyableBuilder<ListSubscriptionsByTopicResponse.Builder,ListSubscriptionsByTopicResponse>
-
Method Summary
Modifier and TypeMethodDescriptionToken to pass along to the nextListSubscriptionsByTopicrequest.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods 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.Builderavoiding the need to create one manually viaSubscription.builder().When the
Consumercompletes,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
ListSubscriptionsByTopicrequest. This element is returned if there are more subscriptions to retrieve.- Parameters:
nextToken- Token to pass along to the nextListSubscriptionsByTopicrequest. 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.
-