Class ImmutablePaymentChannelCreate.Builder

  • Enclosing class:
    ImmutablePaymentChannelCreate

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

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

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

        @CanIgnoreReturnValue
        public final ImmutablePaymentChannelCreate.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 ImmutablePaymentChannelCreate.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 ImmutablePaymentChannelCreate.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 ImmutablePaymentChannelCreate.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
      • flags

        @CanIgnoreReturnValue
        public final ImmutablePaymentChannelCreate.Builder flags​(Flags.TransactionFlags 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
      • destination

        @CanIgnoreReturnValue
        public final ImmutablePaymentChannelCreate.Builder destination​(Address destination)
        Initializes the value for the destination attribute.
        Parameters:
        destination - The value for destination
        Returns:
        this builder for use in a chained invocation
      • settleDelay

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

        @CanIgnoreReturnValue
        public final ImmutablePaymentChannelCreate.Builder publicKey​(String publicKey)
        Initializes the value for the publicKey attribute.
        Parameters:
        publicKey - The value for publicKey
        Returns:
        this builder for use in a chained invocation
      • cancelAfter

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

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

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

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