Interface ListSubscriptionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSubscriptionsResponse.Builder,,ListSubscriptionsResponse> SdkBuilder<ListSubscriptionsResponse.Builder,,ListSubscriptionsResponse> SdkPojo,SdkResponse.Builder,SnsResponse.Builder
- Enclosing class:
ListSubscriptionsResponse
public static interface ListSubscriptionsResponse.Builder
extends SnsResponse.Builder, SdkPojo, CopyableBuilder<ListSubscriptionsResponse.Builder,ListSubscriptionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionToken to pass along to the nextListSubscriptionsrequest.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, 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
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
ListSubscriptionsrequest. This element is returned if there are more subscriptions to retrieve.- Parameters:
nextToken- Token to pass along to the nextListSubscriptionsrequest. 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.
-