Class ImmutableAccountTransactionsResult

    • Method Detail

      • status

        public Optional<String> status()
        The value "success" indicates the request was successfully received and understood by the server.
        Specified by:
        status in interface XrplResult
        Returns:
        The String "success" if the request was successful, otherwise Optional.empty().
      • limit

        public com.google.common.primitives.UnsignedInteger limit()
        The limit value used in the request. (This may differ from the actual limit value enforced by the server.)
        Specified by:
        limit in interface AccountTransactionsResult
        Returns:
        An UnsignedInteger representing the requested limit.
      • marker

        public Optional<Marker> marker()
        Server-defined value indicating the response is paginated. Pass this to the next call to resume where this call left off.
        Specified by:
        marker in interface AccountTransactionsResult
        Returns:
        A String containing the marker.
      • validated

        public boolean validated()
        Whether or not the information in this response comes from a validated ledger version.
        Specified by:
        validated in interface AccountTransactionsResult
        Returns:
        true if the information is from a validated ledger, otherwise false.
      • withStatus

        public final ImmutableAccountTransactionsResult withStatus​(String value)
        Copy the current immutable object by setting a present value for the optional status attribute.
        Parameters:
        value - The value for status
        Returns:
        A modified copy of this object
      • withStatus

        public final ImmutableAccountTransactionsResult withStatus​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the status attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for status
        Returns:
        A modified copy of this object
      • withAccount

        public final ImmutableAccountTransactionsResult withAccount​(Address value)
        Copy the current immutable object by setting a value for the account attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for account
        Returns:
        A modified copy of the this object
      • withLedgerIndexMin

        @Deprecated
        public final ImmutableAccountTransactionsResult withLedgerIndexMin​(LedgerIndex value)
        Deprecated.
        Copy the current immutable object by setting a value for the ledgerIndexMin attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerIndexMin
        Returns:
        A modified copy of the this object
      • withLedgerIndexMax

        @Deprecated
        public final ImmutableAccountTransactionsResult withLedgerIndexMax​(LedgerIndex value)
        Deprecated.
        Copy the current immutable object by setting a value for the ledgerIndexMax attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerIndexMax
        Returns:
        A modified copy of the this object
      • withLedgerIndexMinimum

        public final ImmutableAccountTransactionsResult withLedgerIndexMinimum​(LedgerIndexBound value)
        Copy the current immutable object by setting a value for the ledgerIndexMinimum attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerIndexMinimum
        Returns:
        A modified copy of the this object
      • withLedgerIndexMaximum

        public final ImmutableAccountTransactionsResult withLedgerIndexMaximum​(LedgerIndexBound value)
        Copy the current immutable object by setting a value for the ledgerIndexMaximum attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerIndexMaximum
        Returns:
        A modified copy of the this object
      • withLimit

        public final ImmutableAccountTransactionsResult withLimit​(com.google.common.primitives.UnsignedInteger value)
        Copy the current immutable object by setting a value for the limit attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for limit
        Returns:
        A modified copy of the this object
      • withMarker

        public final ImmutableAccountTransactionsResult withMarker​(Marker value)
        Copy the current immutable object by setting a present value for the optional marker attribute.
        Parameters:
        value - The value for marker
        Returns:
        A modified copy of this object
      • withMarker

        public final ImmutableAccountTransactionsResult withMarker​(Optional<? extends Marker> optional)
        Copy the current immutable object by setting an optional value for the marker attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for marker
        Returns:
        A modified copy of this object
      • withValidated

        public final ImmutableAccountTransactionsResult withValidated​(boolean value)
        Copy the current immutable object by setting a value for the validated attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for validated
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableAccountTransactionsResult that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: status, account, ledgerIndexMinimum, ledgerIndexMaximum, limit, marker, transactions, validated.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value AccountTransactionsResult with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • builder

        public static ImmutableAccountTransactionsResult.Builder builder()
        Creates a builder for ImmutableAccountTransactionsResult.
         ImmutableAccountTransactionsResult.builder()
            .status(String) // optional status
            .account(org.xrpl.xrpl4j.model.transactions.Address) // required account
            .ledgerIndexMin(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // optional ledgerIndexMin
            .ledgerIndexMax(org.xrpl.xrpl4j.model.client.common.LedgerIndex) // optional ledgerIndexMax
            .ledgerIndexMinimum(org.xrpl.xrpl4j.model.client.common.LedgerIndexBound) // required ledgerIndexMinimum
            .ledgerIndexMaximum(org.xrpl.xrpl4j.model.client.common.LedgerIndexBound) // required ledgerIndexMaximum
            .limit(com.google.common.primitives.UnsignedInteger) // required limit
            .marker(org.xrpl.xrpl4j.model.transactions.Marker) // optional marker
            .addTransactions|addAllTransactions(org.xrpl.xrpl4j.model.client.accounts.AccountTransactionsTransactionResult&lt;? extends org.xrpl.xrpl4j.model.transactions.Transaction&gt;) // transactions elements
            .validated(boolean) // optional validated
            .build();
         
        Returns:
        A new ImmutableAccountTransactionsResult builder