Class ImmutableAccountLinesRequestParams.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountLinesRequestParams.Builder
-
- Enclosing class:
- ImmutableAccountLinesRequestParams
@NotThreadSafe public static final class ImmutableAccountLinesRequestParams.Builder extends Object
Builds instances of typeImmutableAccountLinesRequestParams
. 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 ImmutableAccountLinesRequestParams.Builder from(AccountLinesRequestParams instance)
Fill a builder with attribute values from the providedAccountLinesRequestParams
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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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
-
peer
@CanIgnoreReturnValue public final ImmutableAccountLinesRequestParams.Builder peer(Address peer)
Initializes the optional valuepeer
to peer.- Parameters:
peer
- The value for peer- Returns:
this
builder for chained invocation
-
peer
@CanIgnoreReturnValue public final ImmutableAccountLinesRequestParams.Builder peer(Optional<? extends Address> peer)
Initializes the optional valuepeer
to peer.- Parameters:
peer
- The value for peer- Returns:
this
builder for use in a chained invocation
-
limit
@CanIgnoreReturnValue public final ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams.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 ImmutableAccountLinesRequestParams build()
Builds a newImmutableAccountLinesRequestParams
.- Returns:
- An immutable instance of AccountLinesRequestParams
- Throws:
IllegalStateException
- if any required attributes are missing
-
-