Class ImmutableXChainClaimProofSig.Builder

java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainClaimProofSig.Builder
Enclosing class:
ImmutableXChainClaimProofSig

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

      @CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder attestationSignerAccount(Address attestationSignerAccount)
      Initializes the value for the attestationSignerAccount attribute.
      Parameters:
      attestationSignerAccount - The value for attestationSignerAccount
      Returns:
      this builder for use in a chained invocation
    • publicKey

      @CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder publicKey(PublicKey publicKey)
      Initializes the value for the publicKey attribute.
      Parameters:
      publicKey - The value for publicKey
      Returns:
      this builder for use in a chained invocation
    • amount

      @CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder amount(CurrencyAmount amount)
      Initializes the value for the amount attribute.
      Parameters:
      amount - The value for amount
      Returns:
      this builder for use in a chained invocation
    • attestationRewardAccount

      @CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder attestationRewardAccount(Address attestationRewardAccount)
      Initializes the value for the attestationRewardAccount attribute.
      Parameters:
      attestationRewardAccount - The value for attestationRewardAccount
      Returns:
      this builder for use in a chained invocation
    • wasLockingChainSend

      @CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder wasLockingChainSend(boolean wasLockingChainSend)
      Initializes the value for the wasLockingChainSend attribute.
      Parameters:
      wasLockingChainSend - The value for wasLockingChainSend
      Returns:
      this builder for use in a chained invocation
    • destination

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

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

      Returns:
      An immutable instance of XChainClaimProofSig
      Throws:
      IllegalStateException - if any required attributes are missing