Class ImmutableAcceptLedgerResult.Builder
java.lang.Object
org.xrpl.xrpl4j.model.client.admin.ImmutableAcceptLedgerResult.Builder
- Enclosing class:
ImmutableAcceptLedgerResult
Builds instances of type
ImmutableAcceptLedgerResult.
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 TypeMethodDescriptionbuild()Builds a newImmutableAcceptLedgerResult.from(AcceptLedgerResult instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.admin.AcceptLedgerResultinstance.from(XrplResult instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.XrplResultinstance.ledgerCurrentIndex(LedgerIndex ledgerCurrentIndex) Initializes the value for theledgerCurrentIndexattribute.Initializes the optional valuestatusto status.Initializes the optional valuestatusto status.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder from(AcceptLedgerResult instance) Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.admin.AcceptLedgerResultinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedorg.xrpl.xrpl4j.model.client.XrplResultinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
status
Initializes the optional valuestatusto status.- Parameters:
status- The value for status- Returns:
thisbuilder for chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder status(Optional<String> status) Initializes the optional valuestatusto status.- Parameters:
status- The value for status- Returns:
thisbuilder for use in a chained invocation
-
ledgerCurrentIndex
@CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder ledgerCurrentIndex(LedgerIndex ledgerCurrentIndex) Initializes the value for theledgerCurrentIndexattribute.- Parameters:
ledgerCurrentIndex- The value for ledgerCurrentIndex- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAcceptLedgerResult.- Returns:
- An immutable instance of AcceptLedgerResult
- Throws:
IllegalStateException- if any required attributes are missing
-