Class ImmutableAccountCurrenciesRequestParams.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountCurrenciesRequestParams.Builder
-
- Enclosing class:
- ImmutableAccountCurrenciesRequestParams
@NotThreadSafe public static final class ImmutableAccountCurrenciesRequestParams.Builder extends Object
Builds instances of typeImmutableAccountCurrenciesRequestParams
. 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 ImmutableAccountCurrenciesRequestParams.Builder
account(Address account)
Initializes the value for theaccount
attribute.ImmutableAccountCurrenciesRequestParams
build()
Builds a newImmutableAccountCurrenciesRequestParams
.ImmutableAccountCurrenciesRequestParams.Builder
from(AccountCurrenciesRequestParams instance)
Fill a builder with attribute values from the providedAccountCurrenciesRequestParams
instance.ImmutableAccountCurrenciesRequestParams.Builder
ledgerHash(Optional<? extends Hash256> ledgerHash)
Deprecated.ImmutableAccountCurrenciesRequestParams.Builder
ledgerHash(Hash256 ledgerHash)
Deprecated.ImmutableAccountCurrenciesRequestParams.Builder
ledgerIndex(LedgerIndex ledgerIndex)
Deprecated.ImmutableAccountCurrenciesRequestParams.Builder
ledgerSpecifier(LedgerSpecifier ledgerSpecifier)
Initializes the value for theledgerSpecifier
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesRequestParams.Builder from(AccountCurrenciesRequestParams instance)
Fill a builder with attribute values from the providedAccountCurrenciesRequestParams
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
account
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesRequestParams.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
-
ledgerHash
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountCurrenciesRequestParams.Builder ledgerHash(Hash256 ledgerHash)
Deprecated.Initializes the optional valueledgerHash
to ledgerHash.- Parameters:
ledgerHash
- The value for ledgerHash- Returns:
this
builder for chained invocation
-
ledgerHash
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountCurrenciesRequestParams.Builder ledgerHash(Optional<? extends Hash256> ledgerHash)
Deprecated.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 ImmutableAccountCurrenciesRequestParams.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
-
ledgerSpecifier
@CanIgnoreReturnValue public final ImmutableAccountCurrenciesRequestParams.Builder ledgerSpecifier(LedgerSpecifier ledgerSpecifier)
Initializes the value for theledgerSpecifier
attribute.If not set, this attribute will have a default value as returned by the initializer of
ledgerSpecifier
.- Parameters:
ledgerSpecifier
- The value for ledgerSpecifier- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableAccountCurrenciesRequestParams build()
Builds a newImmutableAccountCurrenciesRequestParams
.- Returns:
- An immutable instance of AccountCurrenciesRequestParams
- Throws:
IllegalStateException
- if any required attributes are missing
-
-