Class ImmutableAccountCurrenciesResult.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountCurrenciesResult.Builder
-
- Enclosing class:
- ImmutableAccountCurrenciesResult
@NotThreadSafe public static final class ImmutableAccountCurrenciesResult.Builder extends Object
Builds instances of typeImmutableAccountCurrenciesResult
. 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
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder from(XrplResult instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.XrplResult
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder from(AccountCurrenciesResult instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.accounts.AccountCurrenciesResult
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder status(String status)
Initializes the optional valuestatus
to status.- Parameters:
status
- The value for status- Returns:
this
builder for chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder status(Optional<String> status)
Initializes the optional valuestatus
to status.- Parameters:
status
- The value for status- Returns:
this
builder for use in a chained invocation
-
ledgerHash
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder ledgerHash(Hash256 ledgerHash)
Initializes the optional valueledgerHash
to ledgerHash.- Parameters:
ledgerHash
- The value for ledgerHash- Returns:
this
builder for chained invocation
-
ledgerHash
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder ledgerHash(Optional<? extends Hash256> ledgerHash)
Initializes the optional valueledgerHash
to ledgerHash.- Parameters:
ledgerHash
- The value for ledgerHash- Returns:
this
builder for use in a chained invocation
-
ledgerIndex
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountCurrenciesResult.Builder ledgerIndex(@Nullable LedgerIndex ledgerIndex)
Deprecated.Initializes the value for theledgerIndex
attribute.- Parameters:
ledgerIndex
- The value for ledgerIndex (can benull
)- Returns:
this
builder for use in a chained invocation
-
ledgerCurrentIndex
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder ledgerCurrentIndex(LedgerIndex ledgerCurrentIndex)
Initializes the optional valueledgerCurrentIndex
to ledgerCurrentIndex.- Parameters:
ledgerCurrentIndex
- The value for ledgerCurrentIndex- Returns:
this
builder for chained invocation
-
ledgerCurrentIndex
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder ledgerCurrentIndex(Optional<? extends LedgerIndex> ledgerCurrentIndex)
Initializes the optional valueledgerCurrentIndex
to ledgerCurrentIndex.- Parameters:
ledgerCurrentIndex
- The value for ledgerCurrentIndex- Returns:
this
builder for use in a chained invocation
-
validated
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder validated(boolean validated)
Initializes the value for thevalidated
attribute.- Parameters:
validated
- The value for validated- Returns:
this
builder for use in a chained invocation
-
addReceiveCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder addReceiveCurrencies(String element)
Adds one element toreceiveCurrencies
list.- Parameters:
element
- A receiveCurrencies element- Returns:
this
builder for use in a chained invocation
-
addReceiveCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder addReceiveCurrencies(String... elements)
Adds elements toreceiveCurrencies
list.- Parameters:
elements
- An array of receiveCurrencies elements- Returns:
this
builder for use in a chained invocation
-
receiveCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder receiveCurrencies(Iterable<String> elements)
Sets or replaces all elements forreceiveCurrencies
list.- Parameters:
elements
- An iterable of receiveCurrencies elements- Returns:
this
builder for use in a chained invocation
-
addAllReceiveCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder addAllReceiveCurrencies(Iterable<String> elements)
Adds elements toreceiveCurrencies
list.- Parameters:
elements
- An iterable of receiveCurrencies elements- Returns:
this
builder for use in a chained invocation
-
addSendCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder addSendCurrencies(String element)
Adds one element tosendCurrencies
list.- Parameters:
element
- A sendCurrencies element- Returns:
this
builder for use in a chained invocation
-
addSendCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder addSendCurrencies(String... elements)
Adds elements tosendCurrencies
list.- Parameters:
elements
- An array of sendCurrencies elements- Returns:
this
builder for use in a chained invocation
-
sendCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder sendCurrencies(Iterable<String> elements)
Sets or replaces all elements forsendCurrencies
list.- Parameters:
elements
- An iterable of sendCurrencies elements- Returns:
this
builder for use in a chained invocation
-
addAllSendCurrencies
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesResult.Builder addAllSendCurrencies(Iterable<String> elements)
Adds elements tosendCurrencies
list.- Parameters:
elements
- An iterable of sendCurrencies elements- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableAccountCurrenciesResult build()
Builds a newImmutableAccountCurrenciesResult
.- Returns:
- An immutable instance of AccountCurrenciesResult
- Throws:
IllegalStateException
- if any required attributes are missing
-
-