Class ImmutableChannelVerifyRequestParams.Builder
java.lang.Object
org.xrpl.xrpl4j.model.client.channels.ImmutableChannelVerifyRequestParams.Builder
- Enclosing class:
ImmutableChannelVerifyRequestParams
Builds instances of type
ImmutableChannelVerifyRequestParams.
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 TypeMethodDescriptionamount(XrpCurrencyAmount amount) Initializes the value for theamountattribute.build()Builds a newImmutableChannelVerifyRequestParams.Initializes the value for thechannelIdattribute.from(ChannelVerifyRequestParams instance) Fill a builder with attribute values from the providedChannelVerifyRequestParamsinstance.Initializes the value for thepublicKeyattribute.Initializes the value for thesignatureattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableChannelVerifyRequestParams.Builder from(ChannelVerifyRequestParams instance) Fill a builder with attribute values from the providedChannelVerifyRequestParamsinstance. 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
-
amount
@CanIgnoreReturnValue public final ImmutableChannelVerifyRequestParams.Builder amount(XrpCurrencyAmount amount) Initializes the value for theamountattribute.- Parameters:
amount- The value for amount- Returns:
thisbuilder for use in a chained invocation
-
channelId
@CanIgnoreReturnValue public final ImmutableChannelVerifyRequestParams.Builder channelId(Hash256 channelId) Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
publicKey
@CanIgnoreReturnValue public final ImmutableChannelVerifyRequestParams.Builder publicKey(String publicKey) Initializes the value for thepublicKeyattribute.- Parameters:
publicKey- The value for publicKey- Returns:
thisbuilder for use in a chained invocation
-
signature
@CanIgnoreReturnValue public final ImmutableChannelVerifyRequestParams.Builder signature(String signature) Initializes the value for thesignatureattribute.- Parameters:
signature- The value for signature- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableChannelVerifyRequestParams.- Returns:
- An immutable instance of ChannelVerifyRequestParams
- Throws:
IllegalStateException- if any required attributes are missing
-