Class ImmutableAccountChannelsRequestParams

    • Method Detail

      • limit

        public Optional<com.google.common.primitives.UnsignedInteger> limit()
        Limit the number of transactions to retrieve. Cannot be less than 10 or more than 400. The default is 200.
        Specified by:
        limit in interface AccountChannelsRequestParams
        Returns:
        An optionally-present UnsignedInteger.
      • withAccount

        public final ImmutableAccountChannelsRequestParams 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
      • withDestinationAccount

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

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

        @Deprecated
        public final ImmutableAccountChannelsRequestParams 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 ImmutableAccountChannelsRequestParams 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 ImmutableAccountChannelsRequestParams 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
      • withLimit

        public final ImmutableAccountChannelsRequestParams 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 ImmutableAccountChannelsRequestParams 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 ImmutableAccountChannelsRequestParams 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 ImmutableAccountChannelsRequestParams 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 ImmutableAccountChannelsRequestParams 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, destinationAccount, ledgerSpecifier, limit, marker.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableAccountChannelsRequestParams.Builder builder()
        Creates a builder for ImmutableAccountChannelsRequestParams.
         ImmutableAccountChannelsRequestParams.builder()
            .account(org.xrpl.xrpl4j.model.transactions.Address) // required account
            .destinationAccount(org.xrpl.xrpl4j.model.transactions.Address) // optional destinationAccount
            .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
            .limit(com.google.common.primitives.UnsignedInteger) // optional limit
            .marker(org.xrpl.xrpl4j.model.transactions.Marker) // optional marker
            .build();
         
        Returns:
        A new ImmutableAccountChannelsRequestParams builder