Class ImmutableRippleStateObject.Builder

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

@NotThreadSafe public static final class ImmutableRippleStateObject.Builder extends Object
Builds instances of type ImmutableRippleStateObject. 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 ImmutableRippleStateObject.Builder from(RippleStateObject instance)
      Fill a builder with attribute values from the provided RippleStateObject 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
    • flags

      @CanIgnoreReturnValue public final ImmutableRippleStateObject.Builder flags(RippleStateFlags flags)
      Initializes the value for the flags attribute.
      Parameters:
      flags - The value for flags
      Returns:
      this builder for use in a chained invocation
    • balance

      @CanIgnoreReturnValue public final ImmutableRippleStateObject.Builder balance(IssuedCurrencyAmount balance)
      Initializes the value for the balance attribute.
      Parameters:
      balance - The value for balance
      Returns:
      this builder for use in a chained invocation
    • lowLimit

      @CanIgnoreReturnValue public final ImmutableRippleStateObject.Builder lowLimit(IssuedCurrencyAmount lowLimit)
      Initializes the value for the lowLimit attribute.
      Parameters:
      lowLimit - The value for lowLimit
      Returns:
      this builder for use in a chained invocation
    • highLimit

      @CanIgnoreReturnValue public final ImmutableRippleStateObject.Builder highLimit(IssuedCurrencyAmount highLimit)
      Initializes the value for the highLimit attribute.
      Parameters:
      highLimit - The value for highLimit
      Returns:
      this builder for use in a chained invocation
    • previousTransactionId

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

      @CanIgnoreReturnValue public final ImmutableRippleStateObject.Builder previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence)
      Initializes the value for the previousTransactionLedgerSequence attribute.
      Parameters:
      previousTransactionLedgerSequence - The value for previousTransactionLedgerSequence
      Returns:
      this builder for use in a chained invocation
    • lowNode

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

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

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

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

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

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

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

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

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

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

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

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

      @CanIgnoreReturnValue public final ImmutableRippleStateObject.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

      Returns:
      An immutable instance of RippleStateObject
      Throws:
      IllegalStateException - if any required attributes are missing