Package org.xrpl.xrpl4j.model.client.mpt
Class ImmutableMptHoldersResponse
java.lang.Object
org.xrpl.xrpl4j.model.client.mpt.ImmutableMptHoldersResponse
- All Implemented Interfaces:
MptHoldersResponse,XrplResult
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableMptHoldersResponse
extends Object
implements MptHoldersResponse
Immutable implementation of
MptHoldersResponse.
Use the builder to create immutable instances:
ImmutableMptHoldersResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableMptHoldersResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableMptHoldersResponse.static ImmutableMptHoldersResponsecopyOf(MptHoldersResponse instance) Creates an immutable copy of aMptHoldersResponsevalue.booleanThis instance is equal to all instances ofImmutableMptHoldersResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:status,mpTokenIssuanceId,mpTokens,marker,limit,ledgerIndex.Optional<com.google.common.primitives.UnsignedInteger> limit()marker()com.google.common.collect.ImmutableList<MptHoldersMpToken> mpTokens()status()The value"success"indicates the request was successfully received and understood by the server.toString()Prints the immutable valueMptHoldersResponsewith attribute values.withLedgerIndex(LedgerIndex value) Copy the current immutable object by setting a value for theledgerIndexattribute.withLimit(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallimitattribute.Copy the current immutable object by setting an optional value for thelimitattribute.withMarker(Optional<? extends Marker> optional) Copy the current immutable object by setting an optional value for themarkerattribute.withMarker(Marker value) Copy the current immutable object by setting a present value for the optionalmarkerattribute.Copy the current immutable object by setting a value for thempTokenIssuanceIdattribute.withMpTokens(Iterable<? extends MptHoldersMpToken> elements) Copy the current immutable object with elements that replace the content ofmpTokens.withMpTokens(MptHoldersMpToken... elements) Copy the current immutable object with elements that replace the content ofmpTokens.withStatus(String value) Copy the current immutable object by setting a present value for the optionalstatusattribute.withStatus(Optional<String> optional) Copy the current immutable object by setting an optional value for thestatusattribute.
-
Method Details
-
status
The value"success"indicates the request was successfully received and understood by the server.- Specified by:
statusin interfaceXrplResult- Returns:
- The
String"success"if the request was successful, otherwiseOptional.empty().
-
mpTokenIssuanceId
- Specified by:
mpTokenIssuanceIdin interfaceMptHoldersResponse- Returns:
- The value of the
mpTokenIssuanceIdattribute
-
mpTokens
- Specified by:
mpTokensin interfaceMptHoldersResponse- Returns:
- The value of the
mpTokensattribute
-
marker
- Specified by:
markerin interfaceMptHoldersResponse- Returns:
- The value of the
markerattribute
-
limit
- Specified by:
limitin interfaceMptHoldersResponse- Returns:
- The value of the
limitattribute
-
ledgerIndex
- Specified by:
ledgerIndexin interfaceMptHoldersResponse- Returns:
- The value of the
ledgerIndexattribute
-
withStatus
Copy the current immutable object by setting a present value for the optionalstatusattribute.- Parameters:
value- The value for status- Returns:
- A modified copy of
thisobject
-
withStatus
Copy the current immutable object by setting an optional value for thestatusattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for status- Returns:
- A modified copy of
thisobject
-
withMpTokenIssuanceId
Copy the current immutable object by setting a value for thempTokenIssuanceIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mpTokenIssuanceId- Returns:
- A modified copy of the
thisobject
-
withMpTokens
Copy the current immutable object with elements that replace the content ofmpTokens.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMpTokens
public final ImmutableMptHoldersResponse withMpTokens(Iterable<? extends MptHoldersMpToken> elements) Copy the current immutable object with elements that replace the content ofmpTokens. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of mpTokens elements to set- Returns:
- A modified copy of
thisobject
-
withMarker
Copy the current immutable object by setting a present value for the optionalmarkerattribute.- Parameters:
value- The value for marker- Returns:
- A modified copy of
thisobject
-
withMarker
Copy the current immutable object by setting an optional value for themarkerattribute. 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
thisobject
-
withLimit
public final ImmutableMptHoldersResponse withLimit(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallimitattribute.- Parameters:
value- The value for limit- Returns:
- A modified copy of
thisobject
-
withLimit
public final ImmutableMptHoldersResponse withLimit(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thelimitattribute. 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
thisobject
-
withLedgerIndex
Copy the current immutable object by setting a value for theledgerIndexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ledgerIndex- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableMptHoldersResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:status,mpTokenIssuanceId,mpTokens,marker,limit,ledgerIndex. -
toString
Prints the immutable valueMptHoldersResponsewith attribute values. -
copyOf
Creates an immutable copy of aMptHoldersResponsevalue. 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 MptHoldersResponse instance
-
builder
Creates a builder forImmutableMptHoldersResponse.ImmutableMptHoldersResponse.builder() .status(String) // optionalstatus.mpTokenIssuanceId(org.xrpl.xrpl4j.model.transactions.MpTokenIssuanceId) // requiredmpTokenIssuanceId.addMpTokens|addAllMpTokens(org.xrpl.xrpl4j.model.client.mpt.MptHoldersMpToken) //mpTokenselements .marker(org.xrpl.xrpl4j.model.transactions.Marker) // optionalmarker.limit(com.google.common.primitives.UnsignedInteger) // optionallimit.ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // requiredledgerIndex.build();- Returns:
- A new ImmutableMptHoldersResponse builder
-