Package org.xrpl.xrpl4j.model.ledger
Class ImmutableMpTokenIssuanceObject.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableMpTokenIssuanceObject.Builder
- Enclosing class:
ImmutableMpTokenIssuanceObject
Builds instances of type
ImmutableMpTokenIssuanceObject.
Initialize attributes and then invoke the build() 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
Modifier and TypeMethodDescriptionassetScale(AssetScale assetScale) Initializes the value for theassetScaleattribute.build()Builds a newImmutableMpTokenIssuanceObject.flags(MpTokenIssuanceFlags flags) Initializes the value for theflagsattribute.from(MpTokenIssuanceObject instance) Fill a builder with attribute values from the providedMpTokenIssuanceObjectinstance.Initializes the value for theindexattribute.Initializes the value for theissuerattribute.lockedAmount(Optional<? extends MpTokenNumericAmount> lockedAmount) Initializes the optional valuelockedAmountto lockedAmount.lockedAmount(MpTokenNumericAmount lockedAmount) Initializes the optional valuelockedAmountto lockedAmount.maximumAmount(Optional<? extends MpTokenNumericAmount> maximumAmount) Initializes the optional valuemaximumAmountto maximumAmount.maximumAmount(MpTokenNumericAmount maximumAmount) Initializes the optional valuemaximumAmountto maximumAmount.mpTokenIssuanceId(Optional<? extends MpTokenIssuanceId> mpTokenIssuanceId) Initializes the optional valuempTokenIssuanceIdto mpTokenIssuanceId.mpTokenIssuanceId(MpTokenIssuanceId mpTokenIssuanceId) Initializes the optional valuempTokenIssuanceIdto mpTokenIssuanceId.mpTokenMetadata(Optional<? extends MpTokenMetadata> mpTokenMetadata) Initializes the optional valuempTokenMetadatato mpTokenMetadata.mpTokenMetadata(MpTokenMetadata mpTokenMetadata) Initializes the optional valuempTokenMetadatato mpTokenMetadata.outstandingAmount(MpTokenNumericAmount outstandingAmount) Initializes the value for theoutstandingAmountattribute.Initializes the optional valueownerNodeto ownerNode.Initializes the optional valueownerNodeto ownerNode.previousTransactionId(Hash256 previousTransactionId) Initializes the value for thepreviousTransactionIdattribute.previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence) Initializes the value for thepreviousTransactionLedgerSequenceattribute.sequence(com.google.common.primitives.UnsignedInteger sequence) Initializes the value for thesequenceattribute.transferFee(TransferFee transferFee) Initializes the value for thetransferFeeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder from(MpTokenIssuanceObject instance) Fill a builder with attribute values from the providedMpTokenIssuanceObjectinstance. 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:
thisbuilder for use in a chained invocation
-
flags
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder flags(MpTokenIssuanceFlags flags) Initializes the value for theflagsattribute.- Parameters:
flags- The value for flags- Returns:
thisbuilder for use in a chained invocation
-
issuer
Initializes the value for theissuerattribute.- Parameters:
issuer- The value for issuer- Returns:
thisbuilder for use in a chained invocation
-
sequence
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder sequence(com.google.common.primitives.UnsignedInteger sequence) Initializes the value for thesequenceattribute.- Parameters:
sequence- The value for sequence- Returns:
thisbuilder for use in a chained invocation
-
transferFee
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder transferFee(TransferFee transferFee) Initializes the value for thetransferFeeattribute.If not set, this attribute will have a default value as returned by the initializer of
transferFee.- Parameters:
transferFee- The value for transferFee- Returns:
thisbuilder for use in a chained invocation
-
assetScale
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder assetScale(AssetScale assetScale) Initializes the value for theassetScaleattribute.If not set, this attribute will have a default value as returned by the initializer of
assetScale.- Parameters:
assetScale- The value for assetScale- Returns:
thisbuilder for use in a chained invocation
-
maximumAmount
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder maximumAmount(MpTokenNumericAmount maximumAmount) Initializes the optional valuemaximumAmountto maximumAmount.- Parameters:
maximumAmount- The value for maximumAmount- Returns:
thisbuilder for chained invocation
-
maximumAmount
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder maximumAmount(Optional<? extends MpTokenNumericAmount> maximumAmount) Initializes the optional valuemaximumAmountto maximumAmount.- Parameters:
maximumAmount- The value for maximumAmount- Returns:
thisbuilder for use in a chained invocation
-
outstandingAmount
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder outstandingAmount(MpTokenNumericAmount outstandingAmount) Initializes the value for theoutstandingAmountattribute.- Parameters:
outstandingAmount- The value for outstandingAmount- Returns:
thisbuilder for use in a chained invocation
-
lockedAmount
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder lockedAmount(MpTokenNumericAmount lockedAmount) Initializes the optional valuelockedAmountto lockedAmount.- Parameters:
lockedAmount- The value for lockedAmount- Returns:
thisbuilder for chained invocation
-
lockedAmount
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder lockedAmount(Optional<? extends MpTokenNumericAmount> lockedAmount) Initializes the optional valuelockedAmountto lockedAmount.- Parameters:
lockedAmount- The value for lockedAmount- Returns:
thisbuilder for use in a chained invocation
-
mpTokenMetadata
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder mpTokenMetadata(MpTokenMetadata mpTokenMetadata) Initializes the optional valuempTokenMetadatato mpTokenMetadata.- Parameters:
mpTokenMetadata- The value for mpTokenMetadata- Returns:
thisbuilder for chained invocation
-
mpTokenMetadata
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder mpTokenMetadata(Optional<? extends MpTokenMetadata> mpTokenMetadata) Initializes the optional valuempTokenMetadatato mpTokenMetadata.- Parameters:
mpTokenMetadata- The value for mpTokenMetadata- Returns:
thisbuilder for use in a chained invocation
-
previousTransactionId
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder previousTransactionId(Hash256 previousTransactionId) Initializes the value for thepreviousTransactionIdattribute.- Parameters:
previousTransactionId- The value for previousTransactionId- Returns:
thisbuilder for use in a chained invocation
-
previousTransactionLedgerSequence
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence) Initializes the value for thepreviousTransactionLedgerSequenceattribute.- Parameters:
previousTransactionLedgerSequence- The value for previousTransactionLedgerSequence- Returns:
thisbuilder for use in a chained invocation
-
ownerNode
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder ownerNode(String ownerNode) Initializes the optional valueownerNodeto ownerNode.- Parameters:
ownerNode- The value for ownerNode- Returns:
thisbuilder for chained invocation
-
ownerNode
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder ownerNode(Optional<String> ownerNode) Initializes the optional valueownerNodeto ownerNode.- Parameters:
ownerNode- The value for ownerNode- Returns:
thisbuilder for use in a chained invocation
-
index
Initializes the value for theindexattribute.- Parameters:
index- The value for index- Returns:
thisbuilder for use in a chained invocation
-
mpTokenIssuanceId
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder mpTokenIssuanceId(MpTokenIssuanceId mpTokenIssuanceId) Initializes the optional valuempTokenIssuanceIdto mpTokenIssuanceId.- Parameters:
mpTokenIssuanceId- The value for mpTokenIssuanceId- Returns:
thisbuilder for chained invocation
-
mpTokenIssuanceId
@CanIgnoreReturnValue public final ImmutableMpTokenIssuanceObject.Builder mpTokenIssuanceId(Optional<? extends MpTokenIssuanceId> mpTokenIssuanceId) Initializes the optional valuempTokenIssuanceIdto mpTokenIssuanceId.- Parameters:
mpTokenIssuanceId- The value for mpTokenIssuanceId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableMpTokenIssuanceObject.- Returns:
- An immutable instance of MpTokenIssuanceObject
- Throws:
IllegalStateException- if any required attributes are missing
-