Class ImmutableBatchSigner.Builder

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

@NotThreadSafe public static final class ImmutableBatchSigner.Builder extends Object
Builds instances of type ImmutableBatchSigner. 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 ImmutableBatchSigner.Builder from(BatchSigner instance)
      Fill a builder with attribute values from the provided BatchSigner instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • account

      @CanIgnoreReturnValue public final ImmutableBatchSigner.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
    • transactionSignature

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

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

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

      @CanIgnoreReturnValue public final ImmutableBatchSigner.Builder sortedSigners(boolean sortedSigners)
      Initializes the value for the sortedSigners attribute.

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

      Parameters:
      sortedSigners - The value for sortedSigners
      Returns:
      this builder for use in a chained invocation
    • addSigners

      @CanIgnoreReturnValue public final ImmutableBatchSigner.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 ImmutableBatchSigner.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 ImmutableBatchSigner.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 ImmutableBatchSigner.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
    • build

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