Interface PaymentSession.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PaymentSession.Builder,,PaymentSession> SdkBuilder<PaymentSession.Builder,,PaymentSession> SdkPojo
- Enclosing class:
PaymentSession
-
Method Summary
Modifier and TypeMethodDescriptiondefault PaymentSession.BuilderavailableLimits(Consumer<AvailableLimits.Builder> availableLimits) The available limits for this session after accounting for processed payments.availableLimits(AvailableLimits availableLimits) The available limits for this session after accounting for processed payments.The timestamp when this payment session was created.expiryTimeInMinutes(Integer expiryTimeInMinutes) The session expiry time in minutes.default PaymentSession.Builderlimits(Consumer<SessionLimits.Builder> limits) The spending limits for this session.limits(SessionLimits limits) The spending limits for this session.paymentManagerArn(String paymentManagerArn) The ARN of the payment manager that owns this session.paymentSessionId(String paymentSessionId) The unique identifier for this payment session.The timestamp when this payment session was last updated.The user ID associated with this payment session.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
-
paymentSessionId
The unique identifier for this payment session.
- Parameters:
paymentSessionId- The unique identifier for this payment session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentManagerArn
The ARN of the payment manager that owns this session.
- Parameters:
paymentManagerArn- The ARN of the payment manager that owns this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
The spending limits for this session.
- Parameters:
limits- The spending limits for this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
The spending limits for this session.
This is a convenience method that creates an instance of theSessionLimits.Builderavoiding the need to create one manually viaSessionLimits.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolimits(SessionLimits).- Parameters:
limits- a consumer that will call methods onSessionLimits.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userId
The user ID associated with this payment session.
- Parameters:
userId- The user ID associated with this payment session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiryTimeInMinutes
The session expiry time in minutes.
- Parameters:
expiryTimeInMinutes- The session expiry time in minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when this payment session was created.
- Parameters:
createdAt- The timestamp when this payment session was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableLimits
The available limits for this session after accounting for processed payments.
- Parameters:
availableLimits- The available limits for this session after accounting for processed payments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableLimits
The available limits for this session after accounting for processed payments.
This is a convenience method that creates an instance of theAvailableLimits.Builderavoiding the need to create one manually viaAvailableLimits.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toavailableLimits(AvailableLimits).- Parameters:
availableLimits- a consumer that will call methods onAvailableLimits.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updatedAt
The timestamp when this payment session was last updated.
- Parameters:
updatedAt- The timestamp when this payment session was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-