Interface Investment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Investment.Builder,,Investment> SdkBuilder<Investment.Builder,,Investment> SdkPojo
- Enclosing class:
Investment
-
Method Summary
Modifier and TypeMethodDescriptiondefault Investment.BuildermilestoneBasedInvestment(Consumer<MilestoneBasedInvestment.Builder> milestoneBasedInvestment) An investment with a fixed value that is disbursed on a schedule.milestoneBasedInvestment(MilestoneBasedInvestment milestoneBasedInvestment) An investment with a fixed value that is disbursed on a schedule.default Investment.BuilderoutcomeBasedInvestment(Consumer<OutcomeBasedInvestment.Builder> outcomeBasedInvestment) An investment that is awarded upon completion of a defined outcome.outcomeBasedInvestment(OutcomeBasedInvestment outcomeBasedInvestment) An investment that is awarded upon completion of a defined outcome.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
-
milestoneBasedInvestment
An investment with a fixed value that is disbursed on a schedule. This member is set for a milestone-based investment and corresponds to the
MILESTONE_BASEDinvestment type.- Parameters:
milestoneBasedInvestment- An investment with a fixed value that is disbursed on a schedule. This member is set for a milestone-based investment and corresponds to theMILESTONE_BASEDinvestment type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
milestoneBasedInvestment
default Investment.Builder milestoneBasedInvestment(Consumer<MilestoneBasedInvestment.Builder> milestoneBasedInvestment) An investment with a fixed value that is disbursed on a schedule. This member is set for a milestone-based investment and corresponds to the
This is a convenience method that creates an instance of theMILESTONE_BASEDinvestment type.MilestoneBasedInvestment.Builderavoiding the need to create one manually viaMilestoneBasedInvestment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomilestoneBasedInvestment(MilestoneBasedInvestment).- Parameters:
milestoneBasedInvestment- a consumer that will call methods onMilestoneBasedInvestment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outcomeBasedInvestment
An investment that is awarded upon completion of a defined outcome. This member is set for an outcome-based (attestable) investment and corresponds to the
OUTCOME_BASEDinvestment type.- Parameters:
outcomeBasedInvestment- An investment that is awarded upon completion of a defined outcome. This member is set for an outcome-based (attestable) investment and corresponds to theOUTCOME_BASEDinvestment type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outcomeBasedInvestment
default Investment.Builder outcomeBasedInvestment(Consumer<OutcomeBasedInvestment.Builder> outcomeBasedInvestment) An investment that is awarded upon completion of a defined outcome. This member is set for an outcome-based (attestable) investment and corresponds to the
This is a convenience method that creates an instance of theOUTCOME_BASEDinvestment type.OutcomeBasedInvestment.Builderavoiding the need to create one manually viaOutcomeBasedInvestment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutcomeBasedInvestment(OutcomeBasedInvestment).- Parameters:
outcomeBasedInvestment- a consumer that will call methods onOutcomeBasedInvestment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-