Interface AmazonPayConfigurationInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AmazonPayConfigurationInput.Builder,,AmazonPayConfigurationInput> SdkBuilder<AmazonPayConfigurationInput.Builder,,AmazonPayConfigurationInput> SdkPojo
- Enclosing class:
AmazonPayConfigurationInput
-
Method Summary
Modifier and TypeMethodDescriptionamazonPayRegion(String amazonPayRegion) The Amazon Pay region the merchant's authorization token belongs to (NA or EU).amazonPayRegion(AmazonPayRegionType amazonPayRegion) The Amazon Pay region the merchant's authorization token belongs to (NA or EU).authorizationToken(String authorizationToken) Inline MWSAuthToken or delegated authorization token (MANAGED).authorizationTokenConfig(Consumer<SecretReference.Builder> authorizationTokenConfig) Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL).authorizationTokenConfig(SecretReference authorizationTokenConfig) Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL).authorizationTokenSource(String authorizationTokenSource) Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.authorizationTokenSource(SecretSourceType authorizationTokenSource) Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.environment(String environment) Amazon Pay environment: LIVE or SANDBOX.environment(AmazonPayEnvironmentType environment) Amazon Pay environment: LIVE or SANDBOX.merchantId(String merchantId) Amazon Pay merchant ID (Seller ID) of the merchant account.Amazon Pay client store ID of the merchant's store.Methods 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
-
merchantId
Amazon Pay merchant ID (Seller ID) of the merchant account.
- Parameters:
merchantId- Amazon Pay merchant ID (Seller ID) of the merchant account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storeId
Amazon Pay client store ID of the merchant's store.
- Parameters:
storeId- Amazon Pay client store ID of the merchant's store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationToken
Inline MWSAuthToken or delegated authorization token (MANAGED). Mutually exclusive with authorizationTokenConfig. AgentCore stores it as given and exchanges an MWSAuthToken at vend.
- Parameters:
authorizationToken- Inline MWSAuthToken or delegated authorization token (MANAGED). Mutually exclusive with authorizationTokenConfig. AgentCore stores it as given and exchanges an MWSAuthToken at vend.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationTokenSource
Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.
- Parameters:
authorizationTokenSource- Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authorizationTokenSource
AmazonPayConfigurationInput.Builder authorizationTokenSource(SecretSourceType authorizationTokenSource) Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.
- Parameters:
authorizationTokenSource- Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authorizationTokenConfig
AmazonPayConfigurationInput.Builder authorizationTokenConfig(SecretReference authorizationTokenConfig) Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL). Mutually exclusive with authorizationToken.
- Parameters:
authorizationTokenConfig- Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL). Mutually exclusive with authorizationToken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationTokenConfig
default AmazonPayConfigurationInput.Builder authorizationTokenConfig(Consumer<SecretReference.Builder> authorizationTokenConfig) Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL). Mutually exclusive with authorizationToken.
This is a convenience method that creates an instance of theSecretReference.Builderavoiding the need to create one manually viaSecretReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorizationTokenConfig(SecretReference).- Parameters:
authorizationTokenConfig- a consumer that will call methods onSecretReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environment
Amazon Pay environment: LIVE or SANDBOX.
- Parameters:
environment- Amazon Pay environment: LIVE or SANDBOX.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environment
Amazon Pay environment: LIVE or SANDBOX.
- Parameters:
environment- Amazon Pay environment: LIVE or SANDBOX.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amazonPayRegion
The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.
- Parameters:
amazonPayRegion- The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amazonPayRegion
The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.
- Parameters:
amazonPayRegion- The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-