Class ImmutableDepositPreAuth.Builder

  • Enclosing class:
    ImmutableDepositPreAuth

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

        @CanIgnoreReturnValue
        public final ImmutableDepositPreAuth.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
      • account

        @CanIgnoreReturnValue
        public final ImmutableDepositPreAuth.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
      • sequence

        @CanIgnoreReturnValue
        public final ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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
      • sourceTag

        @CanIgnoreReturnValue
        public final ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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 ImmutableDepositPreAuth.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
      • authorize

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

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

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

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