Package org.xrpl.xrpl4j.model.ledger
Class ImmutableXChainOwnedCreateAccountClaimIdObject.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainOwnedCreateAccountClaimIdObject.Builder
- Enclosing class:
ImmutableXChainOwnedCreateAccountClaimIdObject
@NotThreadSafe
public static final class ImmutableXChainOwnedCreateAccountClaimIdObject.Builder
extends Object
Builds instances of type
ImmutableXChainOwnedCreateAccountClaimIdObject.
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.addAllXChainCreateAccountAttestations(Iterable<? extends XChainCreateAccountAttestation> elements) Adds elements toxChainCreateAccountAttestationslist.Adds one element toxChainCreateAccountAttestationslist.Adds elements toxChainCreateAccountAttestationslist.build()Builds a newImmutableXChainOwnedCreateAccountClaimIdObject.from(XChainOwnedCreateAccountClaimIdObject instance) Fill a builder with attribute values from the providedXChainOwnedCreateAccountClaimIdObjectinstance.Initializes the value for theindexattribute.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.xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.xChainCreateAccountAttestations(Iterable<? extends XChainCreateAccountAttestation> elements) Sets or replaces all elements forxChainCreateAccountAttestationslist.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder from(XChainOwnedCreateAccountClaimIdObject instance) Fill a builder with attribute values from the providedXChainOwnedCreateAccountClaimIdObjectinstance. 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 ImmutableXChainOwnedCreateAccountClaimIdObject.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 ImmutableXChainOwnedCreateAccountClaimIdObject.Builder xChainBridge(XChainBridge xChainBridge) Initializes the value for thexChainBridgeattribute.- Parameters:
xChainBridge- The value for xChainBridge- Returns:
thisbuilder for use in a chained invocation
-
addXChainCreateAccountAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder addXChainCreateAccountAttestations(XChainCreateAccountAttestation element) Adds one element toxChainCreateAccountAttestationslist.- Parameters:
element- A xChainCreateAccountAttestations element- Returns:
thisbuilder for use in a chained invocation
-
addXChainCreateAccountAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder addXChainCreateAccountAttestations(XChainCreateAccountAttestation... elements) Adds elements toxChainCreateAccountAttestationslist.- Parameters:
elements- An array of xChainCreateAccountAttestations elements- Returns:
thisbuilder for use in a chained invocation
-
xChainCreateAccountAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder xChainCreateAccountAttestations(Iterable<? extends XChainCreateAccountAttestation> elements) Sets or replaces all elements forxChainCreateAccountAttestationslist.- Parameters:
elements- An iterable of xChainCreateAccountAttestations elements- Returns:
thisbuilder for use in a chained invocation
-
addAllXChainCreateAccountAttestations
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder addAllXChainCreateAccountAttestations(Iterable<? extends XChainCreateAccountAttestation> elements) Adds elements toxChainCreateAccountAttestationslist.- Parameters:
elements- An iterable of xChainCreateAccountAttestations elements- Returns:
thisbuilder for use in a chained invocation
-
xChainAccountCreateCount
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder xChainAccountCreateCount(XChainCount xChainAccountCreateCount) Initializes the value for thexChainAccountCreateCountattribute.- Parameters:
xChainAccountCreateCount- The value for xChainAccountCreateCount- Returns:
thisbuilder for use in a chained invocation
-
ownerNode
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.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 ImmutableXChainOwnedCreateAccountClaimIdObject.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 ImmutableXChainOwnedCreateAccountClaimIdObject.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
@CanIgnoreReturnValue public final ImmutableXChainOwnedCreateAccountClaimIdObject.Builder index(Hash256 index) Initializes the value for theindexattribute.- Parameters:
index- The value for index- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableXChainOwnedCreateAccountClaimIdObject.- Returns:
- An immutable instance of XChainOwnedCreateAccountClaimIdObject
- Throws:
IllegalStateException- if any required attributes are missing
-