Package org.xrpl.xrpl4j.model.ledger
Class ImmutableAuthAccountWrapper.Builder
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableAuthAccountWrapper.Builder
- Enclosing class:
ImmutableAuthAccountWrapper
Builds instances of type
ImmutableAuthAccountWrapper.
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 TypeMethodDescriptionauthAccount(AuthAccount authAccount) Initializes the value for theauthAccountattribute.build()Builds a newImmutableAuthAccountWrapper.from(AuthAccountWrapper instance) Fill a builder with attribute values from the providedAuthAccountWrapperinstance.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAuthAccountWrapper.Builder from(AuthAccountWrapper instance) Fill a builder with attribute values from the providedAuthAccountWrapperinstance. 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
-
authAccount
@CanIgnoreReturnValue public final ImmutableAuthAccountWrapper.Builder authAccount(AuthAccount authAccount) Initializes the value for theauthAccountattribute.- Parameters:
authAccount- The value for authAccount- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAuthAccountWrapper.- Returns:
- An immutable instance of AuthAccountWrapper
- Throws:
IllegalStateException- if any required attributes are missing
-