Package org.xrpl.xrpl4j.model.ledger
Class ImmutableXChainClaimProofSig.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainClaimProofSig.Builder
- Enclosing class:
ImmutableXChainClaimProofSig
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 Summary
Modifier and TypeMethodDescriptionamount(CurrencyAmount amount) Initializes the value for theamountattribute.attestationRewardAccount(Address attestationRewardAccount) Initializes the value for theattestationRewardAccountattribute.attestationSignerAccount(Address attestationSignerAccount) Initializes the value for theattestationSignerAccountattribute.build()Builds a newImmutableXChainClaimProofSig.destination(Optional<? extends Address> destination) Initializes the optional valuedestinationto destination.destination(Address destination) Initializes the optional valuedestinationto destination.from(XChainClaimProofSig instance) Fill a builder with attribute values from the providedXChainClaimProofSiginstance.Initializes the value for thepublicKeyattribute.wasLockingChainSend(boolean wasLockingChainSend) Initializes the value for thewasLockingChainSendattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder from(XChainClaimProofSig instance) Fill a builder with attribute values from the providedXChainClaimProofSiginstance. 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:
thisbuilder for use in a chained invocation
-
attestationSignerAccount
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder attestationSignerAccount(Address attestationSignerAccount) Initializes the value for theattestationSignerAccountattribute.- Parameters:
attestationSignerAccount- The value for attestationSignerAccount- Returns:
thisbuilder for use in a chained invocation
-
publicKey
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder publicKey(PublicKey publicKey) Initializes the value for thepublicKeyattribute.- Parameters:
publicKey- The value for publicKey- Returns:
thisbuilder for use in a chained invocation
-
amount
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder amount(CurrencyAmount amount) Initializes the value for theamountattribute.- Parameters:
amount- The value for amount- Returns:
thisbuilder for use in a chained invocation
-
attestationRewardAccount
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder attestationRewardAccount(Address attestationRewardAccount) Initializes the value for theattestationRewardAccountattribute.- Parameters:
attestationRewardAccount- The value for attestationRewardAccount- Returns:
thisbuilder for use in a chained invocation
-
wasLockingChainSend
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder wasLockingChainSend(boolean wasLockingChainSend) Initializes the value for thewasLockingChainSendattribute.- Parameters:
wasLockingChainSend- The value for wasLockingChainSend- Returns:
thisbuilder for use in a chained invocation
-
destination
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder destination(Address destination) Initializes the optional valuedestinationto destination.- Parameters:
destination- The value for destination- Returns:
thisbuilder for chained invocation
-
destination
@CanIgnoreReturnValue public final ImmutableXChainClaimProofSig.Builder destination(Optional<? extends Address> destination) Initializes the optional valuedestinationto destination.- Parameters:
destination- The value for destination- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableXChainClaimProofSig.- Returns:
- An immutable instance of XChainClaimProofSig
- Throws:
IllegalStateException- if any required attributes are missing
-