Interface GetSubscriptionResponse.Builder
- All Superinterfaces:
AppMonetizationResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetSubscriptionResponse.Builder,,GetSubscriptionResponse> SdkBuilder<GetSubscriptionResponse.Builder,,GetSubscriptionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSubscriptionResponse
@Mutable
@NotThreadSafe
public static interface GetSubscriptionResponse.Builder
extends AppMonetizationResponse.Builder, SdkPojo, CopyableBuilder<GetSubscriptionResponse.Builder,GetSubscriptionResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncurrentPeriodEndsAt(Instant currentPeriodEndsAt) The time when the current billing period ends and the next begins.default GetSubscriptionResponse.BuilderpendingChange(Consumer<PendingChange.Builder> pendingChange) The scheduled change to the subscription, if one is pending; null otherwise.pendingChange(PendingChange pendingChange) The scheduled change to the subscription, if one is pending; null otherwise.default GetSubscriptionResponse.Buildersubscription(Consumer<Subscription.Builder> subscription) The user's current subscription.subscription(Subscription subscription) The user's current subscription.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 user's current subscription.
- Parameters:
subscription- The user's current subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscription
The user's current subscription.
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:
-
pendingChange
The scheduled change to the subscription, if one is pending; null otherwise.
- Parameters:
pendingChange- The scheduled change to the subscription, if one is pending; null otherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingChange
default GetSubscriptionResponse.Builder pendingChange(Consumer<PendingChange.Builder> pendingChange) The scheduled change to the subscription, if one is pending; null otherwise.
This is a convenience method that creates an instance of thePendingChange.Builderavoiding the need to create one manually viaPendingChange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topendingChange(PendingChange).- Parameters:
pendingChange- a consumer that will call methods onPendingChange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentPeriodEndsAt
The time when the current billing period ends and the next begins. Pending changes take effect and usage quotas reset at this time. Null for one-time subscriptions.
- Parameters:
currentPeriodEndsAt- The time when the current billing period ends and the next begins. Pending changes take effect and usage quotas reset at this time. Null for one-time subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-