Class ImmutableAuctionSlot.Builder

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

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

      @CanIgnoreReturnValue public final ImmutableAuctionSlot.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
    • addAuthAccounts

      @CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder addAuthAccounts(AuthAccountWrapper element)
      Adds one element to authAccounts list.
      Parameters:
      element - A authAccounts element
      Returns:
      this builder for use in a chained invocation
    • addAuthAccounts

      @CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder addAuthAccounts(AuthAccountWrapper... elements)
      Adds elements to authAccounts list.
      Parameters:
      elements - An array of authAccounts elements
      Returns:
      this builder for use in a chained invocation
    • authAccounts

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

      @CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder addAllAuthAccounts(Iterable<? extends AuthAccountWrapper> elements)
      Adds elements to authAccounts list.
      Parameters:
      elements - An iterable of authAccounts elements
      Returns:
      this builder for use in a chained invocation
    • discountedFee

      @CanIgnoreReturnValue public final ImmutableAuctionSlot.Builder discountedFee(TradingFee discountedFee)
      Initializes the value for the discountedFee attribute.
      Parameters:
      discountedFee - The value for discountedFee
      Returns:
      this builder for use in a chained invocation
    • price

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

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

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