Class ImmutableXChainCommit.Builder
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableXChainCommit.Builder
- Enclosing class:
ImmutableXChainCommit
Builds instances of type
ImmutableXChainCommit.
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(CurrencyAmount amount) Initializes the value for theamountattribute.build()Builds a newImmutableXChainCommit.Initializes the optional valuedelegateto delegate.Initializes the optional valuedelegateto delegate.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(XChainCommit instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.XChainCommitinstance.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.otherChainDestination(Optional<? extends Address> otherChainDestination) Initializes the optional valueotherChainDestinationto otherChainDestination.otherChainDestination(Address otherChainDestination) Initializes the optional valueotherChainDestinationto otherChainDestination.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.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.xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.xChainClaimId(XChainClaimId xChainClaimId) Initializes the value for thexChainClaimIdattribute.
-
Method Details
-
from
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
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.XChainCommitinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
account
Initializes the value for theaccountattribute.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
transactionType
@CanIgnoreReturnValue public final ImmutableXChainCommit.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
Initializes the value for thefeeattribute.- Parameters:
fee- The value for fee- Returns:
thisbuilder for use in a chained invocation
-
sequence
@CanIgnoreReturnValue public final ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.Builder accountTransactionId(Hash256 accountTransactionId) Initializes the optional valueaccountTransactionIdto accountTransactionId.- Parameters:
accountTransactionId- The value for accountTransactionId- Returns:
thisbuilder for chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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
Adds one element tomemoslist.- Parameters:
element- A memos element- Returns:
thisbuilder for use in a chained invocation
-
addMemos
Adds elements tomemoslist.- Parameters:
elements- An array of memos elements- Returns:
thisbuilder for use in a chained invocation
-
memos
@CanIgnoreReturnValue public final ImmutableXChainCommit.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 ImmutableXChainCommit.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
Adds one element tosignerslist.- Parameters:
element- A signers element- Returns:
thisbuilder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.Builder transactionSignature(Signature transactionSignature) Initializes the optional valuetransactionSignatureto transactionSignature.- Parameters:
transactionSignature- The value for transactionSignature- Returns:
thisbuilder for chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableXChainCommit.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
Initializes the optional valuenetworkIdto networkId.- Parameters:
networkId- The value for networkId- Returns:
thisbuilder for chained invocation
-
networkId
@CanIgnoreReturnValue public final ImmutableXChainCommit.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
Initializes the optional valuedelegateto delegate.- Parameters:
delegate- The value for delegate- Returns:
thisbuilder for chained invocation
-
delegate
@CanIgnoreReturnValue public final ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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 ImmutableXChainCommit.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
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
Initializes the value for theamountattribute.- Parameters:
amount- The value for amount- Returns:
thisbuilder for use in a chained invocation
-
otherChainDestination
@CanIgnoreReturnValue public final ImmutableXChainCommit.Builder otherChainDestination(Address otherChainDestination) Initializes the optional valueotherChainDestinationto otherChainDestination.- Parameters:
otherChainDestination- The value for otherChainDestination- Returns:
thisbuilder for chained invocation
-
otherChainDestination
@CanIgnoreReturnValue public final ImmutableXChainCommit.Builder otherChainDestination(Optional<? extends Address> otherChainDestination) Initializes the optional valueotherChainDestinationto otherChainDestination.- Parameters:
otherChainDestination- The value for otherChainDestination- Returns:
thisbuilder for use in a chained invocation
-
xChainBridge
@CanIgnoreReturnValue public final ImmutableXChainCommit.Builder xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.- Parameters:
xChainBridge- The value for xChainBridge- Returns:
thisbuilder for use in a chained invocation
-
xChainClaimId
@CanIgnoreReturnValue public final ImmutableXChainCommit.Builder xChainClaimId(XChainClaimId xChainClaimId) Initializes the value for thexChainClaimIdattribute.- Parameters:
xChainClaimId- The value for xChainClaimId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableXChainCommit.- Returns:
- An immutable instance of XChainCommit
- Throws:
IllegalStateException- if any required attributes are missing
-