Interface CancelSubscriptionResponse.Builder
- All Superinterfaces:
AppMonetizationResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<CancelSubscriptionResponse.Builder,,CancelSubscriptionResponse> SdkBuilder<CancelSubscriptionResponse.Builder,,CancelSubscriptionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CancelSubscriptionResponse
@Mutable
@NotThreadSafe
public static interface CancelSubscriptionResponse.Builder
extends AppMonetizationResponse.Builder, SdkPojo, CopyableBuilder<CancelSubscriptionResponse.Builder,CancelSubscriptionResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncancellationEffectiveAt(Instant cancellationEffectiveAt) The time when the cancellation takes effect, at the end of the current billing period.subscription(Consumer<Subscription.Builder> subscription) The subscription as it stands after the cancellation is scheduled.subscription(Subscription subscription) The subscription as it stands after the cancellation is scheduled.Methods inherited from interface software.amazon.awssdk.services.appmonetization.model.AppMonetizationResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkHttpResponse
-
Method Details
-
subscription
The subscription as it stands after the cancellation is scheduled.
- Parameters:
subscription- The subscription as it stands after the cancellation is scheduled.- 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 subscription as it stands after the cancellation is scheduled.
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 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:
-
cancellationEffectiveAt
The time when the cancellation takes effect, at the end of the current billing period. The subscription remains active until this time.
- Parameters:
cancellationEffectiveAt- The time when the cancellation takes effect, at the end of the current billing period. The subscription remains active until this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-