Interface AmazonPayConfigurationInput.Builder

  • 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

      AmazonPayConfigurationInput.Builder authorizationToken(String 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

      AmazonPayConfigurationInput.Builder authorizationTokenSource(String 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 the SecretReference.Builder avoiding the need to create one manually via SecretReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to authorizationTokenConfig(SecretReference).

      Parameters:
      authorizationTokenConfig - a consumer that will call methods on SecretReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • environment

      AmazonPayConfigurationInput.Builder environment(String 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

      AmazonPayConfigurationInput.Builder amazonPayRegion(String 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

      AmazonPayConfigurationInput.Builder amazonPayRegion(AmazonPayRegionType 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: