Class ImmutableAccountTransactionsRequestParams.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountTransactionsRequestParams.Builder
-
- Enclosing class:
- ImmutableAccountTransactionsRequestParams
@NotThreadSafe public static final class ImmutableAccountTransactionsRequestParams.Builder extends Object
Builds instances of typeImmutableAccountTransactionsRequestParams
. 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 ImmutableAccountTransactionsRequestParams.Builder from(AccountTransactionsRequestParams instance)
Fill a builder with attribute values from the providedAccountTransactionsRequestParams
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 ImmutableAccountTransactionsRequestParams.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
-
ledgerIndexMin
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountTransactionsRequestParams.Builder ledgerIndexMin(LedgerIndex ledgerIndexMin)
Deprecated.Initializes the optional valueledgerIndexMin
to ledgerIndexMin.- Parameters:
ledgerIndexMin
- The value for ledgerIndexMin- Returns:
this
builder for chained invocation
-
ledgerIndexMin
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountTransactionsRequestParams.Builder ledgerIndexMin(Optional<? extends LedgerIndex> ledgerIndexMin)
Deprecated.Initializes the optional valueledgerIndexMin
to ledgerIndexMin.- Parameters:
ledgerIndexMin
- The value for ledgerIndexMin- Returns:
this
builder for use in a chained invocation
-
ledgerIndexMax
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountTransactionsRequestParams.Builder ledgerIndexMax(LedgerIndex ledgerIndexMax)
Deprecated.Initializes the optional valueledgerIndexMax
to ledgerIndexMax.- Parameters:
ledgerIndexMax
- The value for ledgerIndexMax- Returns:
this
builder for chained invocation
-
ledgerIndexMax
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountTransactionsRequestParams.Builder ledgerIndexMax(Optional<? extends LedgerIndex> ledgerIndexMax)
Deprecated.Initializes the optional valueledgerIndexMax
to ledgerIndexMax.- Parameters:
ledgerIndexMax
- The value for ledgerIndexMax- Returns:
this
builder for use in a chained invocation
-
ledgerIndexMinimum
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder ledgerIndexMinimum(@Nullable LedgerIndexBound ledgerIndexMinimum)
Initializes the value for theledgerIndexMinimum
attribute.If not set, this attribute will have a default value as returned by the initializer of
ledgerIndexMinimum
.- Parameters:
ledgerIndexMinimum
- The value for ledgerIndexMinimum (can benull
)- Returns:
this
builder for use in a chained invocation
-
ledgerIndexMaximum
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder ledgerIndexMaximum(@Nullable LedgerIndexBound ledgerIndexMaximum)
Initializes the value for theledgerIndexMaximum
attribute.If not set, this attribute will have a default value as returned by the initializer of
ledgerIndexMaximum
.- Parameters:
ledgerIndexMaximum
- The value for ledgerIndexMaximum (can benull
)- Returns:
this
builder for use in a chained invocation
-
ledgerHash
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountTransactionsRequestParams.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 ImmutableAccountTransactionsRequestParams.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 ImmutableAccountTransactionsRequestParams.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 ImmutableAccountTransactionsRequestParams.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
-
ledgerSpecifier
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder ledgerSpecifier(Optional<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
-
forward
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder forward(boolean forward)
Initializes the value for theforward
attribute.If not set, this attribute will have a default value as returned by the initializer of
forward
.- Parameters:
forward
- The value for forward- Returns:
this
builder for use in a chained invocation
-
limit
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder limit(com.google.common.primitives.UnsignedInteger limit)
Initializes the optional valuelimit
to limit.- Parameters:
limit
- The value for limit- Returns:
this
builder for chained invocation
-
limit
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder limit(Optional<? extends com.google.common.primitives.UnsignedInteger> limit)
Initializes the optional valuelimit
to limit.- Parameters:
limit
- The value for limit- Returns:
this
builder for use in a chained invocation
-
marker
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder marker(Marker marker)
Initializes the optional valuemarker
to marker.- Parameters:
marker
- The value for marker- Returns:
this
builder for chained invocation
-
marker
@CanIgnoreReturnValue public final ImmutableAccountTransactionsRequestParams.Builder marker(Optional<? extends Marker> marker)
Initializes the optional valuemarker
to marker.- Parameters:
marker
- The value for marker- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableAccountTransactionsRequestParams build()
Builds a newImmutableAccountTransactionsRequestParams
.- Returns:
- An immutable instance of AccountTransactionsRequestParams
- Throws:
IllegalStateException
- if any required attributes are missing
-
-