Package org.xrpl.xrpl4j.model.ledger
Class ImmutableAttestationCreateAccount.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableAttestationCreateAccount.Builder
- Enclosing class:
ImmutableAttestationCreateAccount
Builds instances of type
ImmutableAttestationCreateAccount.
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.build()Builds a newImmutableAttestationCreateAccount.destination(Address destination) Initializes the value for thedestinationattribute.from(Attestation instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.ledger.Attestationinstance.from(AttestationCreateAccount instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.ledger.AttestationCreateAccountinstance.otherChainSource(Address otherChainSource) Initializes the value for theotherChainSourceattribute.signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.wasLockingChainSend(boolean wasLockingChainSend) Initializes the value for thewasLockingChainSendattribute.xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder from(Attestation instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.ledger.Attestationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder from(AttestationCreateAccount instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.ledger.AttestationCreateAccountinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
xChainBridge
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.- Parameters:
xChainBridge- The value for xChainBridge- Returns:
thisbuilder for use in a chained invocation
-
otherChainSource
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder otherChainSource(Address otherChainSource) Initializes the value for theotherChainSourceattribute.- Parameters:
otherChainSource- The value for otherChainSource- Returns:
thisbuilder for use in a chained invocation
-
attestationRewardAccount
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder attestationRewardAccount(Address attestationRewardAccount) Initializes the value for theattestationRewardAccountattribute.- Parameters:
attestationRewardAccount- The value for attestationRewardAccount- Returns:
thisbuilder for use in a chained invocation
-
amount
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder amount(CurrencyAmount amount) Initializes the value for theamountattribute.- Parameters:
amount- The value for amount- Returns:
thisbuilder for use in a chained invocation
-
wasLockingChainSend
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder wasLockingChainSend(boolean wasLockingChainSend) Initializes the value for thewasLockingChainSendattribute.- Parameters:
wasLockingChainSend- The value for wasLockingChainSend- Returns:
thisbuilder for use in a chained invocation
-
xChainAccountCreateCount
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.- Parameters:
xChainAccountCreateCount- The value for xChainAccountCreateCount- Returns:
thisbuilder for use in a chained invocation
-
destination
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder destination(Address destination) Initializes the value for thedestinationattribute.- Parameters:
destination- The value for destination- Returns:
thisbuilder for use in a chained invocation
-
signatureReward
@CanIgnoreReturnValue public final ImmutableAttestationCreateAccount.Builder signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.- Parameters:
signatureReward- The value for signatureReward- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAttestationCreateAccount.- Returns:
- An immutable instance of AttestationCreateAccount
- Throws:
IllegalStateException- if any required attributes are missing
-