Class ImmutableAccountObjectsRequestParams
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountObjectsRequestParams
-
- All Implemented Interfaces:
AccountObjectsRequestParams
,XrplRequestParams
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAccountObjectsRequestParams extends Object implements AccountObjectsRequestParams
Immutable implementation ofAccountObjectsRequestParams
.Use the builder to create immutable instances:
ImmutableAccountObjectsRequestParams.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableAccountObjectsRequestParams.Builder
Builds instances of typeImmutableAccountObjectsRequestParams
.-
Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.client.accounts.AccountObjectsRequestParams
AccountObjectsRequestParams.AccountObjectType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address
account()
The unique XRPLAddress
for the account.static ImmutableAccountObjectsRequestParams.Builder
builder()
Creates a builder forImmutableAccountObjectsRequestParams
.static ImmutableAccountObjectsRequestParams
copyOf(AccountObjectsRequestParams instance)
Creates an immutable copy of aAccountObjectsRequestParams
value.boolean
deletionBlockersOnly()
If true, the response only includesLedgerObject
s that would block this account from being deleted.boolean
equals(Object another)
This instance is equal to all instances ofImmutableAccountObjectsRequestParams
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:account
,type
,deletionBlockersOnly
,ledgerSpecifier
,limit
,marker
.Optional<Hash256>
ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.LedgerIndex
ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.LedgerSpecifier
ledgerSpecifier()
Specifies the ledger version to request.Optional<com.google.common.primitives.UnsignedInteger>
limit()
The maximum number ofLedgerObject
s to include in the resultingAccountObjectsResult.accountObjects()
.Optional<Marker>
marker()
Value from a previous paginated response.String
toString()
Prints the immutable valueAccountObjectsRequestParams
with attribute values.Optional<AccountObjectsRequestParams.AccountObjectType>
type()
If included, filter results to include only this type of ledger object.ImmutableAccountObjectsRequestParams
withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute.ImmutableAccountObjectsRequestParams
withDeletionBlockersOnly(boolean value)
Copy the current immutable object by setting a value for thedeletionBlockersOnly
attribute.ImmutableAccountObjectsRequestParams
withLedgerHash(Optional<? extends Hash256> optional)
Deprecated.ImmutableAccountObjectsRequestParams
withLedgerHash(Hash256 value)
Deprecated.ImmutableAccountObjectsRequestParams
withLedgerIndex(LedgerIndex value)
Deprecated.ImmutableAccountObjectsRequestParams
withLedgerSpecifier(LedgerSpecifier value)
Copy the current immutable object by setting a value for theledgerSpecifier
attribute.ImmutableAccountObjectsRequestParams
withLimit(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionallimit
attribute.ImmutableAccountObjectsRequestParams
withLimit(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thelimit
attribute.ImmutableAccountObjectsRequestParams
withMarker(Optional<? extends Marker> optional)
Copy the current immutable object by setting an optional value for themarker
attribute.ImmutableAccountObjectsRequestParams
withMarker(Marker value)
Copy the current immutable object by setting a present value for the optionalmarker
attribute.ImmutableAccountObjectsRequestParams
withType(Optional<? extends AccountObjectsRequestParams.AccountObjectType> optional)
Copy the current immutable object by setting an optional value for thetype
attribute.ImmutableAccountObjectsRequestParams
withType(AccountObjectsRequestParams.AccountObjectType value)
Copy the current immutable object by setting a present value for the optionaltype
attribute.
-
-
-
Method Detail
-
account
public Address account()
The unique XRPLAddress
for the account.- Specified by:
account
in interfaceAccountObjectsRequestParams
- Returns:
- The unique XRPL
Address
for the account.
-
type
public Optional<AccountObjectsRequestParams.AccountObjectType> type()
If included, filter results to include only this type of ledger object.- Specified by:
type
in interfaceAccountObjectsRequestParams
- Returns:
- An optionally-present
AccountObjectsRequestParams.AccountObjectType
to filter by.
-
deletionBlockersOnly
public boolean deletionBlockersOnly()
If true, the response only includesLedgerObject
s that would block this account from being deleted. The default is false.- Specified by:
deletionBlockersOnly
in interfaceAccountObjectsRequestParams
- Returns:
true
if requesting only ledger objects that would block this account from being deleted, otherwisefalse
.
-
ledgerHash
@Deprecated public Optional<Hash256> ledgerHash()
Deprecated.Ledger hash should be specified inledgerSpecifier()
.A 20-byte hex string for the ledger version to use.- Specified by:
ledgerHash
in interfaceAccountObjectsRequestParams
- Returns:
- An optionally-present
Hash256
.
-
ledgerIndex
@Deprecated @Nullable public LedgerIndex ledgerIndex()
Deprecated.Ledger index and any shortcut values should be specified inledgerSpecifier()
.The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically.- Specified by:
ledgerIndex
in interfaceAccountObjectsRequestParams
- Returns:
- A
LedgerIndex
. Defaults toLedgerIndex.CURRENT
.
-
ledgerSpecifier
public LedgerSpecifier ledgerSpecifier()
Specifies the ledger version to request. A ledger version can be specified by ledger hash, numerical ledger index, or a shortcut value.- Specified by:
ledgerSpecifier
in interfaceAccountObjectsRequestParams
- Returns:
- A
LedgerSpecifier
specifying the ledger version to request.
-
limit
public Optional<com.google.common.primitives.UnsignedInteger> limit()
The maximum number ofLedgerObject
s to include in the resultingAccountObjectsResult.accountObjects()
. Must be within the inclusive range 10 to 400 on non-admin connections. The default is 200.- Specified by:
limit
in interfaceAccountObjectsRequestParams
- Returns:
- An optionally-present
UnsignedInteger
denoting the response limit.
-
marker
public Optional<Marker> marker()
Value from a previous paginated response. Resume retrieving data where that response left off.- Specified by:
marker
in interfaceAccountObjectsRequestParams
- Returns:
- An optionally-present
String
containing the marker.
-
withAccount
public final ImmutableAccountObjectsRequestParams withAccount(Address value)
Copy the current immutable object by setting a value for theaccount
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for account- Returns:
- A modified copy of the
this
object
-
withType
public final ImmutableAccountObjectsRequestParams withType(AccountObjectsRequestParams.AccountObjectType value)
Copy the current immutable object by setting a present value for the optionaltype
attribute.- Parameters:
value
- The value for type- Returns:
- A modified copy of
this
object
-
withType
public final ImmutableAccountObjectsRequestParams withType(Optional<? extends AccountObjectsRequestParams.AccountObjectType> optional)
Copy the current immutable object by setting an optional value for thetype
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for type- Returns:
- A modified copy of
this
object
-
withDeletionBlockersOnly
public final ImmutableAccountObjectsRequestParams withDeletionBlockersOnly(boolean value)
Copy the current immutable object by setting a value for thedeletionBlockersOnly
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for deletionBlockersOnly- Returns:
- A modified copy of the
this
object
-
withLedgerHash
@Deprecated public final ImmutableAccountObjectsRequestParams withLedgerHash(Hash256 value)
Deprecated.Copy the current immutable object by setting a present value for the optionalledgerHash
attribute.- Parameters:
value
- The value for ledgerHash- Returns:
- A modified copy of
this
object
-
withLedgerHash
@Deprecated public final ImmutableAccountObjectsRequestParams withLedgerHash(Optional<? extends Hash256> optional)
Deprecated.Copy the current immutable object by setting an optional value for theledgerHash
attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for ledgerHash- Returns:
- A modified copy of
this
object
-
withLedgerIndex
@Deprecated public final ImmutableAccountObjectsRequestParams withLedgerIndex(@Nullable LedgerIndex value)
Deprecated.Copy the current immutable object by setting a value for theledgerIndex
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerIndex (can benull
)- Returns:
- A modified copy of the
this
object
-
withLedgerSpecifier
public final ImmutableAccountObjectsRequestParams withLedgerSpecifier(LedgerSpecifier value)
Copy the current immutable object by setting a value for theledgerSpecifier
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ledgerSpecifier- Returns:
- A modified copy of the
this
object
-
withLimit
public final ImmutableAccountObjectsRequestParams withLimit(com.google.common.primitives.UnsignedInteger value)
Copy the current immutable object by setting a present value for the optionallimit
attribute.- Parameters:
value
- The value for limit- Returns:
- A modified copy of
this
object
-
withLimit
public final ImmutableAccountObjectsRequestParams withLimit(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
Copy the current immutable object by setting an optional value for thelimit
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for limit- Returns:
- A modified copy of
this
object
-
withMarker
public final ImmutableAccountObjectsRequestParams withMarker(Marker value)
Copy the current immutable object by setting a present value for the optionalmarker
attribute.- Parameters:
value
- The value for marker- Returns:
- A modified copy of
this
object
-
withMarker
public final ImmutableAccountObjectsRequestParams withMarker(Optional<? extends Marker> optional)
Copy the current immutable object by setting an optional value for themarker
attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for marker- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAccountObjectsRequestParams
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:account
,type
,deletionBlockersOnly
,ledgerSpecifier
,limit
,marker
.
-
toString
public String toString()
Prints the immutable valueAccountObjectsRequestParams
with attribute values.
-
copyOf
public static ImmutableAccountObjectsRequestParams copyOf(AccountObjectsRequestParams instance)
Creates an immutable copy of aAccountObjectsRequestParams
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable AccountObjectsRequestParams instance
-
builder
public static ImmutableAccountObjectsRequestParams.Builder builder()
Creates a builder forImmutableAccountObjectsRequestParams
.ImmutableAccountObjectsRequestParams.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // required
account
.type(org.xrpl.xrpl4j.model.client.accounts.AccountObjectsRequestParams.AccountObjectType) // optionaltype
.deletionBlockersOnly(boolean) // optionaldeletionBlockersOnly
.ledgerHash(org.xrpl.xrpl4j.model.transactions.Hash256) // optionalledgerHash
.ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex | null) // nullableledgerIndex
.ledgerSpecifier(org.xrpl.xrpl4j.model.client.common.LedgerSpecifier) // optionalledgerSpecifier
.limit(com.google.common.primitives.UnsignedInteger) // optionallimit
.marker(org.xrpl.xrpl4j.model.transactions.Marker) // optionalmarker
.build();- Returns:
- A new ImmutableAccountObjectsRequestParams builder
-
-