Interface PaymentSession.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PaymentSession.Builder,,PaymentSession> SdkBuilder<PaymentSession.Builder,,PaymentSession> SdkPojo
- Enclosing class:
PaymentSession
@Mutable
@NotThreadSafe
public static interface PaymentSession.Builder
extends SdkPojo, CopyableBuilder<PaymentSession.Builder,PaymentSession>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PaymentSession.BuilderavailableLimits(Consumer<AvailableLimits.Builder> availableLimits) The current available spending limits.availableLimits(AvailableLimits availableLimits) The current available spending limits.The timestamp when the session was created.expiryTimeInMinutes(Integer expiryTimeInMinutes) The session expiry time in minutes.default PaymentSession.Builderlimits(Consumer<SessionLimits.Builder> limits) The spending limits for the payment session.limits(SessionLimits limits) The spending limits for the payment session.paymentManagerArn(String paymentManagerArn) The ARN of the payment manager that owns this session.paymentSessionId(String paymentSessionId) The unique identifier of the payment session.The timestamp when the session was last updated.The user ID associated with this 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 of the payment session.
- Parameters:
paymentSessionId- The unique identifier of the 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 the payment session.
- Parameters:
limits- The spending limits for the payment session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
The spending limits for the payment 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 session.
- Parameters:
userId- The user ID associated with this 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 the session was created.
- Parameters:
createdAt- The timestamp when the session was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableLimits
The current available spending limits.
- Parameters:
availableLimits- The current available spending limits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableLimits
The current available spending limits.
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 the session was last updated.
- Parameters:
updatedAt- The timestamp when the session was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-