Class ImmutableAccountObjectsRequestParams.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.client.accounts.ImmutableAccountObjectsRequestParams.Builder
-
- Enclosing class:
- ImmutableAccountObjectsRequestParams
@NotThreadSafe public static final class ImmutableAccountObjectsRequestParams.Builder extends Object
Builds instances of typeImmutableAccountObjectsRequestParams
. 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 ImmutableAccountObjectsRequestParams.Builder from(AccountObjectsRequestParams instance)
Fill a builder with attribute values from the providedAccountObjectsRequestParams
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 ImmutableAccountObjectsRequestParams.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
-
type
@CanIgnoreReturnValue public final ImmutableAccountObjectsRequestParams.Builder type(AccountObjectsRequestParams.AccountObjectType type)
Initializes the optional valuetype
to type.- Parameters:
type
- The value for type- Returns:
this
builder for chained invocation
-
type
@CanIgnoreReturnValue public final ImmutableAccountObjectsRequestParams.Builder type(Optional<? extends AccountObjectsRequestParams.AccountObjectType> type)
Initializes the optional valuetype
to type.- Parameters:
type
- The value for type- Returns:
this
builder for use in a chained invocation
-
deletionBlockersOnly
@CanIgnoreReturnValue public final ImmutableAccountObjectsRequestParams.Builder deletionBlockersOnly(boolean deletionBlockersOnly)
Initializes the value for thedeletionBlockersOnly
attribute.If not set, this attribute will have a default value as returned by the initializer of
deletionBlockersOnly
.- Parameters:
deletionBlockersOnly
- The value for deletionBlockersOnly- Returns:
this
builder for use in a chained invocation
-
ledgerHash
@CanIgnoreReturnValue @Deprecated public final ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams.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
-
limit
@CanIgnoreReturnValue public final ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams.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 ImmutableAccountObjectsRequestParams build()
Builds a newImmutableAccountObjectsRequestParams
.- Returns:
- An immutable instance of AccountObjectsRequestParams
- Throws:
IllegalStateException
- if any required attributes are missing
-
-