Class ImmutableAttestationClaim.Builder

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

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

      @CanIgnoreReturnValue public final ImmutableAttestationClaim.Builder from(Attestation instance)
      Fill a builder with attribute values from the provided org.xrpl.xrpl4j.model.ledger.Attestation instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • xChainBridge

      @CanIgnoreReturnValue public final ImmutableAttestationClaim.Builder xChainBridge(XChainBridge xChainBridge)
      Initializes the value for the xChainBridge attribute.
      Parameters:
      xChainBridge - The value for xChainBridge
      Returns:
      this builder for use in a chained invocation
    • otherChainSource

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

      @CanIgnoreReturnValue public final ImmutableAttestationClaim.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
    • amount

      @CanIgnoreReturnValue public final ImmutableAttestationClaim.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
    • wasLockingChainSend

      @CanIgnoreReturnValue public final ImmutableAttestationClaim.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 ImmutableAttestationClaim.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 ImmutableAttestationClaim.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
    • xChainClaimId

      @CanIgnoreReturnValue public final ImmutableAttestationClaim.Builder xChainClaimId(XChainClaimId xChainClaimId)
      Initializes the value for the xChainClaimId attribute.
      Parameters:
      xChainClaimId - The value for xChainClaimId
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableAttestationClaim build()
      Returns:
      An immutable instance of AttestationClaim
      Throws:
      IllegalStateException - if any required attributes are missing