Class ImmutableNfTokenOfferObject.Builder

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

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

      @CanIgnoreReturnValue public final ImmutableNfTokenOfferObject.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
    • owner

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

      @CanIgnoreReturnValue public final ImmutableNfTokenOfferObject.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 ImmutableNfTokenOfferObject.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
    • nfTokenId

      @CanIgnoreReturnValue public final ImmutableNfTokenOfferObject.Builder nfTokenId(NfTokenId nfTokenId)
      Initializes the value for the nfTokenId attribute.
      Parameters:
      nfTokenId - The value for nfTokenId
      Returns:
      this builder for use in a chained invocation
    • expiration

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

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

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

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

      @CanIgnoreReturnValue public final ImmutableNfTokenOfferObject.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 ImmutableNfTokenOfferObject.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
    • offerNode

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

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

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

      @CanIgnoreReturnValue public final ImmutableNfTokenOfferObject.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 NfTokenOfferObject
      Throws:
      IllegalStateException - if any required attributes are missing