Interface CreateBillingPortalSessionRequest.Builder
- All Superinterfaces:
AppMonetizationRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateBillingPortalSessionRequest.Builder,,CreateBillingPortalSessionRequest> SdkBuilder<CreateBillingPortalSessionRequest.Builder,,CreateBillingPortalSessionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateBillingPortalSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the app the portal is for.clientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.refreshUrl(String refreshUrl) A URL in your app.A URL in your app.Required.scope(RequestScope scope) Required.sessionDurationSeconds(Integer sessionDurationSeconds) The lifetime of the hosted session, in seconds, counted from this call.The ID of the end user the portal is for.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 portal is for.
- Parameters:
appId- The ID of the app the portal is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The ID of the end user the portal is for. Do not include personally identifiable or otherwise sensitive data in this value.
- Parameters:
userId- The ID of the end user the portal is for. 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.
-
returnUrl
A URL in your app. A plan checkout started from the portal doesn't redirect here: after payment, the buyer returns to the portal's My subscription page. Bound into the session and reused for every checkout the buyer launches from the portal.
- Parameters:
returnUrl- A URL in your app. A plan checkout started from the portal doesn't redirect here: after payment, the buyer returns to the portal's My subscription page. Bound into the session and reused for every checkout the buyer launches from the portal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshUrl
A URL in your app. A plan checkout started from the portal doesn't redirect here: if the buyer cancels, they return to the portal's plans page. Bound into the session alongside returnUrl.
- Parameters:
refreshUrl- A URL in your app. A plan checkout started from the portal doesn't redirect here: if the buyer cancels, they return to the portal's plans page. Bound into the session alongside returnUrl.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionDurationSeconds
The lifetime of the hosted session, in seconds, counted from this call. Omit to use the service default. It does not set how long billingPortalUrl works; see expiresAt.
- Parameters:
sessionDurationSeconds- The lifetime of the hosted session, in seconds, counted from this call. Omit to use the service default. It does not set how long billingPortalUrl works; see expiresAt.- 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
CreateBillingPortalSessionRequest.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
CreateBillingPortalSessionRequest.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.
-