Interface ProcessPaymentRequest.Builder

  • Method Details

    • userId

      The user ID associated with this payment.

      Parameters:
      userId - The user ID associated with this payment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentName

      ProcessPaymentRequest.Builder agentName(String agentName)

      The agent name associated with this request, used for observability.

      Parameters:
      agentName - The agent name associated with this request, used for observability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentManagerArn

      ProcessPaymentRequest.Builder paymentManagerArn(String paymentManagerArn)

      The ARN of the payment manager.

      Parameters:
      paymentManagerArn - The ARN of the payment manager.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentSessionId

      ProcessPaymentRequest.Builder paymentSessionId(String paymentSessionId)

      The ID of the payment session.

      Parameters:
      paymentSessionId - The ID of the payment session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentInstrumentId

      ProcessPaymentRequest.Builder paymentInstrumentId(String paymentInstrumentId)

      The ID of the payment instrument to use. For the CRYPTO_X402 and MPP payment types, specify the ID of a payment instrument that you created. For the AWS_BILLING_X402 payment type, specify the service-managed instrument ID aws.agentcorepayments.awsbilling.v1. You don't create this instrument; it's available for any payment manager that has an AWS Billing payment connector.

      Parameters:
      paymentInstrumentId - The ID of the payment instrument to use. For the CRYPTO_X402 and MPP payment types, specify the ID of a payment instrument that you created. For the AWS_BILLING_X402 payment type, specify the service-managed instrument ID aws.agentcorepayments.awsbilling.v1. You don't create this instrument; it's available for any payment manager that has an AWS Billing payment connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentType

      ProcessPaymentRequest.Builder paymentType(String paymentType)

      The type of payment to process.

      Parameters:
      paymentType - The type of payment to process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentType

      ProcessPaymentRequest.Builder paymentType(PaymentType paymentType)

      The type of payment to process.

      Parameters:
      paymentType - The type of payment to process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentInput

      ProcessPaymentRequest.Builder paymentInput(PaymentInput paymentInput)

      The payment input details specific to the payment type.

      Parameters:
      paymentInput - The payment input details specific to the payment type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentInput

      default ProcessPaymentRequest.Builder paymentInput(Consumer<PaymentInput.Builder> paymentInput)

      The payment input details specific to the payment type.

      This is a convenience method that creates an instance of the PaymentInput.Builder avoiding the need to create one manually via PaymentInput.builder().

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

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

      ProcessPaymentRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      Parameters:
      clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      ProcessPaymentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.