Class ImmutableAmmCreate.Builder
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableAmmCreate.Builder
- Enclosing class:
ImmutableAmmCreate
Builds instances of type
ImmutableAmmCreate.
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.amount2(CurrencyAmount amount2) Initializes the value for theamount2attribute.build()Builds a newImmutableAmmCreate.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.Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.AmmCreateinstance.from(Transaction instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transactioninstance.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.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.tradingFee(TradingFee tradingFee) Initializes the value for thetradingFeeattribute.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.
-
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.AmmCreateinstance.- 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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.Builder accountTransactionId(Hash256 accountTransactionId) Initializes the optional valueaccountTransactionIdto accountTransactionId.- Parameters:
accountTransactionId- The value for accountTransactionId- Returns:
thisbuilder for chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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
Adds elements tosignerslist.- Parameters:
elements- An array of signers elements- Returns:
thisbuilder for use in a chained invocation
-
signers
@CanIgnoreReturnValue public final ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.Builder transactionSignature(Signature transactionSignature) Initializes the optional valuetransactionSignatureto transactionSignature.- Parameters:
transactionSignature- The value for transactionSignature- Returns:
thisbuilder for chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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 ImmutableAmmCreate.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
-
amount2
Initializes the value for theamount2attribute.- Parameters:
amount2- The value for amount2- Returns:
thisbuilder for use in a chained invocation
-
tradingFee
Initializes the value for thetradingFeeattribute.- Parameters:
tradingFee- The value for tradingFee- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAmmCreate.- Returns:
- An immutable instance of AmmCreate
- Throws:
IllegalStateException- if any required attributes are missing
-