Interface MilestoneBasedInvestment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MilestoneBasedInvestment.Builder,,MilestoneBasedInvestment> SdkBuilder<MilestoneBasedInvestment.Builder,,MilestoneBasedInvestment> SdkPojo
- Enclosing class:
MilestoneBasedInvestment
@Mutable
@NotThreadSafe
public static interface MilestoneBasedInvestment.Builder
extends SdkPojo, CopyableBuilder<MilestoneBasedInvestment.Builder,MilestoneBasedInvestment>
-
Method Summary
Modifier and TypeMethodDescriptioninvestmentDisbursedAt(Instant investmentDisbursedAt) The date on which the investment is disbursed to the investment accounts.investmentId(String investmentId) The identifier of the investment, as returned byListContractualInvestments.default MilestoneBasedInvestment.BuilderinvestmentValue(Consumer<Amount.Builder> investmentValue) The total value of the investment, including its currency and amount.investmentValue(Amount investmentValue) The total value of the investment, including its currency and amount.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
-
investmentId
The identifier of the investment, as returned by
ListContractualInvestments. This value is 1–36 characters.- Parameters:
investmentId- The identifier of the investment, as returned byListContractualInvestments. This value is 1–36 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
investmentValue
The total value of the investment, including its currency and amount.
- Parameters:
investmentValue- The total value of the investment, including its currency and amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
investmentValue
The total value of the investment, including its currency and amount.
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 toinvestmentValue(Amount).- Parameters:
investmentValue- 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:
-
investmentDisbursedAt
The date on which the investment is disbursed to the investment accounts.
- Parameters:
investmentDisbursedAt- The date on which the investment is disbursed to the investment accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-