Class ImmutableAccountLinesRequestParams

    • Method Detail

      • limit

        public Optional<com.google.common.primitives.UnsignedInteger> limit()
        Limit the number of trust lines to retrieve. The server is not required to honor this value. Must be within the inclusive range 10 to 400.
        Specified by:
        limit in interface AccountLinesRequestParams
        Returns:
        An optionally-present UnsignedInteger representing the response limit.
      • marker

        public Optional<Marker> marker()
        Value from a previous paginated response. Resume retrieving data where that response left off.
        Specified by:
        marker in interface AccountLinesRequestParams
        Returns:
        An optionally-present String containing the marker.
      • withAccount

        public final ImmutableAccountLinesRequestParams 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
      • withLedgerHash

        @Deprecated
        public final ImmutableAccountLinesRequestParams withLedgerHash​(Optional<? extends Hash256> optional)
        Deprecated.
        Copy the current immutable object by setting an optional value for the ledgerHash 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 ledgerHash
        Returns:
        A modified copy of this object
      • withLedgerIndex

        @Deprecated
        public final ImmutableAccountLinesRequestParams withLedgerIndex​(@Nullable
                                                                        LedgerIndex value)
        Deprecated.
        Copy the current immutable object by setting a value for the ledgerIndex attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerIndex (can be null)
        Returns:
        A modified copy of the this object
      • withLedgerSpecifier

        public final ImmutableAccountLinesRequestParams withLedgerSpecifier​(LedgerSpecifier value)
        Copy the current immutable object by setting a value for the ledgerSpecifier attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerSpecifier
        Returns:
        A modified copy of the this object
      • withPeer

        public final ImmutableAccountLinesRequestParams withPeer​(Address value)
        Copy the current immutable object by setting a present value for the optional peer attribute.
        Parameters:
        value - The value for peer
        Returns:
        A modified copy of this object
      • withPeer

        public final ImmutableAccountLinesRequestParams withPeer​(Optional<? extends Address> optional)
        Copy the current immutable object by setting an optional value for the peer 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 peer
        Returns:
        A modified copy of this object
      • withLimit

        public final ImmutableAccountLinesRequestParams withLimit​(com.google.common.primitives.UnsignedInteger value)
        Copy the current immutable object by setting a present value for the optional limit attribute.
        Parameters:
        value - The value for limit
        Returns:
        A modified copy of this object
      • withLimit

        public final ImmutableAccountLinesRequestParams withLimit​(Optional<? extends com.google.common.primitives.UnsignedInteger> optional)
        Copy the current immutable object by setting an optional value for the limit 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 limit
        Returns:
        A modified copy of this object
      • withMarker

        public final ImmutableAccountLinesRequestParams 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 ImmutableAccountLinesRequestParams 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
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableAccountLinesRequestParams 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: account, ledgerSpecifier, peer, limit, marker.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableAccountLinesRequestParams.Builder builder()
        Creates a builder for ImmutableAccountLinesRequestParams.
         ImmutableAccountLinesRequestParams.builder()
            .account(org.xrpl.xrpl4j.model.transactions.Address) // required account
            .ledgerHash(org.xrpl.xrpl4j.model.transactions.Hash256) // optional ledgerHash
            .ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex | null) // nullable ledgerIndex
            .ledgerSpecifier(org.xrpl.xrpl4j.model.client.common.LedgerSpecifier) // optional ledgerSpecifier
            .peer(org.xrpl.xrpl4j.model.transactions.Address) // optional peer
            .limit(com.google.common.primitives.UnsignedInteger) // optional limit
            .marker(org.xrpl.xrpl4j.model.transactions.Marker) // optional marker
            .build();
         
        Returns:
        A new ImmutableAccountLinesRequestParams builder