Package org.xrpl.xrpl4j.model.ledger
Class ImmutableBridgeObject.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableBridgeObject.Builder
- Enclosing class:
ImmutableBridgeObject
Builds instances of type
ImmutableBridgeObject.
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 TypeMethodDescriptionInitializes the value for theaccountattribute.build()Builds a newImmutableBridgeObject.from(BridgeObject instance) Fill a builder with attribute values from the providedBridgeObjectinstance.Initializes the value for theindexattribute.minAccountCreateAmount(Optional<? extends XrpCurrencyAmount> minAccountCreateAmount) Initializes the optional valueminAccountCreateAmountto minAccountCreateAmount.minAccountCreateAmount(XrpCurrencyAmount minAccountCreateAmount) Initializes the optional valueminAccountCreateAmountto minAccountCreateAmount.Initializes the value for theownerNodeattribute.previousTransactionId(Hash256 previousTransactionId) Initializes the value for thepreviousTransactionIdattribute.previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence) Initializes the value for thepreviousTransactionLedgerSequenceattribute.signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.xChainAccountClaimCount(XChainCount xChainAccountClaimCount) Initializes the value for thexChainAccountClaimCountattribute.xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.xChainClaimId(XChainClaimId xChainClaimId) Initializes the value for thexChainClaimIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedBridgeObjectinstance. 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
-
account
Initializes the value for theaccountattribute.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
minAccountCreateAmount
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder minAccountCreateAmount(XrpCurrencyAmount minAccountCreateAmount) Initializes the optional valueminAccountCreateAmountto minAccountCreateAmount.- Parameters:
minAccountCreateAmount- The value for minAccountCreateAmount- Returns:
thisbuilder for chained invocation
-
minAccountCreateAmount
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder minAccountCreateAmount(Optional<? extends XrpCurrencyAmount> minAccountCreateAmount) Initializes the optional valueminAccountCreateAmountto minAccountCreateAmount.- Parameters:
minAccountCreateAmount- The value for minAccountCreateAmount- Returns:
thisbuilder for use in a chained invocation
-
signatureReward
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.- Parameters:
signatureReward- The value for signatureReward- Returns:
thisbuilder for use in a chained invocation
-
xChainBridge
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.- Parameters:
xChainBridge- The value for xChainBridge- Returns:
thisbuilder for use in a chained invocation
-
xChainClaimId
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainClaimId(XChainClaimId xChainClaimId) Initializes the value for thexChainClaimIdattribute.- Parameters:
xChainClaimId- The value for xChainClaimId- Returns:
thisbuilder for use in a chained invocation
-
xChainAccountCreateCount
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.- Parameters:
xChainAccountCreateCount- The value for xChainAccountCreateCount- Returns:
thisbuilder for use in a chained invocation
-
xChainAccountClaimCount
@CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainAccountClaimCount(XChainCount xChainAccountClaimCount) Initializes the value for thexChainAccountClaimCountattribute.- Parameters:
xChainAccountClaimCount- The value for xChainAccountClaimCount- Returns:
thisbuilder for use in a chained invocation
-
ownerNode
Initializes the value for theownerNodeattribute.- Parameters:
ownerNode- The value for ownerNode- Returns:
thisbuilder for use in a chained invocation
-
previousTransactionId
@CanIgnoreReturnValue public final ImmutableBridgeObject.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 ImmutableBridgeObject.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
-
index
Initializes the value for theindexattribute.- Parameters:
index- The value for index- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableBridgeObject.- Returns:
- An immutable instance of BridgeObject
- Throws:
IllegalStateException- if any required attributes are missing
-