Class ImmutableAccountTransactionsResult.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountTransactionsResult.Builder
-
- Enclosing class:
- ImmutableAccountTransactionsResult
@NotThreadSafe public static final class ImmutableAccountTransactionsResult.Builder extends Object
Builds instances of typeImmutableAccountTransactionsResult
. 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 ImmutableAccountTransactionsResult.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 ImmutableAccountTransactionsResult.Builder from(AccountTransactionsResult instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.accounts.AccountTransactionsResult
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.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 ImmutableAccountTransactionsResult.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
-
account
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.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 ImmutableAccountTransactionsResult.Builder ledgerIndexMin(LedgerIndex ledgerIndexMin)
Deprecated.Initializes the value for theledgerIndexMin
attribute.If not set, this attribute will have a default value as returned by the initializer of
ledgerIndexMin
.- Parameters:
ledgerIndexMin
- The value for ledgerIndexMin- Returns:
this
builder for use in a chained invocation
-
ledgerIndexMax
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountTransactionsResult.Builder ledgerIndexMax(LedgerIndex ledgerIndexMax)
Deprecated.Initializes the value for theledgerIndexMax
attribute.If not set, this attribute will have a default value as returned by the initializer of
ledgerIndexMax
.- Parameters:
ledgerIndexMax
- The value for ledgerIndexMax- Returns:
this
builder for use in a chained invocation
-
ledgerIndexMinimum
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder ledgerIndexMinimum(LedgerIndexBound ledgerIndexMinimum)
Initializes the value for theledgerIndexMinimum
attribute.- Parameters:
ledgerIndexMinimum
- The value for ledgerIndexMinimum- Returns:
this
builder for use in a chained invocation
-
ledgerIndexMaximum
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder ledgerIndexMaximum(LedgerIndexBound ledgerIndexMaximum)
Initializes the value for theledgerIndexMaximum
attribute.- Parameters:
ledgerIndexMaximum
- The value for ledgerIndexMaximum- Returns:
this
builder for use in a chained invocation
-
limit
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder limit(com.google.common.primitives.UnsignedInteger limit)
Initializes the value for thelimit
attribute.- Parameters:
limit
- The value for limit- Returns:
this
builder for use in a chained invocation
-
marker
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.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 ImmutableAccountTransactionsResult.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
-
addTransactions
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder addTransactions(AccountTransactionsTransactionResult<? extends Transaction> element)
Adds one element totransactions
list.- Parameters:
element
- A transactions element- Returns:
this
builder for use in a chained invocation
-
addTransactions
@CanIgnoreReturnValue @SafeVarargs public final ImmutableAccountTransactionsResult.Builder addTransactions(AccountTransactionsTransactionResult<? extends Transaction>... elements)
Adds elements totransactions
list.- Parameters:
elements
- An array of transactions elements- Returns:
this
builder for use in a chained invocation
-
transactions
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder transactions(Iterable<? extends AccountTransactionsTransactionResult<? extends Transaction>> elements)
Sets or replaces all elements fortransactions
list.- Parameters:
elements
- An iterable of transactions elements- Returns:
this
builder for use in a chained invocation
-
addAllTransactions
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder addAllTransactions(Iterable<? extends AccountTransactionsTransactionResult<? extends Transaction>> elements)
Adds elements totransactions
list.- Parameters:
elements
- An iterable of transactions elements- Returns:
this
builder for use in a chained invocation
-
validated
@CanIgnoreReturnValue public final ImmutableAccountTransactionsResult.Builder validated(boolean validated)
Initializes the value for thevalidated
attribute.If not set, this attribute will have a default value as returned by the initializer of
validated
.- Parameters:
validated
- The value for validated- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableAccountTransactionsResult build()
Builds a newImmutableAccountTransactionsResult
.- Returns:
- An immutable instance of AccountTransactionsResult
- Throws:
IllegalStateException
- if any required attributes are missing
-
-