Interface CreateOneTimeCheckoutSessionRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateOneTimeCheckoutSessionRequest.Builder,,CreateOneTimeCheckoutSessionRequest> SdkBuilder<CreateOneTimeCheckoutSessionRequest.Builder,,CreateOneTimeCheckoutSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateOneTimeCheckoutSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app the purchase is for.clientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.items(Collection<CheckoutItem> items) The purchasables to buy.items(Consumer<CheckoutItem.Builder>... items) The purchasables to buy.items(CheckoutItem... items) The purchasables to buy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The URL the buyer's browser is sent to after they complete payment at checkout (the checkout page's success-redirect target).Required.scope(RequestScope scope) Required.The ID of the end user making the purchase.Methods inherited from interface software.amazon.awssdk.services.appmonetization.model.AppMonetizationRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFields
-
Method Details
-
appId
The ID of the app the purchase is for.
- Parameters:
appId- The ID of the app the purchase is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The ID of the end user making the purchase. Do not include personally identifiable or otherwise sensitive data in this value.
- Parameters:
userId- The ID of the end user making the purchase. Do not include personally identifiable or otherwise sensitive data in this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The purchasables to buy. Each line is a usage pack or add-on and the number of units to buy.
- Parameters:
items- The purchasables to buy. Each line is a usage pack or add-on and the number of units to buy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The purchasables to buy. Each line is a usage pack or add-on and the number of units to buy.
- Parameters:
items- The purchasables to buy. Each line is a usage pack or add-on and the number of units to buy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The purchasables to buy. Each line is a usage pack or add-on and the number of units to buy.
This is a convenience method that creates an instance of theCheckoutItem.Builderavoiding the need to create one manually viaCheckoutItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<CheckoutItem>).- Parameters:
items- a consumer that will call methods onCheckoutItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
returnUrl
The URL the buyer's browser is sent to after they complete payment at checkout (the checkout page's success-redirect target). A one-time purchase always requires payment, so there is no cancel-redirect field on this operation.
- Parameters:
returnUrl- The URL the buyer's browser is sent to after they complete payment at checkout (the checkout page's success-redirect target). A one-time purchase always requires payment, so there is no cancel-redirect field on this operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
Required. The environment: live or sandbox.
- Parameters:
scope- Required. The environment: live or sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
Required. The environment: live or sandbox.
- Parameters:
scope- Required. The environment: live or sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateOneTimeCheckoutSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateOneTimeCheckoutSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-