Class ImmutableAcceptLedgerResult.Builder

java.lang.Object
org.xrpl.xrpl4j.model.client.admin.ImmutableAcceptLedgerResult.Builder
Enclosing class:
ImmutableAcceptLedgerResult

@NotThreadSafe public static final class ImmutableAcceptLedgerResult.Builder extends Object
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 Details

    • from

      @CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder from(AcceptLedgerResult instance)
      Fill a builder with attribute values from the provided org.xrpl.xrpl4j.model.client.admin.AcceptLedgerResult instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder from(XrplResult instance)
      Fill a builder with attribute values from the provided org.xrpl.xrpl4j.model.client.XrplResult instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • status

      @CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder status(String status)
      Initializes the optional value status to status.
      Parameters:
      status - The value for status
      Returns:
      this builder for chained invocation
    • status

      @CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder status(Optional<String> status)
      Initializes the optional value status to status.
      Parameters:
      status - The value for status
      Returns:
      this builder for use in a chained invocation
    • ledgerCurrentIndex

      @CanIgnoreReturnValue public final ImmutableAcceptLedgerResult.Builder ledgerCurrentIndex(LedgerIndex ledgerCurrentIndex)
      Initializes the value for the ledgerCurrentIndex attribute.
      Parameters:
      ledgerCurrentIndex - The value for ledgerCurrentIndex
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of AcceptLedgerResult
      Throws:
      IllegalStateException - if any required attributes are missing