Class ImmutableEscrowObject.Builder

java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableEscrowObject.Builder
Enclosing class:
ImmutableEscrowObject

@NotThreadSafe public static final class ImmutableEscrowObject.Builder extends Object
Builds instances of type ImmutableEscrowObject. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder from(EscrowObject instance)
      Fill a builder with attribute values from the provided EscrowObject instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • account

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder account(Address account)
      Initializes the value for the account attribute.
      Parameters:
      account - The value for account
      Returns:
      this builder for use in a chained invocation
    • destination

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder destination(Address destination)
      Initializes the value for the destination attribute.
      Parameters:
      destination - The value for destination
      Returns:
      this builder for use in a chained invocation
    • amount

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder amount(CurrencyAmount amount)
      Initializes the value for the amount attribute.
      Parameters:
      amount - The value for amount
      Returns:
      this builder for use in a chained invocation
    • transferRate

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder transferRate(com.google.common.primitives.UnsignedInteger transferRate)
      Initializes the optional value transferRate to transferRate.
      Parameters:
      transferRate - The value for transferRate
      Returns:
      this builder for chained invocation
    • transferRate

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder transferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> transferRate)
      Initializes the optional value transferRate to transferRate.
      Parameters:
      transferRate - The value for transferRate
      Returns:
      this builder for use in a chained invocation
    • issuerNode

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder issuerNode(String issuerNode)
      Initializes the optional value issuerNode to issuerNode.
      Parameters:
      issuerNode - The value for issuerNode
      Returns:
      this builder for chained invocation
    • issuerNode

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder issuerNode(Optional<String> issuerNode)
      Initializes the optional value issuerNode to issuerNode.
      Parameters:
      issuerNode - The value for issuerNode
      Returns:
      this builder for use in a chained invocation
    • condition

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder condition(com.ripple.cryptoconditions.Condition condition)
      Initializes the optional value condition to condition.
      Parameters:
      condition - The value for condition
      Returns:
      this builder for chained invocation
    • condition

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder condition(Optional<? extends com.ripple.cryptoconditions.Condition> condition)
      Initializes the optional value condition to condition.
      Parameters:
      condition - The value for condition
      Returns:
      this builder for use in a chained invocation
    • cancelAfter

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder cancelAfter(com.google.common.primitives.UnsignedLong cancelAfter)
      Initializes the optional value cancelAfter to cancelAfter.
      Parameters:
      cancelAfter - The value for cancelAfter
      Returns:
      this builder for chained invocation
    • cancelAfter

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder cancelAfter(Optional<? extends com.google.common.primitives.UnsignedLong> cancelAfter)
      Initializes the optional value cancelAfter to cancelAfter.
      Parameters:
      cancelAfter - The value for cancelAfter
      Returns:
      this builder for use in a chained invocation
    • finishAfter

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder finishAfter(com.google.common.primitives.UnsignedLong finishAfter)
      Initializes the optional value finishAfter to finishAfter.
      Parameters:
      finishAfter - The value for finishAfter
      Returns:
      this builder for chained invocation
    • finishAfter

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder finishAfter(Optional<? extends com.google.common.primitives.UnsignedLong> finishAfter)
      Initializes the optional value finishAfter to finishAfter.
      Parameters:
      finishAfter - The value for finishAfter
      Returns:
      this builder for use in a chained invocation
    • sourceTag

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder sourceTag(com.google.common.primitives.UnsignedInteger sourceTag)
      Initializes the optional value sourceTag to sourceTag.
      Parameters:
      sourceTag - The value for sourceTag
      Returns:
      this builder for chained invocation
    • sourceTag

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder sourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> sourceTag)
      Initializes the optional value sourceTag to sourceTag.
      Parameters:
      sourceTag - The value for sourceTag
      Returns:
      this builder for use in a chained invocation
    • destinationTag

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder destinationTag(com.google.common.primitives.UnsignedInteger destinationTag)
      Initializes the optional value destinationTag to destinationTag.
      Parameters:
      destinationTag - The value for destinationTag
      Returns:
      this builder for chained invocation
    • destinationTag

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder destinationTag(Optional<? extends com.google.common.primitives.UnsignedInteger> destinationTag)
      Initializes the optional value destinationTag to destinationTag.
      Parameters:
      destinationTag - The value for destinationTag
      Returns:
      this builder for use in a chained invocation
    • ownerNode

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder ownerNode(String ownerNode)
      Initializes the optional value ownerNode to ownerNode.
      Parameters:
      ownerNode - The value for ownerNode
      Returns:
      this builder for chained invocation
    • ownerNode

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder ownerNode(Optional<String> ownerNode)
      Initializes the optional value ownerNode to ownerNode.
      Parameters:
      ownerNode - The value for ownerNode
      Returns:
      this builder for use in a chained invocation
    • destinationNode

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder destinationNode(String destinationNode)
      Initializes the optional value destinationNode to destinationNode.
      Parameters:
      destinationNode - The value for destinationNode
      Returns:
      this builder for chained invocation
    • destinationNode

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder destinationNode(Optional<String> destinationNode)
      Initializes the optional value destinationNode to destinationNode.
      Parameters:
      destinationNode - The value for destinationNode
      Returns:
      this builder for use in a chained invocation
    • previousTransactionId

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder previousTransactionId(Hash256 previousTransactionId)
      Initializes the optional value previousTransactionId to previousTransactionId.
      Parameters:
      previousTransactionId - The value for previousTransactionId
      Returns:
      this builder for chained invocation
    • previousTransactionId

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder previousTransactionId(Optional<? extends Hash256> previousTransactionId)
      Initializes the optional value previousTransactionId to previousTransactionId.
      Parameters:
      previousTransactionId - The value for previousTransactionId
      Returns:
      this builder for use in a chained invocation
    • previousTransactionLedgerSequence

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence)
      Initializes the optional value previousTransactionLedgerSequence to previousTransactionLedgerSequence.
      Parameters:
      previousTransactionLedgerSequence - The value for previousTransactionLedgerSequence
      Returns:
      this builder for chained invocation
    • previousTransactionLedgerSequence

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder previousTransactionLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> previousTransactionLedgerSequence)
      Initializes the optional value previousTransactionLedgerSequence to previousTransactionLedgerSequence.
      Parameters:
      previousTransactionLedgerSequence - The value for previousTransactionLedgerSequence
      Returns:
      this builder for use in a chained invocation
    • index

      @CanIgnoreReturnValue public final ImmutableEscrowObject.Builder index(Hash256 index)
      Initializes the value for the index attribute.
      Parameters:
      index - The value for index
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableEscrowObject build()
      Builds a new ImmutableEscrowObject.
      Returns:
      An immutable instance of EscrowObject
      Throws:
      IllegalStateException - if any required attributes are missing