Class ImmutableNfTokenPageObject.Builder

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

@NotThreadSafe public static final class ImmutableNfTokenPageObject.Builder extends Object
Builds instances of type ImmutableNfTokenPageObject. 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 ImmutableNfTokenPageObject.Builder from(NfTokenPageObject instance)
      Fill a builder with attribute values from the provided NfTokenPageObject instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • addNfTokens

      @CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder addNfTokens(NfTokenWrapper element)
      Adds one element to nfTokens list.
      Parameters:
      element - A nfTokens element
      Returns:
      this builder for use in a chained invocation
    • addNfTokens

      @CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder addNfTokens(NfTokenWrapper... elements)
      Adds elements to nfTokens list.
      Parameters:
      elements - An array of nfTokens elements
      Returns:
      this builder for use in a chained invocation
    • nfTokens

      @CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder nfTokens(Iterable<? extends NfTokenWrapper> elements)
      Sets or replaces all elements for nfTokens list.
      Parameters:
      elements - An iterable of nfTokens elements
      Returns:
      this builder for use in a chained invocation
    • addAllNfTokens

      @CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder addAllNfTokens(Iterable<? extends NfTokenWrapper> elements)
      Adds elements to nfTokens list.
      Parameters:
      elements - An iterable of nfTokens elements
      Returns:
      this builder for use in a chained invocation
    • nextPageMin

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

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

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

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

      @CanIgnoreReturnValue public final ImmutableNfTokenPageObject.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 ImmutableNfTokenPageObject.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 ImmutableNfTokenPageObject.Builder previousTransactionLedgerSequence(LedgerIndex previousTransactionLedgerSequence)
      Initializes the optional value previousTransactionLedgerSequence to previousTransactionLedgerSequence.
      Parameters:
      previousTransactionLedgerSequence - The value for previousTransactionLedgerSequence
      Returns:
      this builder for chained invocation
    • previousTransactionLedgerSequence

      @CanIgnoreReturnValue public final ImmutableNfTokenPageObject.Builder previousTransactionLedgerSequence(Optional<? extends LedgerIndex> 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 ImmutableNfTokenPageObject.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 NfTokenPageObject
      Throws:
      IllegalStateException - if any required attributes are missing