Class CreatePaymentSessionRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<CreatePaymentSessionRequest.Builder,CreatePaymentSessionRequest>

@Generated("software.amazon.awssdk:codegen") public final class CreatePaymentSessionRequest extends BedrockAgentCoreRequest implements ToCopyableBuilder<CreatePaymentSessionRequest.Builder,CreatePaymentSessionRequest>

Request structure for creating a payment session.

  • Method Details

    • userId

      public final String userId()

      The user ID associated with this payment session.

      Returns:
      The user ID associated with this payment session.
    • agentName

      public final String agentName()

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

      Returns:
      The agent name associated with this request, used for observability.
    • paymentManagerArn

      public final String paymentManagerArn()

      The ARN of the payment manager that owns this session.

      Returns:
      The ARN of the payment manager that owns this session.
    • limits

      public final SessionLimits limits()

      The spending limits for this payment session.

      Returns:
      The spending limits for this payment session.
    • expiryTimeInMinutes

      public final Integer expiryTimeInMinutes()

      The session expiry time in minutes. Must be between 15 and 480 minutes.

      Returns:
      The session expiry time in minutes. Must be between 15 and 480 minutes.
    • clientToken

      public final String clientToken()

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

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

      Specified by:
      toBuilder in interface ToCopyableBuilder<CreatePaymentSessionRequest.Builder,CreatePaymentSessionRequest>
      Specified by:
      toBuilder in class BedrockAgentCoreRequest
    • builder

      public static CreatePaymentSessionRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends CreatePaymentSessionRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo