Interface InvestmentRestriction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InvestmentRestriction.Builder,,InvestmentRestriction> SdkBuilder<InvestmentRestriction.Builder,,InvestmentRestriction> SdkPojo
- Enclosing class:
InvestmentRestriction
@Mutable
@NotThreadSafe
public static interface InvestmentRestriction.Builder
extends SdkPojo, CopyableBuilder<InvestmentRestriction.Builder,InvestmentRestriction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InvestmentRestriction.Builderamount(Consumer<Amount.Builder> amount) The maximum monetary amount allowed under the restriction.The maximum monetary amount allowed under the restriction.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
-
amount
The maximum monetary amount allowed under the restriction.
- Parameters:
amount- The maximum monetary amount allowed under the restriction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amount
The maximum monetary amount allowed under the restriction.
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 toamount(Amount).- Parameters:
amount- 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:
-