Class ImmutableAccountSet

java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableAccountSet
All Implemented Interfaces:
AccountSet, Transaction

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAccountSet extends Object implements AccountSet
Immutable implementation of AccountSet.

Use the builder to create immutable instances: ImmutableAccountSet.builder().

  • Method Details

    • account

      public Address account()
      The unique Address of the account that initiated this transaction.
      Specified by:
      account in interface Transaction
      Returns:
      The Address of the account submitting this transaction.
    • transactionType

      public TransactionType transactionType()
      The type of transaction.
      Specified by:
      transactionType in interface Transaction
      Returns:
      A TransactionType.
    • fee

      public XrpCurrencyAmount fee()
      The String representation of an integer amount of XRP, in drops, to be destroyed as a cost for distributing this Payment transaction to the network.

      This field is auto-fillable

      Specified by:
      fee in interface Transaction
      Returns:
      An XrpCurrencyAmount representing the transaction cost.
      See Also:
      • "https://xrpl.org/transaction-common-fields.html#auto-fillable-fields"
    • sequence

      public com.google.common.primitives.UnsignedInteger sequence()
      The sequence number of the account submitting the Transaction. A Transaction is only valid if the Sequence number is exactly 1 greater than the previous transaction from the same account.

      This field is auto-fillable

      Specified by:
      sequence in interface Transaction
      Returns:
      An UnsignedInteger representing the sequence of the transaction.
      See Also:
      • "https://xrpl.org/transaction-common-fields.html#auto-fillable-fields"
    • ticketSequence

      public Optional<com.google.common.primitives.UnsignedInteger> ticketSequence()
      The sequence number of the TicketObject to use in place of a sequence() number. If this is provided, sequence() must be 0. Cannot be used with accountTransactionId().
      Specified by:
      ticketSequence in interface Transaction
      Returns:
      An UnsignedInteger representing the ticket sequence of the transaction.
    • accountTransactionId

      public Optional<Hash256> accountTransactionId()
      Hash value identifying another transaction. If provided, this Transaction is only valid if the sending account's previously-sent transaction matches the provided hash.
      Specified by:
      accountTransactionId in interface Transaction
      Returns:
      An Optional of type Hash256 containing the account transaction ID.
    • lastLedgerSequence

      public Optional<com.google.common.primitives.UnsignedInteger> lastLedgerSequence()
      Highest ledger index this transaction can appear in. Specifying this field places a strict upper limit on how long the transaction can wait to be validated or rejected.
      Specified by:
      lastLedgerSequence in interface Transaction
      Returns:
      An Optional of type UnsignedInteger representing the last ledger sequence.
    • memos

      public com.google.common.collect.ImmutableList<MemoWrapper> memos()
      Additional arbitrary information used to identify this Transaction.
      Specified by:
      memos in interface Transaction
      Returns:
      A List of MemoWrappers.
    • signers

      public com.google.common.collect.ImmutableList<SignerWrapper> signers()
      Array of SignerWrappers that represent a multi-signature which authorizes this Transaction.
      Specified by:
      signers in interface Transaction
      Returns:
      A List of SignerWrappers.
    • sourceTag

      public Optional<com.google.common.primitives.UnsignedInteger> sourceTag()
      Arbitrary UnsignedInteger used to identify the reason for this Transaction, or a sender on whose behalf this Transaction is made.
      Specified by:
      sourceTag in interface Transaction
      Returns:
      An Optional UnsignedInteger representing the source account's tag.
    • signingPublicKey

      public PublicKey signingPublicKey()
      The PublicKey that corresponds to the private key used to sign this transaction. If an empty string, ie PublicKey.MULTI_SIGN_PUBLIC_KEY, indicates a multi-signature is present in the Transaction.signers() field instead.
      Specified by:
      signingPublicKey in interface Transaction
      Returns:
      A PublicKey containing the public key of the account submitting the transaction, or PublicKey.MULTI_SIGN_PUBLIC_KEY if the transaction is multi-signed.
    • transactionSignature

      public Optional<Signature> transactionSignature()
      The signature that verifies this transaction as originating from the account it says it is from.

      This field is automatically added when signing this Transaction.

      Specified by:
      transactionSignature in interface Transaction
      Returns:
      An Optional String containing the transaction signature.
    • networkId

      public Optional<NetworkId> networkId()
      Specified by:
      networkId in interface Transaction
      Returns:
      The value of the networkId attribute
    • delegate

      public Optional<Address> delegate()
      The delegate account that is sending the transaction on behalf of the account().

      The way the Delegate field works is somewhat akin to RegularKey. The account() field is the delegating account, the Delegate field is the delegate, and the signingPublicKey() and transactionSignature() are based on the delegate's keys.

      If a Delegate has multisign enabled, they can also use that multisign setup on their delegated transactions.

      The delegate will pay the fees on the transaction, to prevent a delegate from draining an account's XRP via fees. Only the account()'s sequence number is incremented, not the Delegate's.

      This field is part of the Permission Delegation feature (XLS-75).

      Specified by:
      delegate in interface Transaction
      Returns:
      An Optional Address of the delegate account.
      See Also:
      • "https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0075-permission-delegation"
    • unknownFields

      public com.google.common.collect.ImmutableMap<String,Object> unknownFields()
      Specified by:
      unknownFields in interface Transaction
      Returns:
      The value of the unknownFields attribute
    • flags

      Specified by:
      flags in interface AccountSet
      Returns:
      An AccountSetTransactionFlags.
    • clearFlag

      public Optional<AccountSet.AccountSetFlag> clearFlag()
      Unique identifier of a flag to disable for this account.

      If this field is empty, developers should check if clearFlagRawValue() is also empty. If clearFlagRawValue() is present, it means that the ClearFlag field of the transaction was not a valid AccountSet.AccountSetFlag but was still present in a validated transaction on ledger.

      Because the preferred way of setting account flags is with AccountSet.AccountSetFlags, this field should not be set in conjunction with the AccountSet.flags() field.

      Specified by:
      clearFlag in interface AccountSet
      Returns:
      An Optional of type AccountSet.AccountSetFlag representing the flag to disable on this account.
    • clearFlagRawValue

      public Optional<com.google.common.primitives.UnsignedInteger> clearFlagRawValue()
      A flag to disable for this account, as an UnsignedInteger.

      Developers should prefer setting clearFlag() and leaving this field empty when constructing a new AccountSet. This field is used to serialize and deserialize the "ClearFlag" field in JSON, as some AccountSet transactions on the XRPL set the "ClearFlag" field to a number that is not recognized as an asf flag by rippled. Without this field, xrpl4j would fail to deserialize those transactions, as AccountSet.AccountSetFlag does not support arbitrary integer values.

      Additionally, using this field as the source of truth for JSON serialization/deserialization rather than clearFlag() allows developers to recompute the hash of a transaction that was deserialized from a rippled RPC/WS result accurately. An alternative to this field would be to add an enum variant to AccountSet.AccountSetFlag for unknown values, but binary serializing an AccountSet that was constructed by deserializing JSON would result in a different binary blob than what exists on ledger.

      Specified by:
      clearFlagRawValue in interface AccountSet
      Returns:
      An Optional UnsignedInteger.
    • setFlag

      Unique identifier of a flag to enable for this account.

      If this field is empty, developers should check if setFlagRawValue() is also empty. If setFlagRawValue() is present, it means that the ClearFlag field of the transaction was not a valid AccountSet.AccountSetFlag but was still present in a validated transaction on ledger.

      Because the preferred way of setting account flags is with AccountSet.AccountSetFlags, this field should not be set in conjunction with the AccountSet.flags() field.

      Specified by:
      setFlag in interface AccountSet
      Returns:
      An Optional of type AccountSet.AccountSetFlag representing the flag to enable on this account.
    • setFlagRawValue

      public Optional<com.google.common.primitives.UnsignedInteger> setFlagRawValue()
      A flag to disable for this account, as an UnsignedInteger.

      Developers should prefer setting setFlag() and leaving this field empty when constructing a new AccountSet. This field is used to serialize and deserialize the "ClearFlag" field in JSON, as some AccountSet transactions on the XRPL set the "ClearFlag" field to a number that is not recognized as an asf flag by rippled. Without this field, xrpl4j would fail to deserialize those transactions, as AccountSet.AccountSetFlag does not support arbitrary integer values.

      Additionally, using this field as the source of truth for JSON serialization/deserialization rather than setFlag() allows developers to recompute the hash of a transaction that was deserialized from a rippled RPC/WS result accurately. An alternative to this field would be to add an enum variant to AccountSet.AccountSetFlag for unknown values, but binary serializing an AccountSet that was constructed by deserializing JSON would result in a different binary blob than what exists on ledger.

      Specified by:
      setFlagRawValue in interface AccountSet
      Returns:
      An Optional UnsignedInteger
    • domain

      public Optional<String> domain()
      The hex string of the lowercase ASCII of the domain for the account. For example, the domain example.com would be represented as "6578616D706C652E636F6D".

      To remove the Domain field from an account, send an AccountSet with this domain field set to an empty string.

      Specified by:
      domain in interface AccountSet
      Returns:
      An Optional of type String containing the domain.
    • emailHash

      public Optional<String> emailHash()
      Hash of an email address to be used for generating an avatar image. Conventionally, clients use Gravatar to display this image.
      Specified by:
      emailHash in interface AccountSet
      Returns:
      An Optional of type String containing the hash of the email.
    • messageKey

      public Optional<String> messageKey()
      Hexadecimal encoded public key for sending encrypted messages to this account.
      Specified by:
      messageKey in interface AccountSet
      Returns:
      An Optional of type String containing the messaging public key.
    • transferRate

      public Optional<com.google.common.primitives.UnsignedInteger> transferRate()
      The fee to charge when users transfer this account's issued currencies, represented as billionths of a unit. Cannot be more than 2000000000 or less than 1000000000, except for the special case 0 meaning no fee.
      Specified by:
      transferRate in interface AccountSet
      Returns:
      An Optional of type UnsignedInteger representing the transfer rate.
    • tickSize

      public Optional<com.google.common.primitives.UnsignedInteger> tickSize()
      Tick size to use for offers involving a currency issued by this address. The exchange rates of those offers is rounded to this many significant digits. Valid values are 3 to 15 inclusive, or 0 to disable.
      Specified by:
      tickSize in interface AccountSet
      Returns:
      An Optional of type UnsignedInteger representing the tick size.
    • mintAccount

      public Optional<Address> mintAccount()
      Sets an alternate account that is allowed to mint NFTokens on this account's behalf using NFTokenMint's `Issuer` field.
      Specified by:
      mintAccount in interface AccountSet
      Returns:
      An Optional field of type Address.
    • walletLocator

      public Optional<String> walletLocator()
      An arbitrary 256-bit value. If specified, the value is stored as part of the account but has no inherent meaning or requirements.
      Specified by:
      walletLocator in interface AccountSet
      Returns:
      The 256-bit value as a hex encoded String.
    • walletSize

      public Optional<com.google.common.primitives.UnsignedInteger> walletSize()
      Not used. This field is valid in AccountSet transactions but does nothing.
      Specified by:
      walletSize in interface AccountSet
      Returns:
      An optionally present UnsignedInteger.
    • withAccount

      public final ImmutableAccountSet withAccount(Address value)
      Copy the current immutable object by setting a value for the account attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for account
      Returns:
      A modified copy of the this object
    • withTransactionType

      public final ImmutableAccountSet withTransactionType(TransactionType value)
      Copy the current immutable object by setting a value for the transactionType attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for transactionType
      Returns:
      A modified copy of the this object
    • withFee

      public final ImmutableAccountSet withFee(XrpCurrencyAmount value)
      Copy the current immutable object by setting a value for the fee attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for fee
      Returns:
      A modified copy of the this object
    • withSequence

      public final ImmutableAccountSet withSequence(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a value for the sequence attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sequence
      Returns:
      A modified copy of the this object
    • withTicketSequence

      public final ImmutableAccountSet withTicketSequence(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional ticketSequence attribute.
      Parameters:
      value - The value for ticketSequence
      Returns:
      A modified copy of this object
    • withTicketSequence

      public final ImmutableAccountSet withTicketSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the ticketSequence attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for ticketSequence
      Returns:
      A modified copy of this object
    • withAccountTransactionId

      public final ImmutableAccountSet withAccountTransactionId(Hash256 value)
      Copy the current immutable object by setting a present value for the optional accountTransactionId attribute.
      Parameters:
      value - The value for accountTransactionId
      Returns:
      A modified copy of this object
    • withAccountTransactionId

      public final ImmutableAccountSet withAccountTransactionId(Optional<? extends Hash256> optional)
      Copy the current immutable object by setting an optional value for the accountTransactionId attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for accountTransactionId
      Returns:
      A modified copy of this object
    • withLastLedgerSequence

      public final ImmutableAccountSet withLastLedgerSequence(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional lastLedgerSequence attribute.
      Parameters:
      value - The value for lastLedgerSequence
      Returns:
      A modified copy of this object
    • withLastLedgerSequence

      public final ImmutableAccountSet withLastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the lastLedgerSequence attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for lastLedgerSequence
      Returns:
      A modified copy of this object
    • withMemos

      public final ImmutableAccountSet withMemos(MemoWrapper... elements)
      Copy the current immutable object with elements that replace the content of memos.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withMemos

      public final ImmutableAccountSet withMemos(Iterable<? extends MemoWrapper> elements)
      Copy the current immutable object with elements that replace the content of memos. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of memos elements to set
      Returns:
      A modified copy of this object
    • withSigners

      public final ImmutableAccountSet withSigners(SignerWrapper... elements)
      Copy the current immutable object with elements that replace the content of signers.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withSigners

      public final ImmutableAccountSet withSigners(Iterable<? extends SignerWrapper> elements)
      Copy the current immutable object with elements that replace the content of signers. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of signers elements to set
      Returns:
      A modified copy of this object
    • withSourceTag

      public final ImmutableAccountSet withSourceTag(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional sourceTag attribute.
      Parameters:
      value - The value for sourceTag
      Returns:
      A modified copy of this object
    • withSourceTag

      public final ImmutableAccountSet withSourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the sourceTag attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for sourceTag
      Returns:
      A modified copy of this object
    • withSigningPublicKey

      public final ImmutableAccountSet withSigningPublicKey(PublicKey value)
      Copy the current immutable object by setting a value for the signingPublicKey attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for signingPublicKey
      Returns:
      A modified copy of the this object
    • withTransactionSignature

      public final ImmutableAccountSet withTransactionSignature(Signature value)
      Copy the current immutable object by setting a present value for the optional transactionSignature attribute.
      Parameters:
      value - The value for transactionSignature
      Returns:
      A modified copy of this object
    • withTransactionSignature

      public final ImmutableAccountSet withTransactionSignature(Optional<? extends Signature> optional)
      Copy the current immutable object by setting an optional value for the transactionSignature attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for transactionSignature
      Returns:
      A modified copy of this object
    • withNetworkId

      public final ImmutableAccountSet withNetworkId(NetworkId value)
      Copy the current immutable object by setting a present value for the optional networkId attribute.
      Parameters:
      value - The value for networkId
      Returns:
      A modified copy of this object
    • withNetworkId

      public final ImmutableAccountSet withNetworkId(Optional<? extends NetworkId> optional)
      Copy the current immutable object by setting an optional value for the networkId attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for networkId
      Returns:
      A modified copy of this object
    • withDelegate

      public final ImmutableAccountSet withDelegate(Address value)
      Copy the current immutable object by setting a present value for the optional delegate attribute.
      Parameters:
      value - The value for delegate
      Returns:
      A modified copy of this object
    • withDelegate

      public final ImmutableAccountSet withDelegate(Optional<? extends Address> optional)
      Copy the current immutable object by setting an optional value for the delegate attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for delegate
      Returns:
      A modified copy of this object
    • withUnknownFields

      public final ImmutableAccountSet withUnknownFields(Map<String,? extends Object> entries)
      Copy the current immutable object by replacing the unknownFields map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      entries - The entries to be added to the unknownFields map
      Returns:
      A modified copy of this object
    • withFlags

      public final ImmutableAccountSet withFlags(AccountSetTransactionFlags value)
      Copy the current immutable object by setting a value for the flags attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for flags
      Returns:
      A modified copy of the this object
    • withClearFlag

      public final ImmutableAccountSet withClearFlag(AccountSet.AccountSetFlag value)
      Copy the current immutable object by setting a present value for the optional clearFlag attribute.
      Parameters:
      value - The value for clearFlag
      Returns:
      A modified copy of this object
    • withClearFlag

      public final ImmutableAccountSet withClearFlag(Optional<? extends AccountSet.AccountSetFlag> optional)
      Copy the current immutable object by setting an optional value for the clearFlag attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for clearFlag
      Returns:
      A modified copy of this object
    • withClearFlagRawValue

      public final ImmutableAccountSet withClearFlagRawValue(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional clearFlagRawValue attribute.
      Parameters:
      value - The value for clearFlagRawValue
      Returns:
      A modified copy of this object
    • withClearFlagRawValue

      public final ImmutableAccountSet withClearFlagRawValue(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the clearFlagRawValue attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for clearFlagRawValue
      Returns:
      A modified copy of this object
    • withSetFlag

      public final ImmutableAccountSet withSetFlag(AccountSet.AccountSetFlag value)
      Copy the current immutable object by setting a present value for the optional setFlag attribute.
      Parameters:
      value - The value for setFlag
      Returns:
      A modified copy of this object
    • withSetFlag

      public final ImmutableAccountSet withSetFlag(Optional<? extends AccountSet.AccountSetFlag> optional)
      Copy the current immutable object by setting an optional value for the setFlag attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for setFlag
      Returns:
      A modified copy of this object
    • withSetFlagRawValue

      public final ImmutableAccountSet withSetFlagRawValue(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional setFlagRawValue attribute.
      Parameters:
      value - The value for setFlagRawValue
      Returns:
      A modified copy of this object
    • withSetFlagRawValue

      public final ImmutableAccountSet withSetFlagRawValue(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the setFlagRawValue attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for setFlagRawValue
      Returns:
      A modified copy of this object
    • withDomain

      public final ImmutableAccountSet withDomain(String value)
      Copy the current immutable object by setting a present value for the optional domain attribute.
      Parameters:
      value - The value for domain
      Returns:
      A modified copy of this object
    • withDomain

      public final ImmutableAccountSet withDomain(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the domain attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for domain
      Returns:
      A modified copy of this object
    • withEmailHash

      public final ImmutableAccountSet withEmailHash(String value)
      Copy the current immutable object by setting a present value for the optional emailHash attribute.
      Parameters:
      value - The value for emailHash
      Returns:
      A modified copy of this object
    • withEmailHash

      public final ImmutableAccountSet withEmailHash(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the emailHash attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for emailHash
      Returns:
      A modified copy of this object
    • withMessageKey

      public final ImmutableAccountSet withMessageKey(String value)
      Copy the current immutable object by setting a present value for the optional messageKey attribute.
      Parameters:
      value - The value for messageKey
      Returns:
      A modified copy of this object
    • withMessageKey

      public final ImmutableAccountSet withMessageKey(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the messageKey attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for messageKey
      Returns:
      A modified copy of this object
    • withTransferRate

      public final ImmutableAccountSet withTransferRate(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional transferRate attribute.
      Parameters:
      value - The value for transferRate
      Returns:
      A modified copy of this object
    • withTransferRate

      public final ImmutableAccountSet withTransferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the transferRate attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for transferRate
      Returns:
      A modified copy of this object
    • withTickSize

      public final ImmutableAccountSet withTickSize(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional tickSize attribute.
      Parameters:
      value - The value for tickSize
      Returns:
      A modified copy of this object
    • withTickSize

      public final ImmutableAccountSet withTickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the tickSize attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for tickSize
      Returns:
      A modified copy of this object
    • withMintAccount

      public final ImmutableAccountSet withMintAccount(Address value)
      Copy the current immutable object by setting a present value for the optional mintAccount attribute.
      Parameters:
      value - The value for mintAccount
      Returns:
      A modified copy of this object
    • withMintAccount

      public final ImmutableAccountSet withMintAccount(Optional<? extends Address> optional)
      Copy the current immutable object by setting an optional value for the mintAccount attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for mintAccount
      Returns:
      A modified copy of this object
    • withWalletLocator

      public final ImmutableAccountSet withWalletLocator(String value)
      Copy the current immutable object by setting a present value for the optional walletLocator attribute.
      Parameters:
      value - The value for walletLocator
      Returns:
      A modified copy of this object
    • withWalletLocator

      public final ImmutableAccountSet withWalletLocator(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the walletLocator attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for walletLocator
      Returns:
      A modified copy of this object
    • withWalletSize

      public final ImmutableAccountSet withWalletSize(com.google.common.primitives.UnsignedInteger value)
      Copy the current immutable object by setting a present value for the optional walletSize attribute.
      Parameters:
      value - The value for walletSize
      Returns:
      A modified copy of this object
    • withWalletSize

      public final ImmutableAccountSet withWalletSize(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
      Copy the current immutable object by setting an optional value for the walletSize attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for walletSize
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableAccountSet that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: account, transactionType, fee, sequence, ticketSequence, accountTransactionId, lastLedgerSequence, memos, signers, sourceTag, signingPublicKey, transactionSignature, networkId, delegate, unknownFields, flags, clearFlag, clearFlagRawValue, setFlag, setFlagRawValue, domain, emailHash, messageKey, transferRate, tickSize, mintAccount, walletLocator, walletSize.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value AccountSet with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableAccountSet copyOf(AccountSet instance)
      Creates an immutable copy of a AccountSet value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable AccountSet instance
    • builder

      public static ImmutableAccountSet.Builder builder()
      Creates a builder for ImmutableAccountSet.
       ImmutableAccountSet.builder()
          .account(org.xrpl.xrpl4j.model.transactions.Address) // required account
          .transactionType(org.xrpl.xrpl4j.model.transactions.TransactionType) // optional transactionType
          .fee(org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount) // required fee
          .sequence(com.google.common.primitives.UnsignedInteger) // optional sequence
          .ticketSequence(com.google.common.primitives.UnsignedInteger) // optional ticketSequence
          .accountTransactionId(Hash256) // optional accountTransactionId
          .lastLedgerSequence(com.google.common.primitives.UnsignedInteger) // optional lastLedgerSequence
          .addMemos|addAllMemos(org.xrpl.xrpl4j.model.transactions.MemoWrapper) // memos elements
          .addSigners|addAllSigners(org.xrpl.xrpl4j.model.transactions.SignerWrapper) // signers elements
          .sourceTag(com.google.common.primitives.UnsignedInteger) // optional sourceTag
          .signingPublicKey(org.xrpl.xrpl4j.crypto.keys.PublicKey) // optional signingPublicKey
          .transactionSignature(org.xrpl.xrpl4j.crypto.signing.Signature) // optional transactionSignature
          .networkId(NetworkId) // optional networkId
          .delegate(Address) // optional delegate
          .putUnknownFields|putAllUnknownFields(String => Object) // unknownFields mappings
          .flags(org.xrpl.xrpl4j.model.flags.AccountSetTransactionFlags) // optional flags
          .clearFlag(org.xrpl.xrpl4j.model.transactions.AccountSet.AccountSetFlag) // optional clearFlag
          .clearFlagRawValue(com.google.common.primitives.UnsignedInteger) // optional clearFlagRawValue
          .setFlag(org.xrpl.xrpl4j.model.transactions.AccountSet.AccountSetFlag) // optional setFlag
          .setFlagRawValue(com.google.common.primitives.UnsignedInteger) // optional setFlagRawValue
          .domain(String) // optional domain
          .emailHash(String) // optional emailHash
          .messageKey(String) // optional messageKey
          .transferRate(com.google.common.primitives.UnsignedInteger) // optional transferRate
          .tickSize(com.google.common.primitives.UnsignedInteger) // optional tickSize
          .mintAccount(Address) // optional mintAccount
          .walletLocator(String) // optional walletLocator
          .walletSize(com.google.common.primitives.UnsignedInteger) // optional walletSize
          .build();
       
      Returns:
      A new ImmutableAccountSet builder