Package org.xrpl.xrpl4j.model.ledger
Class ImmutableXChainOwnedClaimIdObject.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainOwnedClaimIdObject.Builder
- Enclosing class:
ImmutableXChainOwnedClaimIdObject
Builds instances of type
ImmutableXChainOwnedClaimIdObject.
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.addAllXChainClaimAttestations(Iterable<? extends XChainClaimAttestation> elements) Adds elements toxChainClaimAttestationslist.Adds one element toxChainClaimAttestationslist.addXChainClaimAttestations(XChainClaimAttestation... elements) Adds elements toxChainClaimAttestationslist.build()Builds a newImmutableXChainOwnedClaimIdObject.from(XChainOwnedClaimIdObject instance) Fill a builder with attribute values from the providedXChainOwnedClaimIdObjectinstance.Initializes the value for theindexattribute.otherChainSource(Address otherChainSource) Initializes the value for theotherChainSourceattribute.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.xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.xChainClaimAttestations(Iterable<? extends XChainClaimAttestation> elements) Sets or replaces all elements forxChainClaimAttestationslist.xChainClaimId(XChainClaimId xChainClaimId) Initializes the value for thexChainClaimIdattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder from(XChainOwnedClaimIdObject instance) Fill a builder with attribute values from the providedXChainOwnedClaimIdObjectinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
account
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder account(Address account) Initializes the value for theaccountattribute.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
xChainBridge
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.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 ImmutableXChainOwnedClaimIdObject.Builder xChainClaimId(XChainClaimId xChainClaimId) Initializes the value for thexChainClaimIdattribute.- Parameters:
xChainClaimId- The value for xChainClaimId- Returns:
thisbuilder for use in a chained invocation
-
otherChainSource
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder otherChainSource(Address otherChainSource) Initializes the value for theotherChainSourceattribute.- Parameters:
otherChainSource- The value for otherChainSource- Returns:
thisbuilder for use in a chained invocation
-
addXChainClaimAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder addXChainClaimAttestations(XChainClaimAttestation element) Adds one element toxChainClaimAttestationslist.- Parameters:
element- A xChainClaimAttestations element- Returns:
thisbuilder for use in a chained invocation
-
addXChainClaimAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder addXChainClaimAttestations(XChainClaimAttestation... elements) Adds elements toxChainClaimAttestationslist.- Parameters:
elements- An array of xChainClaimAttestations elements- Returns:
thisbuilder for use in a chained invocation
-
xChainClaimAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder xChainClaimAttestations(Iterable<? extends XChainClaimAttestation> elements) Sets or replaces all elements forxChainClaimAttestationslist.- Parameters:
elements- An iterable of xChainClaimAttestations elements- Returns:
thisbuilder for use in a chained invocation
-
addAllXChainClaimAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder addAllXChainClaimAttestations(Iterable<? extends XChainClaimAttestation> elements) Adds elements toxChainClaimAttestationslist.- Parameters:
elements- An iterable of xChainClaimAttestations elements- Returns:
thisbuilder for use in a chained invocation
-
signatureReward
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder signatureReward(XrpCurrencyAmount signatureReward) Initializes the value for thesignatureRewardattribute.- Parameters:
signatureReward- The value for signatureReward- Returns:
thisbuilder for use in a chained invocation
-
ownerNode
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.Builder ownerNode(String ownerNode) Initializes the value for theownerNodeattribute.- Parameters:
ownerNode- The value for ownerNode- Returns:
thisbuilder for use in a chained invocation
-
previousTransactionId
@CanIgnoreReturnValue public final ImmutableXChainOwnedClaimIdObject.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 ImmutableXChainOwnedClaimIdObject.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 newImmutableXChainOwnedClaimIdObject.- Returns:
- An immutable instance of XChainOwnedClaimIdObject
- Throws:
IllegalStateException- if any required attributes are missing
-