Interface AttestationDetails.Builder

  • Method Details

    • attestationValue

      AttestationDetails.Builder attestationValue(AttestationValue attestationValue)

      The value being attested, expressed as either a monetary amount or one or more quantities. Exactly one form is set.

      Parameters:
      attestationValue - The value being attested, expressed as either a monetary amount or one or more quantities. Exactly one form is set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attestationValue

      default AttestationDetails.Builder attestationValue(Consumer<AttestationValue.Builder> attestationValue)

      The value being attested, expressed as either a monetary amount or one or more quantities. Exactly one form is set.

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

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

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

      AttestationDetails.Builder investmentDistributions(Collection<InvestmentDistribution> investmentDistributions)

      The distribution of the resulting investment across the eligible investment accounts on the contract. If you omit this value, the full investment is allocated to the single eligible investment account on the contract. This value is required when multiple investment accounts are eligible. When you provide this value, the sum of all distributions must equal the resulting monetary investment value (the attested amount, or the value computed from the attested quantities using the investment multipliers). The list contains at most 200 distributions.

      Parameters:
      investmentDistributions - The distribution of the resulting investment across the eligible investment accounts on the contract. If you omit this value, the full investment is allocated to the single eligible investment account on the contract. This value is required when multiple investment accounts are eligible. When you provide this value, the sum of all distributions must equal the resulting monetary investment value (the attested amount, or the value computed from the attested quantities using the investment multipliers). The list contains at most 200 distributions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • investmentDistributions

      AttestationDetails.Builder investmentDistributions(InvestmentDistribution... investmentDistributions)

      The distribution of the resulting investment across the eligible investment accounts on the contract. If you omit this value, the full investment is allocated to the single eligible investment account on the contract. This value is required when multiple investment accounts are eligible. When you provide this value, the sum of all distributions must equal the resulting monetary investment value (the attested amount, or the value computed from the attested quantities using the investment multipliers). The list contains at most 200 distributions.

      Parameters:
      investmentDistributions - The distribution of the resulting investment across the eligible investment accounts on the contract. If you omit this value, the full investment is allocated to the single eligible investment account on the contract. This value is required when multiple investment accounts are eligible. When you provide this value, the sum of all distributions must equal the resulting monetary investment value (the attested amount, or the value computed from the attested quantities using the investment multipliers). The list contains at most 200 distributions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • investmentDistributions

      AttestationDetails.Builder investmentDistributions(Consumer<InvestmentDistribution.Builder>... investmentDistributions)

      The distribution of the resulting investment across the eligible investment accounts on the contract. If you omit this value, the full investment is allocated to the single eligible investment account on the contract. This value is required when multiple investment accounts are eligible. When you provide this value, the sum of all distributions must equal the resulting monetary investment value (the attested amount, or the value computed from the attested quantities using the investment multipliers). The list contains at most 200 distributions.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to investmentDistributions(List<InvestmentDistribution>).

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