Interface InvestmentDistribution.Builder

  • Method Details

    • accountId

      InvestmentDistribution.Builder accountId(String 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

      InvestmentDistribution.Builder investmentAmount(Amount 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

      default InvestmentDistribution.Builder investmentAmount(Consumer<Amount.Builder> investmentAmount)

      The monetary value allocated to the recipient account.

      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 investmentAmount(Amount).

      Parameters:
      investmentAmount - 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: