Class ImmutableXChainAddAccountCreateAttestation.Builder
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableXChainAddAccountCreateAttestation.Builder
- Enclosing class:
ImmutableXChainAddAccountCreateAttestation
@NotThreadSafe
public static final class ImmutableXChainAddAccountCreateAttestation.Builder
extends Object
Builds instances of type
ImmutableXChainAddAccountCreateAttestation.
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 TypeMethodDescriptionInitializes the value for theaccountattribute.accountTransactionId(Optional<? extends Hash256> accountTransactionId) Initializes the optional valueaccountTransactionIdto accountTransactionId.accountTransactionId(Hash256 accountTransactionId) Initializes the optional valueaccountTransactionIdto accountTransactionId.addAllMemos(Iterable<? extends MemoWrapper> elements) Adds elements tomemoslist.addAllSigners(Iterable<? extends SignerWrapper> elements) Adds elements tosignerslist.addMemos(MemoWrapper element) Adds one element tomemoslist.addMemos(MemoWrapper... elements) Adds elements tomemoslist.addSigners(SignerWrapper element) Adds one element tosignerslist.addSigners(SignerWrapper... elements) Adds elements tosignerslist.amount(XrpCurrencyAmount 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 newImmutableXChainAddAccountCreateAttestation.Initializes the optional valuedelegateto delegate.Initializes the optional valuedelegateto delegate.destination(Address destination) Initializes the value for thedestinationattribute.fee(XrpCurrencyAmount fee) Initializes the value for thefeeattribute.flags(TransactionFlags flags) Initializes the value for theflagsattribute.from(Transaction instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transactioninstance.from(XChainAddAccountCreateAttestation instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.XChainAddAccountCreateAttestationinstance.lastLedgerSequence(com.google.common.primitives.UnsignedInteger lastLedgerSequence) Initializes the optional valuelastLedgerSequenceto lastLedgerSequence.lastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> lastLedgerSequence) Initializes the optional valuelastLedgerSequenceto lastLedgerSequence.memos(Iterable<? extends MemoWrapper> elements) Sets or replaces all elements formemoslist.Initializes the optional valuenetworkIdto networkId.Initializes the optional valuenetworkIdto networkId.otherChainSource(Address otherChainSource) Initializes the value for theotherChainSourceattribute.Initializes the value for thepublicKeyattribute.putAllUnknownFields(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tounknownFieldsmap.putUnknownFields(String key, Object value) Put one entry to theunknownFieldsmap.putUnknownFields(Map.Entry<String, ? extends Object> entry) Put one entry to theunknownFieldsmap.sequence(com.google.common.primitives.UnsignedInteger sequence) Initializes the value for thesequenceattribute.Initializes the value for thesignatureattribute.signatureReward(Optional<? extends XrpCurrencyAmount> signatureReward) Initializes the optional valuesignatureRewardto signatureReward.signatureReward(XrpCurrencyAmount signatureReward) Initializes the optional valuesignatureRewardto signatureReward.signers(Iterable<? extends SignerWrapper> elements) Sets or replaces all elements forsignerslist.signingPublicKey(PublicKey signingPublicKey) Initializes the value for thesigningPublicKeyattribute.sourceTag(com.google.common.primitives.UnsignedInteger sourceTag) Initializes the optional valuesourceTagto sourceTag.Initializes the optional valuesourceTagto sourceTag.ticketSequence(com.google.common.primitives.UnsignedInteger ticketSequence) Initializes the optional valueticketSequenceto ticketSequence.ticketSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> ticketSequence) Initializes the optional valueticketSequenceto ticketSequence.transactionSignature(Optional<? extends Signature> transactionSignature) Initializes the optional valuetransactionSignatureto transactionSignature.transactionSignature(Signature transactionSignature) Initializes the optional valuetransactionSignatureto transactionSignature.transactionType(TransactionType transactionType) Initializes the value for thetransactionTypeattribute.unknownFields(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theunknownFieldsmap.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 ImmutableXChainAddAccountCreateAttestation.Builder from(Transaction instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transactioninstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder from(XChainAddAccountCreateAttestation instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.XChainAddAccountCreateAttestationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
account
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder account(Address account) Initializes the value for theaccountattribute.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
transactionType
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder transactionType(TransactionType transactionType) Initializes the value for thetransactionTypeattribute.If not set, this attribute will have a default value as returned by the initializer of
transactionType.- Parameters:
transactionType- The value for transactionType- Returns:
thisbuilder for use in a chained invocation
-
fee
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder fee(XrpCurrencyAmount fee) Initializes the value for thefeeattribute.- Parameters:
fee- The value for fee- Returns:
thisbuilder for use in a chained invocation
-
sequence
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder sequence(com.google.common.primitives.UnsignedInteger sequence) Initializes the value for thesequenceattribute.If not set, this attribute will have a default value as returned by the initializer of
sequence.- Parameters:
sequence- The value for sequence- Returns:
thisbuilder for use in a chained invocation
-
ticketSequence
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder ticketSequence(com.google.common.primitives.UnsignedInteger ticketSequence) Initializes the optional valueticketSequenceto ticketSequence.- Parameters:
ticketSequence- The value for ticketSequence- Returns:
thisbuilder for chained invocation
-
ticketSequence
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder ticketSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> ticketSequence) Initializes the optional valueticketSequenceto ticketSequence.- Parameters:
ticketSequence- The value for ticketSequence- Returns:
thisbuilder for use in a chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder accountTransactionId(Hash256 accountTransactionId) Initializes the optional valueaccountTransactionIdto accountTransactionId.- Parameters:
accountTransactionId- The value for accountTransactionId- Returns:
thisbuilder for chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder accountTransactionId(Optional<? extends Hash256> accountTransactionId) Initializes the optional valueaccountTransactionIdto accountTransactionId.- Parameters:
accountTransactionId- The value for accountTransactionId- Returns:
thisbuilder for use in a chained invocation
-
lastLedgerSequence
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder lastLedgerSequence(com.google.common.primitives.UnsignedInteger lastLedgerSequence) Initializes the optional valuelastLedgerSequenceto lastLedgerSequence.- Parameters:
lastLedgerSequence- The value for lastLedgerSequence- Returns:
thisbuilder for chained invocation
-
lastLedgerSequence
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder lastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> lastLedgerSequence) Initializes the optional valuelastLedgerSequenceto lastLedgerSequence.- Parameters:
lastLedgerSequence- The value for lastLedgerSequence- Returns:
thisbuilder for use in a chained invocation
-
addMemos
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder addMemos(MemoWrapper element) Adds one element tomemoslist.- Parameters:
element- A memos element- Returns:
thisbuilder for use in a chained invocation
-
addMemos
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder addMemos(MemoWrapper... elements) Adds elements tomemoslist.- Parameters:
elements- An array of memos elements- Returns:
thisbuilder for use in a chained invocation
-
memos
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder memos(Iterable<? extends MemoWrapper> elements) Sets or replaces all elements formemoslist.- Parameters:
elements- An iterable of memos elements- Returns:
thisbuilder for use in a chained invocation
-
addAllMemos
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder addAllMemos(Iterable<? extends MemoWrapper> elements) Adds elements tomemoslist.- Parameters:
elements- An iterable of memos elements- Returns:
thisbuilder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder addSigners(SignerWrapper element) Adds one element tosignerslist.- Parameters:
element- A signers element- Returns:
thisbuilder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder addSigners(SignerWrapper... elements) Adds elements tosignerslist.- Parameters:
elements- An array of signers elements- Returns:
thisbuilder for use in a chained invocation
-
signers
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder signers(Iterable<? extends SignerWrapper> elements) Sets or replaces all elements forsignerslist.- Parameters:
elements- An iterable of signers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSigners
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder addAllSigners(Iterable<? extends SignerWrapper> elements) Adds elements tosignerslist.- Parameters:
elements- An iterable of signers elements- Returns:
thisbuilder for use in a chained invocation
-
sourceTag
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder sourceTag(com.google.common.primitives.UnsignedInteger sourceTag) Initializes the optional valuesourceTagto sourceTag.- Parameters:
sourceTag- The value for sourceTag- Returns:
thisbuilder for chained invocation
-
sourceTag
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder sourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> sourceTag) Initializes the optional valuesourceTagto sourceTag.- Parameters:
sourceTag- The value for sourceTag- Returns:
thisbuilder for use in a chained invocation
-
signingPublicKey
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder signingPublicKey(PublicKey signingPublicKey) Initializes the value for thesigningPublicKeyattribute.If not set, this attribute will have a default value as returned by the initializer of
signingPublicKey.- Parameters:
signingPublicKey- The value for signingPublicKey- Returns:
thisbuilder for use in a chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder transactionSignature(Signature transactionSignature) Initializes the optional valuetransactionSignatureto transactionSignature.- Parameters:
transactionSignature- The value for transactionSignature- Returns:
thisbuilder for chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder transactionSignature(Optional<? extends Signature> transactionSignature) Initializes the optional valuetransactionSignatureto transactionSignature.- Parameters:
transactionSignature- The value for transactionSignature- Returns:
thisbuilder for use in a chained invocation
-
networkId
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder networkId(NetworkId networkId) Initializes the optional valuenetworkIdto networkId.- Parameters:
networkId- The value for networkId- Returns:
thisbuilder for chained invocation
-
networkId
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder networkId(Optional<? extends NetworkId> networkId) Initializes the optional valuenetworkIdto networkId.- Parameters:
networkId- The value for networkId- Returns:
thisbuilder for use in a chained invocation
-
delegate
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder delegate(Address delegate) Initializes the optional valuedelegateto delegate.- Parameters:
delegate- The value for delegate- Returns:
thisbuilder for chained invocation
-
delegate
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder delegate(Optional<? extends Address> delegate) Initializes the optional valuedelegateto delegate.- Parameters:
delegate- The value for delegate- Returns:
thisbuilder for use in a chained invocation
-
putUnknownFields
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder putUnknownFields(String key, Object value) Put one entry to theunknownFieldsmap.- Parameters:
key- The key in the unknownFields mapvalue- The associated value in the unknownFields map- Returns:
thisbuilder for use in a chained invocation
-
putUnknownFields
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder putUnknownFields(Map.Entry<String, ? extends Object> entry) Put one entry to theunknownFieldsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
unknownFields
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder unknownFields(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theunknownFieldsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the unknownFields map- Returns:
thisbuilder for use in a chained invocation
-
putAllUnknownFields
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder putAllUnknownFields(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tounknownFieldsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the unknownFields map- Returns:
thisbuilder for use in a chained invocation
-
flags
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder flags(TransactionFlags flags) Initializes the value for theflagsattribute.If not set, this attribute will have a default value as returned by the initializer of
flags.- Parameters:
flags- The value for flags- Returns:
thisbuilder for use in a chained invocation
-
amount
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder amount(XrpCurrencyAmount amount) Initializes the value for theamountattribute.- Parameters:
amount- The value for amount- Returns:
thisbuilder for use in a chained invocation
-
attestationRewardAccount
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.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 ImmutableXChainAddAccountCreateAttestation.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 ImmutableXChainAddAccountCreateAttestation.Builder destination(Address destination) Initializes the value for thedestinationattribute.- Parameters:
destination- The value for destination- Returns:
thisbuilder for use in a chained invocation
-
otherChainSource
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder otherChainSource(Address otherChainSource) Initializes the value for theotherChainSourceattribute.- Parameters:
otherChainSource- The value for otherChainSource- Returns:
thisbuilder for use in a chained invocation
-
publicKey
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder publicKey(PublicKey publicKey) Initializes the value for thepublicKeyattribute.- Parameters:
publicKey- The value for publicKey- Returns:
thisbuilder for use in a chained invocation
-
signature
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder signature(Signature signature) Initializes the value for thesignatureattribute.- Parameters:
signature- The value for signature- Returns:
thisbuilder for use in a chained invocation
-
signatureReward
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder signatureReward(XrpCurrencyAmount signatureReward) Initializes the optional valuesignatureRewardto signatureReward.- Parameters:
signatureReward- The value for signatureReward- Returns:
thisbuilder for chained invocation
-
signatureReward
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder signatureReward(Optional<? extends XrpCurrencyAmount> signatureReward) Initializes the optional valuesignatureRewardto signatureReward.- Parameters:
signatureReward- The value for signatureReward- Returns:
thisbuilder for use in a chained invocation
-
wasLockingChainSend
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.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 ImmutableXChainAddAccountCreateAttestation.Builder xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.- Parameters:
xChainAccountCreateCount- The value for xChainAccountCreateCount- Returns:
thisbuilder for use in a chained invocation
-
xChainBridge
@CanIgnoreReturnValue public final ImmutableXChainAddAccountCreateAttestation.Builder xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.- Parameters:
xChainBridge- The value for xChainBridge- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableXChainAddAccountCreateAttestation.- Returns:
- An immutable instance of XChainAddAccountCreateAttestation
- Throws:
IllegalStateException- if any required attributes are missing
-