Interface SessionLimits.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SessionLimits.Builder,,SessionLimits> SdkBuilder<SessionLimits.Builder,,SessionLimits> SdkPojo
- Enclosing class:
SessionLimits
@Mutable
@NotThreadSafe
public static interface SessionLimits.Builder
extends SdkPojo, CopyableBuilder<SessionLimits.Builder,SessionLimits>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SessionLimits.BuildermaxSpendAmount(Consumer<Amount.Builder> maxSpendAmount) The maximum amount that can be spent in this session.maxSpendAmount(Amount maxSpendAmount) The maximum amount that can be spent in 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
-
maxSpendAmount
The maximum amount that can be spent in this session.
- Parameters:
maxSpendAmount- The maximum amount that can be spent in this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSpendAmount
The maximum amount that can be spent in this session.
This is a convenience method that creates an instance of theAmount.Builderavoiding the need to create one manually viaAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomaxSpendAmount(Amount).- Parameters:
maxSpendAmount- a consumer that will call methods onAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-