Class ImmutableAccountSet.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.transactions.ImmutableAccountSet.Builder
-
- Enclosing class:
- ImmutableAccountSet
@NotThreadSafe public static final class ImmutableAccountSet.Builder extends Object
Builds instances of typeImmutableAccountSet
. Initialize attributes and then invoke thebuild()
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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutableAccountSet.Builder
account(Address account)
Initializes the value for theaccount
attribute.ImmutableAccountSet.Builder
accountTransactionId(Optional<? extends Hash256> accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.ImmutableAccountSet.Builder
accountTransactionId(Hash256 accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.ImmutableAccountSet.Builder
addAllMemos(Iterable<? extends MemoWrapper> elements)
Adds elements tomemos
list.ImmutableAccountSet.Builder
addAllSigners(Iterable<? extends SignerWrapper> elements)
Adds elements tosigners
list.ImmutableAccountSet.Builder
addMemos(MemoWrapper element)
Adds one element tomemos
list.ImmutableAccountSet.Builder
addMemos(MemoWrapper... elements)
Adds elements tomemos
list.ImmutableAccountSet.Builder
addSigners(SignerWrapper element)
Adds one element tosigners
list.ImmutableAccountSet.Builder
addSigners(SignerWrapper... elements)
Adds elements tosigners
list.ImmutableAccountSet
build()
Builds a newImmutableAccountSet
.ImmutableAccountSet.Builder
clearFlag(Optional<? extends AccountSet.AccountSetFlag> clearFlag)
Initializes the optional valueclearFlag
to clearFlag.ImmutableAccountSet.Builder
clearFlag(AccountSet.AccountSetFlag clearFlag)
Initializes the optional valueclearFlag
to clearFlag.ImmutableAccountSet.Builder
closeDate(com.google.common.primitives.UnsignedLong closeDate)
Deprecated.ImmutableAccountSet.Builder
closeDate(Optional<? extends com.google.common.primitives.UnsignedLong> closeDate)
Deprecated.ImmutableAccountSet.Builder
domain(String domain)
Initializes the optional valuedomain
to domain.ImmutableAccountSet.Builder
domain(Optional<String> domain)
Initializes the optional valuedomain
to domain.ImmutableAccountSet.Builder
emailHash(String emailHash)
Initializes the optional valueemailHash
to emailHash.ImmutableAccountSet.Builder
emailHash(Optional<String> emailHash)
Initializes the optional valueemailHash
to emailHash.ImmutableAccountSet.Builder
fee(XrpCurrencyAmount fee)
Initializes the value for thefee
attribute.ImmutableAccountSet.Builder
from(AccountSet instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.AccountSet
instance.ImmutableAccountSet.Builder
from(Transaction instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transaction
instance.ImmutableAccountSet.Builder
hash(Optional<? extends Hash256> hash)
Deprecated.ImmutableAccountSet.Builder
hash(Hash256 hash)
Deprecated.ImmutableAccountSet.Builder
lastLedgerSequence(com.google.common.primitives.UnsignedInteger lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.ImmutableAccountSet.Builder
lastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.ImmutableAccountSet.Builder
ledgerIndex(Optional<? extends LedgerIndex> ledgerIndex)
Deprecated.ImmutableAccountSet.Builder
ledgerIndex(LedgerIndex ledgerIndex)
Deprecated.ImmutableAccountSet.Builder
memos(Iterable<? extends MemoWrapper> elements)
Sets or replaces all elements formemos
list.ImmutableAccountSet.Builder
messageKey(String messageKey)
Initializes the optional valuemessageKey
to messageKey.ImmutableAccountSet.Builder
messageKey(Optional<String> messageKey)
Initializes the optional valuemessageKey
to messageKey.ImmutableAccountSet.Builder
sequence(com.google.common.primitives.UnsignedInteger sequence)
Initializes the value for thesequence
attribute.ImmutableAccountSet.Builder
setFlag(Optional<? extends AccountSet.AccountSetFlag> setFlag)
Initializes the optional valuesetFlag
to setFlag.ImmutableAccountSet.Builder
setFlag(AccountSet.AccountSetFlag setFlag)
Initializes the optional valuesetFlag
to setFlag.ImmutableAccountSet.Builder
signers(Iterable<? extends SignerWrapper> elements)
Sets or replaces all elements forsigners
list.ImmutableAccountSet.Builder
signingPublicKey(String signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.ImmutableAccountSet.Builder
signingPublicKey(Optional<String> signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.ImmutableAccountSet.Builder
sourceTag(com.google.common.primitives.UnsignedInteger sourceTag)
Initializes the optional valuesourceTag
to sourceTag.ImmutableAccountSet.Builder
sourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> sourceTag)
Initializes the optional valuesourceTag
to sourceTag.ImmutableAccountSet.Builder
tickSize(com.google.common.primitives.UnsignedInteger tickSize)
Initializes the optional valuetickSize
to tickSize.ImmutableAccountSet.Builder
tickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> tickSize)
Initializes the optional valuetickSize
to tickSize.ImmutableAccountSet.Builder
transactionSignature(String transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.ImmutableAccountSet.Builder
transactionSignature(Optional<String> transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.ImmutableAccountSet.Builder
transferRate(com.google.common.primitives.UnsignedInteger transferRate)
Initializes the optional valuetransferRate
to transferRate.ImmutableAccountSet.Builder
transferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> transferRate)
Initializes the optional valuetransferRate
to transferRate.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder from(Transaction instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transaction
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder from(AccountSet instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.AccountSet
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
account
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder account(Address account)
Initializes the value for theaccount
attribute.- Parameters:
account
- The value for account- Returns:
this
builder for use in a chained invocation
-
fee
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder fee(XrpCurrencyAmount fee)
Initializes the value for thefee
attribute.- Parameters:
fee
- The value for fee- Returns:
this
builder for use in a chained invocation
-
sequence
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder sequence(com.google.common.primitives.UnsignedInteger sequence)
Initializes the value for thesequence
attribute.- Parameters:
sequence
- The value for sequence- Returns:
this
builder for use in a chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder accountTransactionId(Hash256 accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.- Parameters:
accountTransactionId
- The value for accountTransactionId- Returns:
this
builder for chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder accountTransactionId(Optional<? extends Hash256> accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.- Parameters:
accountTransactionId
- The value for accountTransactionId- Returns:
this
builder for use in a chained invocation
-
lastLedgerSequence
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder lastLedgerSequence(com.google.common.primitives.UnsignedInteger lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.- Parameters:
lastLedgerSequence
- The value for lastLedgerSequence- Returns:
this
builder for chained invocation
-
lastLedgerSequence
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder lastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.- Parameters:
lastLedgerSequence
- The value for lastLedgerSequence- Returns:
this
builder for use in a chained invocation
-
addMemos
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder addMemos(MemoWrapper element)
Adds one element tomemos
list.- Parameters:
element
- A memos element- Returns:
this
builder for use in a chained invocation
-
addMemos
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder addMemos(MemoWrapper... elements)
Adds elements tomemos
list.- Parameters:
elements
- An array of memos elements- Returns:
this
builder for use in a chained invocation
-
memos
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder memos(Iterable<? extends MemoWrapper> elements)
Sets or replaces all elements formemos
list.- Parameters:
elements
- An iterable of memos elements- Returns:
this
builder for use in a chained invocation
-
addAllMemos
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder addAllMemos(Iterable<? extends MemoWrapper> elements)
Adds elements tomemos
list.- Parameters:
elements
- An iterable of memos elements- Returns:
this
builder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder addSigners(SignerWrapper element)
Adds one element tosigners
list.- Parameters:
element
- A signers element- Returns:
this
builder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder addSigners(SignerWrapper... elements)
Adds elements tosigners
list.- Parameters:
elements
- An array of signers elements- Returns:
this
builder for use in a chained invocation
-
signers
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder signers(Iterable<? extends SignerWrapper> elements)
Sets or replaces all elements forsigners
list.- Parameters:
elements
- An iterable of signers elements- Returns:
this
builder for use in a chained invocation
-
addAllSigners
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder addAllSigners(Iterable<? extends SignerWrapper> elements)
Adds elements tosigners
list.- Parameters:
elements
- An iterable of signers elements- Returns:
this
builder for use in a chained invocation
-
sourceTag
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder sourceTag(com.google.common.primitives.UnsignedInteger sourceTag)
Initializes the optional valuesourceTag
to sourceTag.- Parameters:
sourceTag
- The value for sourceTag- Returns:
this
builder for chained invocation
-
sourceTag
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder sourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> sourceTag)
Initializes the optional valuesourceTag
to sourceTag.- Parameters:
sourceTag
- The value for sourceTag- Returns:
this
builder for use in a chained invocation
-
signingPublicKey
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder signingPublicKey(String signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.- Parameters:
signingPublicKey
- The value for signingPublicKey- Returns:
this
builder for chained invocation
-
signingPublicKey
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder signingPublicKey(Optional<String> signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.- Parameters:
signingPublicKey
- The value for signingPublicKey- Returns:
this
builder for use in a chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder transactionSignature(String transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.- Parameters:
transactionSignature
- The value for transactionSignature- Returns:
this
builder for chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder transactionSignature(Optional<String> transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.- Parameters:
transactionSignature
- The value for transactionSignature- Returns:
this
builder for use in a chained invocation
-
closeDate
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountSet.Builder closeDate(com.google.common.primitives.UnsignedLong closeDate)
Deprecated.Initializes the optional valuecloseDate
to closeDate.- Parameters:
closeDate
- The value for closeDate- Returns:
this
builder for chained invocation
-
closeDate
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountSet.Builder closeDate(Optional<? extends com.google.common.primitives.UnsignedLong> closeDate)
Deprecated.Initializes the optional valuecloseDate
to closeDate.- Parameters:
closeDate
- The value for closeDate- Returns:
this
builder for use in a chained invocation
-
hash
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountSet.Builder hash(Hash256 hash)
Deprecated.Initializes the optional valuehash
to hash.- Parameters:
hash
- The value for hash- Returns:
this
builder for chained invocation
-
hash
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountSet.Builder hash(Optional<? extends Hash256> hash)
Deprecated.Initializes the optional valuehash
to hash.- Parameters:
hash
- The value for hash- Returns:
this
builder for use in a chained invocation
-
ledgerIndex
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountSet.Builder ledgerIndex(LedgerIndex ledgerIndex)
Deprecated.Initializes the optional valueledgerIndex
to ledgerIndex.- Parameters:
ledgerIndex
- The value for ledgerIndex- Returns:
this
builder for chained invocation
-
ledgerIndex
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountSet.Builder ledgerIndex(Optional<? extends LedgerIndex> ledgerIndex)
Deprecated.Initializes the optional valueledgerIndex
to ledgerIndex.- Parameters:
ledgerIndex
- The value for ledgerIndex- Returns:
this
builder for use in a chained invocation
-
clearFlag
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder clearFlag(AccountSet.AccountSetFlag clearFlag)
Initializes the optional valueclearFlag
to clearFlag.- Parameters:
clearFlag
- The value for clearFlag- Returns:
this
builder for chained invocation
-
clearFlag
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder clearFlag(Optional<? extends AccountSet.AccountSetFlag> clearFlag)
Initializes the optional valueclearFlag
to clearFlag.- Parameters:
clearFlag
- The value for clearFlag- Returns:
this
builder for use in a chained invocation
-
setFlag
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder setFlag(AccountSet.AccountSetFlag setFlag)
Initializes the optional valuesetFlag
to setFlag.- Parameters:
setFlag
- The value for setFlag- Returns:
this
builder for chained invocation
-
setFlag
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder setFlag(Optional<? extends AccountSet.AccountSetFlag> setFlag)
Initializes the optional valuesetFlag
to setFlag.- Parameters:
setFlag
- The value for setFlag- Returns:
this
builder for use in a chained invocation
-
domain
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder domain(String domain)
Initializes the optional valuedomain
to domain.- Parameters:
domain
- The value for domain- Returns:
this
builder for chained invocation
-
domain
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder domain(Optional<String> domain)
Initializes the optional valuedomain
to domain.- Parameters:
domain
- The value for domain- Returns:
this
builder for use in a chained invocation
-
emailHash
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder emailHash(String emailHash)
Initializes the optional valueemailHash
to emailHash.- Parameters:
emailHash
- The value for emailHash- Returns:
this
builder for chained invocation
-
emailHash
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder emailHash(Optional<String> emailHash)
Initializes the optional valueemailHash
to emailHash.- Parameters:
emailHash
- The value for emailHash- Returns:
this
builder for use in a chained invocation
-
messageKey
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder messageKey(String messageKey)
Initializes the optional valuemessageKey
to messageKey.- Parameters:
messageKey
- The value for messageKey- Returns:
this
builder for chained invocation
-
messageKey
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder messageKey(Optional<String> messageKey)
Initializes the optional valuemessageKey
to messageKey.- Parameters:
messageKey
- The value for messageKey- Returns:
this
builder for use in a chained invocation
-
transferRate
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder transferRate(com.google.common.primitives.UnsignedInteger transferRate)
Initializes the optional valuetransferRate
to transferRate.- Parameters:
transferRate
- The value for transferRate- Returns:
this
builder for chained invocation
-
transferRate
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder transferRate(Optional<? extends com.google.common.primitives.UnsignedInteger> transferRate)
Initializes the optional valuetransferRate
to transferRate.- Parameters:
transferRate
- The value for transferRate- Returns:
this
builder for use in a chained invocation
-
tickSize
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder tickSize(com.google.common.primitives.UnsignedInteger tickSize)
Initializes the optional valuetickSize
to tickSize.- Parameters:
tickSize
- The value for tickSize- Returns:
this
builder for chained invocation
-
tickSize
@CanIgnoreReturnValue public final ImmutableAccountSet.Builder tickSize(Optional<? extends com.google.common.primitives.UnsignedInteger> tickSize)
Initializes the optional valuetickSize
to tickSize.- Parameters:
tickSize
- The value for tickSize- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableAccountSet build()
Builds a newImmutableAccountSet
.- Returns:
- An immutable instance of AccountSet
- Throws:
IllegalStateException
- if any required attributes are missing
-
-