Interface AttestationValue.Builder

  • Method Details

    • attestationAmount

      AttestationValue.Builder attestationAmount(Amount attestationAmount)

      The value attested as a monetary amount. This form is valid only when the investment has no multiplier.

      Parameters:
      attestationAmount - The value attested as a monetary amount. This form is valid only when the investment has no multiplier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attestationAmount

      default AttestationValue.Builder attestationAmount(Consumer<Amount.Builder> attestationAmount)

      The value attested as a monetary amount. This form is valid only when the investment has no multiplier.

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

      Parameters:
      attestationAmount - 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:
    • attestationQuantities

      AttestationValue.Builder attestationQuantities(Collection<AttestationQuantity> attestationQuantities)

      The value attested as one or more quantities, each with its own unit. The list contains at most 50 quantities.

      Parameters:
      attestationQuantities - The value attested as one or more quantities, each with its own unit. The list contains at most 50 quantities.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attestationQuantities

      AttestationValue.Builder attestationQuantities(AttestationQuantity... attestationQuantities)

      The value attested as one or more quantities, each with its own unit. The list contains at most 50 quantities.

      Parameters:
      attestationQuantities - The value attested as one or more quantities, each with its own unit. The list contains at most 50 quantities.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attestationQuantities

      AttestationValue.Builder attestationQuantities(Consumer<AttestationQuantity.Builder>... attestationQuantities)

      The value attested as one or more quantities, each with its own unit. The list contains at most 50 quantities.

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

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

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