Interface ListSubscriptionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSubscriptionsResponse.Builder,,ListSubscriptionsResponse> PricingPlanManagerResponse.Builder,SdkBuilder<ListSubscriptionsResponse.Builder,,ListSubscriptionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSubscriptionsResponse
@Mutable
@NotThreadSafe
public static interface ListSubscriptionsResponse.Builder
extends PricingPlanManagerResponse.Builder, SdkPojo, CopyableBuilder<ListSubscriptionsResponse.Builder,ListSubscriptionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token that indicates there are more results available.subscriptionSummaries(Collection<SubscriptionSummary> subscriptionSummaries) The list of subscription summaries for the calling account.subscriptionSummaries(Consumer<SubscriptionSummary.Builder>... subscriptionSummaries) The list of subscription summaries for the calling account.subscriptionSummaries(SubscriptionSummary... subscriptionSummaries) The list of subscription summaries for the calling account.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pricingplanmanager.model.PricingPlanManagerResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkHttpResponse
-
Method Details
-
subscriptionSummaries
ListSubscriptionsResponse.Builder subscriptionSummaries(Collection<SubscriptionSummary> subscriptionSummaries) The list of subscription summaries for the calling account.
- Parameters:
subscriptionSummaries- The list of subscription summaries for the calling account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptionSummaries
ListSubscriptionsResponse.Builder subscriptionSummaries(SubscriptionSummary... subscriptionSummaries) The list of subscription summaries for the calling account.
- Parameters:
subscriptionSummaries- The list of subscription summaries for the calling account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptionSummaries
ListSubscriptionsResponse.Builder subscriptionSummaries(Consumer<SubscriptionSummary.Builder>... subscriptionSummaries) The list of subscription summaries for the calling account.
This is a convenience method that creates an instance of theSubscriptionSummary.Builderavoiding the need to create one manually viaSubscriptionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscriptionSummaries(List<SubscriptionSummary>).- Parameters:
subscriptionSummaries- a consumer that will call methods onSubscriptionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token that indicates there are more results available. Pass this value in a subsequent
ListSubscriptionsrequest to retrieve the next page of results.- Parameters:
nextToken- A token that indicates there are more results available. Pass this value in a subsequentListSubscriptionsrequest to retrieve the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-