Class 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 Detail

      • 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
      • 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.
        Parameters:
        sequence - The value for sequence
        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​(String signingPublicKey)
        Initializes the optional value signingPublicKey to signingPublicKey.
        Parameters:
        signingPublicKey - The value for signingPublicKey
        Returns:
        this builder for chained invocation
      • signingPublicKey

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

        @CanIgnoreReturnValue
        public final ImmutableAccountSet.Builder transactionSignature​(String 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<String> transactionSignature)
        Initializes the optional value transactionSignature to transactionSignature.
        Parameters:
        transactionSignature - The value for transactionSignature
        Returns:
        this builder for use in a chained invocation
      • closeDate

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

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

        @CanIgnoreReturnValue
        @Deprecated
        public final ImmutableAccountSet.Builder hash​(Hash256 hash)
        Deprecated.
        Initializes the optional value hash to hash.
        Parameters:
        hash - The value for hash
        Returns:
        this builder for 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