Interface CancelSubscriptionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CancelSubscriptionResponse.Builder,,CancelSubscriptionResponse> PricingPlanManagerResponse.Builder,SdkBuilder<CancelSubscriptionResponse.Builder,,CancelSubscriptionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CancelSubscriptionResponse
@Mutable
@NotThreadSafe
public static interface CancelSubscriptionResponse.Builder
extends PricingPlanManagerResponse.Builder, SdkPojo, CopyableBuilder<CancelSubscriptionResponse.Builder,CancelSubscriptionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe updated entity tag for concurrency control.subscription(Consumer<Subscription.Builder> subscription) The details of the subscription with the pending cancellation.subscription(Subscription subscription) The details of the subscription with the pending cancellation.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
-
subscription
The details of the subscription with the pending cancellation. For active subscriptions, a
scheduledChangeof typeCANCELLATIONis included.- Parameters:
subscription- The details of the subscription with the pending cancellation. For active subscriptions, ascheduledChangeof typeCANCELLATIONis included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscription
default CancelSubscriptionResponse.Builder subscription(Consumer<Subscription.Builder> subscription) The details of the subscription with the pending cancellation. For active subscriptions, a
This is a convenience method that creates an instance of thescheduledChangeof typeCANCELLATIONis included.Subscription.Builderavoiding the need to create one manually viaSubscription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscription(Subscription).- Parameters:
subscription- 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:
-
eTag
The updated entity tag for concurrency control.
- Parameters:
eTag- The updated entity tag for concurrency control.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-