Package org.xrpl.xrpl4j.model.ledger
Class ImmutableXChainCreateAccountProofSig.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainCreateAccountProofSig.Builder
- Enclosing class:
ImmutableXChainCreateAccountProofSig
@NotThreadSafe
public static final class ImmutableXChainCreateAccountProofSig.Builder
extends Object
Builds instances of type
ImmutableXChainCreateAccountProofSig.
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 newImmutableXChainCreateAccountProofSig.destination(Address destination) Initializes the value for thedestinationattribute.from(XChainCreateAccountProofSig instance) Fill a builder with attribute values from the providedXChainCreateAccountProofSiginstance.Initializes the value for thepublicKeyattribute.signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.wasLockingChainSend(boolean wasLockingChainSend) Initializes the value for thewasLockingChainSendattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder from(XChainCreateAccountProofSig instance) Fill a builder with attribute values from the providedXChainCreateAccountProofSiginstance. 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
-
amount
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder amount(CurrencyAmount amount) Initializes the value for theamountattribute.- Parameters:
amount- The value for amount- Returns:
thisbuilder for use in a chained invocation
-
signatureReward
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.- Parameters:
signatureReward- The value for signatureReward- Returns:
thisbuilder for use in a chained invocation
-
attestationRewardAccount
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder attestationRewardAccount(Address attestationRewardAccount) Initializes the value for theattestationRewardAccountattribute.- Parameters:
attestationRewardAccount- The value for attestationRewardAccount- Returns:
thisbuilder for use in a chained invocation
-
attestationSignerAccount
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder attestationSignerAccount(Address attestationSignerAccount) Initializes the value for theattestationSignerAccountattribute.- Parameters:
attestationSignerAccount- The value for attestationSignerAccount- Returns:
thisbuilder for use in a chained invocation
-
destination
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder destination(Address destination) Initializes the value for thedestinationattribute.- Parameters:
destination- The value for destination- Returns:
thisbuilder for use in a chained invocation
-
publicKey
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder publicKey(PublicKey publicKey) Initializes the value for thepublicKeyattribute.- Parameters:
publicKey- The value for publicKey- Returns:
thisbuilder for use in a chained invocation
-
wasLockingChainSend
@CanIgnoreReturnValue public final ImmutableXChainCreateAccountProofSig.Builder wasLockingChainSend(boolean wasLockingChainSend) Initializes the value for thewasLockingChainSendattribute.- Parameters:
wasLockingChainSend- The value for wasLockingChainSend- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableXChainCreateAccountProofSig.- Returns:
- An immutable instance of XChainCreateAccountProofSig
- Throws:
IllegalStateException- if any required attributes are missing
-