Class ImmutableAccountSet.Builder

java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableAccountSet.Builder
Enclosing class:
ImmutableAccountSet

@NotThreadSafe public static final class ImmutableAccountSet.Builder extends Object
Builds instances of type ImmutableAccountSet. 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 ImmutableAccountSet.Builder from(Transaction instance)
      Fill a builder with attribute values from the provided org.xrpl.xrpl4j.model.transactions.Transaction instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder from(AccountSet instance)
      Fill a builder with attribute values from the provided org.xrpl.xrpl4j.model.transactions.AccountSet instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • account

      @CanIgnoreReturnValue public final ImmutableAccountSet.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
    • transactionType

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder transactionType(TransactionType transactionType)
      Initializes the value for the transactionType attribute.

      If not set, this attribute will have a default value as returned by the initializer of transactionType.

      Parameters:
      transactionType - The value for transactionType
      Returns:
      this builder for use in a chained invocation
    • fee

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder fee(XrpCurrencyAmount fee)
      Initializes the value for the fee attribute.
      Parameters:
      fee - The value for fee
      Returns:
      this builder for use in a chained invocation
    • sequence

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder sequence(com.google.common.primitives.UnsignedInteger sequence)
      Initializes the value for the sequence attribute.

      If not set, this attribute will have a default value as returned by the initializer of sequence.

      Parameters:
      sequence - The value for sequence
      Returns:
      this builder for use in a chained invocation
    • ticketSequence

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

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

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

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

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

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

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder addMemos(MemoWrapper element)
      Adds one element to memos list.
      Parameters:
      element - A memos element
      Returns:
      this builder for use in a chained invocation
    • addMemos

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder addMemos(MemoWrapper... elements)
      Adds elements to memos list.
      Parameters:
      elements - An array of memos elements
      Returns:
      this builder for use in a chained invocation
    • memos

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

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder addAllMemos(Iterable<? extends MemoWrapper> elements)
      Adds elements to memos list.
      Parameters:
      elements - An iterable of memos elements
      Returns:
      this builder for use in a chained invocation
    • addSigners

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder addSigners(SignerWrapper element)
      Adds one element to signers list.
      Parameters:
      element - A signers element
      Returns:
      this builder for use in a chained invocation
    • addSigners

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder addSigners(SignerWrapper... elements)
      Adds elements to signers list.
      Parameters:
      elements - An array of signers elements
      Returns:
      this builder for use in a chained invocation
    • signers

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

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder addAllSigners(Iterable<? extends SignerWrapper> elements)
      Adds elements to signers list.
      Parameters:
      elements - An iterable of signers elements
      Returns:
      this builder for use in a chained invocation
    • sourceTag

      @CanIgnoreReturnValue public final ImmutableAccountSet.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 ImmutableAccountSet.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
    • signingPublicKey

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder signingPublicKey(PublicKey signingPublicKey)
      Initializes the value for the signingPublicKey attribute.

      If not set, this attribute will have a default value as returned by the initializer of signingPublicKey.

      Parameters:
      signingPublicKey - The value for signingPublicKey
      Returns:
      this builder for use in a chained invocation
    • transactionSignature

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

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

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

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

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

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

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder putUnknownFields(String key, Object value)
      Put one entry to the unknownFields map.
      Parameters:
      key - The key in the unknownFields map
      value - The associated value in the unknownFields map
      Returns:
      this builder for use in a chained invocation
    • putUnknownFields

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder putUnknownFields(Map.Entry<String,? extends Object> entry)
      Put one entry to the unknownFields map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder for use in a chained invocation
    • unknownFields

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder unknownFields(Map<String,? extends Object> entries)
      Sets or replaces all mappings from the specified map as entries for the unknownFields map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the unknownFields map
      Returns:
      this builder for use in a chained invocation
    • putAllUnknownFields

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder putAllUnknownFields(Map<String,? extends Object> entries)
      Put all mappings from the specified map as entries to unknownFields map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the unknownFields map
      Returns:
      this builder for use in a chained invocation
    • flags

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder flags(AccountSetTransactionFlags flags)
      Initializes the value for the flags attribute.

      If not set, this attribute will have a default value as returned by the initializer of flags.

      Parameters:
      flags - The value for flags
      Returns:
      this builder for use in a chained invocation
    • clearFlag

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder clearFlag(AccountSet.AccountSetFlag clearFlag)
      Initializes the optional value clearFlag to clearFlag.
      Parameters:
      clearFlag - The value for clearFlag
      Returns:
      this builder for chained invocation
    • clearFlag

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder clearFlag(Optional<? extends AccountSet.AccountSetFlag> clearFlag)
      Initializes the optional value clearFlag to clearFlag.
      Parameters:
      clearFlag - The value for clearFlag
      Returns:
      this builder for use in a chained invocation
    • clearFlagRawValue

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

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

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder setFlag(AccountSet.AccountSetFlag setFlag)
      Initializes the optional value setFlag to setFlag.
      Parameters:
      setFlag - The value for setFlag
      Returns:
      this builder for chained invocation
    • setFlag

      @CanIgnoreReturnValue public final ImmutableAccountSet.Builder setFlag(Optional<? extends AccountSet.AccountSetFlag> setFlag)
      Initializes the optional value setFlag to setFlag.
      Parameters:
      setFlag - The value for setFlag
      Returns:
      this builder for use in a chained invocation
    • setFlagRawValue

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

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

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

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

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

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

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

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

      @CanIgnoreReturnValue public final ImmutableAccountSet.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 ImmutableAccountSet.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
    • tickSize

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

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

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

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

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

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

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

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

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