Interface InvestmentDistribution.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InvestmentDistribution.Builder,,InvestmentDistribution> SdkBuilder<InvestmentDistribution.Builder,,InvestmentDistribution> SdkPojo
- Enclosing class:
InvestmentDistribution
@Mutable
@NotThreadSafe
public static interface InvestmentDistribution.Builder
extends SdkPojo, CopyableBuilder<InvestmentDistribution.Builder,InvestmentDistribution>
-
Method Summary
Modifier and TypeMethodDescriptionThe recipient Amazon Web Services account ID that receives this portion of the investment.default InvestmentDistribution.BuilderinvestmentAmount(Consumer<Amount.Builder> investmentAmount) The monetary value allocated to the recipient account.investmentAmount(Amount investmentAmount) The monetary value allocated to the recipient account.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
-
accountId
The recipient Amazon Web Services account ID that receives this portion of the investment. This must be one of the eligible investment accounts on the contract.
- Parameters:
accountId- The recipient Amazon Web Services account ID that receives this portion of the investment. This must be one of the eligible investment accounts on the contract.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
investmentAmount
The monetary value allocated to the recipient account.
- Parameters:
investmentAmount- The monetary value allocated to the recipient account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
investmentAmount
The monetary value allocated to the recipient account.
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 toinvestmentAmount(Amount).- Parameters:
investmentAmount- 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:
-