Interface MilestoneBasedInvestment.Builder

  • Method Details

    • investmentId

      MilestoneBasedInvestment.Builder investmentId(String 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 by ListContractualInvestments. This value is 1–36 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • investmentValue

      MilestoneBasedInvestment.Builder investmentValue(Amount 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

      default MilestoneBasedInvestment.Builder investmentValue(Consumer<Amount.Builder> investmentValue)

      The total value of the investment, including its currency and amount.

      This is a convenience method that creates an instance of the Amount.Builder avoiding the need to create one manually via Amount.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to investmentValue(Amount).

      Parameters:
      investmentValue - a consumer that will call methods on Amount.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • investmentDisbursedAt

      MilestoneBasedInvestment.Builder investmentDisbursedAt(Instant 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.