Class ImmutablePaymentChannelClaim.Builder
- java.lang.Object
-
- org.xrpl.xrpl4j.model.transactions.ImmutablePaymentChannelClaim.Builder
-
- Enclosing class:
- ImmutablePaymentChannelClaim
@NotThreadSafe public static final class ImmutablePaymentChannelClaim.Builder extends Object
Builds instances of typeImmutablePaymentChannelClaim
. Initialize attributes and then invoke thebuild()
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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutablePaymentChannelClaim.Builder
account(Address account)
Initializes the value for theaccount
attribute.ImmutablePaymentChannelClaim.Builder
accountTransactionId(Optional<? extends Hash256> accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.ImmutablePaymentChannelClaim.Builder
accountTransactionId(Hash256 accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.ImmutablePaymentChannelClaim.Builder
addAllMemos(Iterable<? extends MemoWrapper> elements)
Adds elements tomemos
list.ImmutablePaymentChannelClaim.Builder
addAllSigners(Iterable<? extends SignerWrapper> elements)
Adds elements tosigners
list.ImmutablePaymentChannelClaim.Builder
addMemos(MemoWrapper element)
Adds one element tomemos
list.ImmutablePaymentChannelClaim.Builder
addMemos(MemoWrapper... elements)
Adds elements tomemos
list.ImmutablePaymentChannelClaim.Builder
addSigners(SignerWrapper element)
Adds one element tosigners
list.ImmutablePaymentChannelClaim.Builder
addSigners(SignerWrapper... elements)
Adds elements tosigners
list.ImmutablePaymentChannelClaim.Builder
amount(Optional<? extends XrpCurrencyAmount> amount)
Initializes the optional valueamount
to amount.ImmutablePaymentChannelClaim.Builder
amount(XrpCurrencyAmount amount)
Initializes the optional valueamount
to amount.ImmutablePaymentChannelClaim.Builder
balance(Optional<? extends XrpCurrencyAmount> balance)
Initializes the optional valuebalance
to balance.ImmutablePaymentChannelClaim.Builder
balance(XrpCurrencyAmount balance)
Initializes the optional valuebalance
to balance.ImmutablePaymentChannelClaim
build()
Builds a newImmutablePaymentChannelClaim
.ImmutablePaymentChannelClaim.Builder
channel(Hash256 channel)
Initializes the value for thechannel
attribute.ImmutablePaymentChannelClaim.Builder
closeDate(com.google.common.primitives.UnsignedLong closeDate)
Deprecated.ImmutablePaymentChannelClaim.Builder
closeDate(Optional<? extends com.google.common.primitives.UnsignedLong> closeDate)
Deprecated.ImmutablePaymentChannelClaim.Builder
fee(XrpCurrencyAmount fee)
Initializes the value for thefee
attribute.ImmutablePaymentChannelClaim.Builder
flags(Flags.PaymentChannelClaimFlags flags)
Initializes the value for theflags
attribute.ImmutablePaymentChannelClaim.Builder
from(PaymentChannelClaim instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.PaymentChannelClaim
instance.ImmutablePaymentChannelClaim.Builder
from(Transaction instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transaction
instance.ImmutablePaymentChannelClaim.Builder
hash(Optional<? extends Hash256> hash)
Deprecated.ImmutablePaymentChannelClaim.Builder
hash(Hash256 hash)
Deprecated.ImmutablePaymentChannelClaim.Builder
lastLedgerSequence(com.google.common.primitives.UnsignedInteger lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.ImmutablePaymentChannelClaim.Builder
lastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.ImmutablePaymentChannelClaim.Builder
ledgerIndex(Optional<? extends LedgerIndex> ledgerIndex)
Deprecated.ImmutablePaymentChannelClaim.Builder
ledgerIndex(LedgerIndex ledgerIndex)
Deprecated.ImmutablePaymentChannelClaim.Builder
memos(Iterable<? extends MemoWrapper> elements)
Sets or replaces all elements formemos
list.ImmutablePaymentChannelClaim.Builder
publicKey(String publicKey)
Initializes the optional valuepublicKey
to publicKey.ImmutablePaymentChannelClaim.Builder
publicKey(Optional<String> publicKey)
Initializes the optional valuepublicKey
to publicKey.ImmutablePaymentChannelClaim.Builder
sequence(com.google.common.primitives.UnsignedInteger sequence)
Initializes the value for thesequence
attribute.ImmutablePaymentChannelClaim.Builder
signature(String signature)
Initializes the optional valuesignature
to signature.ImmutablePaymentChannelClaim.Builder
signature(Optional<String> signature)
Initializes the optional valuesignature
to signature.ImmutablePaymentChannelClaim.Builder
signers(Iterable<? extends SignerWrapper> elements)
Sets or replaces all elements forsigners
list.ImmutablePaymentChannelClaim.Builder
signingPublicKey(String signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.ImmutablePaymentChannelClaim.Builder
signingPublicKey(Optional<String> signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.ImmutablePaymentChannelClaim.Builder
sourceTag(com.google.common.primitives.UnsignedInteger sourceTag)
Initializes the optional valuesourceTag
to sourceTag.ImmutablePaymentChannelClaim.Builder
sourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> sourceTag)
Initializes the optional valuesourceTag
to sourceTag.ImmutablePaymentChannelClaim.Builder
transactionSignature(String transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.ImmutablePaymentChannelClaim.Builder
transactionSignature(Optional<String> transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder from(Transaction instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.Transaction
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder from(PaymentChannelClaim instance)
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.transactions.PaymentChannelClaim
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
account
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder account(Address account)
Initializes the value for theaccount
attribute.- Parameters:
account
- The value for account- Returns:
this
builder for use in a chained invocation
-
fee
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder fee(XrpCurrencyAmount fee)
Initializes the value for thefee
attribute.- Parameters:
fee
- The value for fee- Returns:
this
builder for use in a chained invocation
-
sequence
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder sequence(com.google.common.primitives.UnsignedInteger sequence)
Initializes the value for thesequence
attribute.- Parameters:
sequence
- The value for sequence- Returns:
this
builder for use in a chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder accountTransactionId(Hash256 accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.- Parameters:
accountTransactionId
- The value for accountTransactionId- Returns:
this
builder for chained invocation
-
accountTransactionId
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder accountTransactionId(Optional<? extends Hash256> accountTransactionId)
Initializes the optional valueaccountTransactionId
to accountTransactionId.- Parameters:
accountTransactionId
- The value for accountTransactionId- Returns:
this
builder for use in a chained invocation
-
lastLedgerSequence
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder lastLedgerSequence(com.google.common.primitives.UnsignedInteger lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.- Parameters:
lastLedgerSequence
- The value for lastLedgerSequence- Returns:
this
builder for chained invocation
-
lastLedgerSequence
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder lastLedgerSequence(Optional<? extends com.google.common.primitives.UnsignedInteger> lastLedgerSequence)
Initializes the optional valuelastLedgerSequence
to lastLedgerSequence.- Parameters:
lastLedgerSequence
- The value for lastLedgerSequence- Returns:
this
builder for use in a chained invocation
-
addMemos
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder addMemos(MemoWrapper element)
Adds one element tomemos
list.- Parameters:
element
- A memos element- Returns:
this
builder for use in a chained invocation
-
addMemos
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder addMemos(MemoWrapper... elements)
Adds elements tomemos
list.- Parameters:
elements
- An array of memos elements- Returns:
this
builder for use in a chained invocation
-
memos
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder memos(Iterable<? extends MemoWrapper> elements)
Sets or replaces all elements formemos
list.- Parameters:
elements
- An iterable of memos elements- Returns:
this
builder for use in a chained invocation
-
addAllMemos
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder addAllMemos(Iterable<? extends MemoWrapper> elements)
Adds elements tomemos
list.- Parameters:
elements
- An iterable of memos elements- Returns:
this
builder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder addSigners(SignerWrapper element)
Adds one element tosigners
list.- Parameters:
element
- A signers element- Returns:
this
builder for use in a chained invocation
-
addSigners
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder addSigners(SignerWrapper... elements)
Adds elements tosigners
list.- Parameters:
elements
- An array of signers elements- Returns:
this
builder for use in a chained invocation
-
signers
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder signers(Iterable<? extends SignerWrapper> elements)
Sets or replaces all elements forsigners
list.- Parameters:
elements
- An iterable of signers elements- Returns:
this
builder for use in a chained invocation
-
addAllSigners
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder addAllSigners(Iterable<? extends SignerWrapper> elements)
Adds elements tosigners
list.- Parameters:
elements
- An iterable of signers elements- Returns:
this
builder for use in a chained invocation
-
sourceTag
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder sourceTag(com.google.common.primitives.UnsignedInteger sourceTag)
Initializes the optional valuesourceTag
to sourceTag.- Parameters:
sourceTag
- The value for sourceTag- Returns:
this
builder for chained invocation
-
sourceTag
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder sourceTag(Optional<? extends com.google.common.primitives.UnsignedInteger> sourceTag)
Initializes the optional valuesourceTag
to sourceTag.- Parameters:
sourceTag
- The value for sourceTag- Returns:
this
builder for use in a chained invocation
-
signingPublicKey
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder signingPublicKey(String signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.- Parameters:
signingPublicKey
- The value for signingPublicKey- Returns:
this
builder for chained invocation
-
signingPublicKey
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder signingPublicKey(Optional<String> signingPublicKey)
Initializes the optional valuesigningPublicKey
to signingPublicKey.- Parameters:
signingPublicKey
- The value for signingPublicKey- Returns:
this
builder for use in a chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder transactionSignature(String transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.- Parameters:
transactionSignature
- The value for transactionSignature- Returns:
this
builder for chained invocation
-
transactionSignature
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder transactionSignature(Optional<String> transactionSignature)
Initializes the optional valuetransactionSignature
to transactionSignature.- Parameters:
transactionSignature
- The value for transactionSignature- Returns:
this
builder for use in a chained invocation
-
closeDate
@CanIgnoreReturnValue @Deprecated public final ImmutablePaymentChannelClaim.Builder closeDate(com.google.common.primitives.UnsignedLong closeDate)
Deprecated.Initializes the optional valuecloseDate
to closeDate.- Parameters:
closeDate
- The value for closeDate- Returns:
this
builder for chained invocation
-
closeDate
@CanIgnoreReturnValue @Deprecated public final ImmutablePaymentChannelClaim.Builder closeDate(Optional<? extends com.google.common.primitives.UnsignedLong> closeDate)
Deprecated.Initializes the optional valuecloseDate
to closeDate.- Parameters:
closeDate
- The value for closeDate- Returns:
this
builder for use in a chained invocation
-
hash
@CanIgnoreReturnValue @Deprecated public final ImmutablePaymentChannelClaim.Builder hash(Hash256 hash)
Deprecated.Initializes the optional valuehash
to hash.- Parameters:
hash
- The value for hash- Returns:
this
builder for chained invocation
-
hash
@CanIgnoreReturnValue @Deprecated public final ImmutablePaymentChannelClaim.Builder hash(Optional<? extends Hash256> hash)
Deprecated.Initializes the optional valuehash
to hash.- Parameters:
hash
- The value for hash- Returns:
this
builder for use in a chained invocation
-
ledgerIndex
@CanIgnoreReturnValue @Deprecated public final ImmutablePaymentChannelClaim.Builder ledgerIndex(LedgerIndex ledgerIndex)
Deprecated.Initializes the optional valueledgerIndex
to ledgerIndex.- Parameters:
ledgerIndex
- The value for ledgerIndex- Returns:
this
builder for chained invocation
-
ledgerIndex
@CanIgnoreReturnValue @Deprecated public final ImmutablePaymentChannelClaim.Builder ledgerIndex(Optional<? extends LedgerIndex> ledgerIndex)
Deprecated.Initializes the optional valueledgerIndex
to ledgerIndex.- Parameters:
ledgerIndex
- The value for ledgerIndex- Returns:
this
builder for use in a chained invocation
-
flags
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder flags(Flags.PaymentChannelClaimFlags flags)
Initializes the value for theflags
attribute.If not set, this attribute will have a default value as returned by the initializer of
flags
.- Parameters:
flags
- The value for flags- Returns:
this
builder for use in a chained invocation
-
channel
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder channel(Hash256 channel)
Initializes the value for thechannel
attribute.- Parameters:
channel
- The value for channel- Returns:
this
builder for use in a chained invocation
-
balance
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder balance(XrpCurrencyAmount balance)
Initializes the optional valuebalance
to balance.- Parameters:
balance
- The value for balance- Returns:
this
builder for chained invocation
-
balance
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder balance(Optional<? extends XrpCurrencyAmount> balance)
Initializes the optional valuebalance
to balance.- Parameters:
balance
- The value for balance- Returns:
this
builder for use in a chained invocation
-
amount
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder amount(XrpCurrencyAmount amount)
Initializes the optional valueamount
to amount.- Parameters:
amount
- The value for amount- Returns:
this
builder for chained invocation
-
amount
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder amount(Optional<? extends XrpCurrencyAmount> amount)
Initializes the optional valueamount
to amount.- Parameters:
amount
- The value for amount- Returns:
this
builder for use in a chained invocation
-
signature
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder signature(String signature)
Initializes the optional valuesignature
to signature.- Parameters:
signature
- The value for signature- Returns:
this
builder for chained invocation
-
signature
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder signature(Optional<String> signature)
Initializes the optional valuesignature
to signature.- Parameters:
signature
- The value for signature- Returns:
this
builder for use in a chained invocation
-
publicKey
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder publicKey(String publicKey)
Initializes the optional valuepublicKey
to publicKey.- Parameters:
publicKey
- The value for publicKey- Returns:
this
builder for chained invocation
-
publicKey
@CanIgnoreReturnValue public final ImmutablePaymentChannelClaim.Builder publicKey(Optional<String> publicKey)
Initializes the optional valuepublicKey
to publicKey.- Parameters:
publicKey
- The value for publicKey- Returns:
this
builder for use in a chained invocation
-
build
public ImmutablePaymentChannelClaim build()
Builds a newImmutablePaymentChannelClaim
.- Returns:
- An immutable instance of PaymentChannelClaim
- Throws:
IllegalStateException
- if any required attributes are missing
-
-