Package model

Class PageOffset


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class PageOffset
    extends Object
    PageOffset
    • Constructor Detail

      • PageOffset

        public PageOffset()
    • Method Detail

      • getCount

        @Nullable
        public Long getCount()
        The number of entries returned.
        Returns:
        count
      • setCount

        public void setCount​(Long count)
      • getLimit

        @Nullable
        public Long getLimit()
        The number of entries to return.
        Returns:
        limit
      • setLimit

        public void setLimit​(Long limit)
      • getOffset

        @Nullable
        public Long getOffset()
        The number of items to skip before starting to collect the result set.
        Returns:
        offset
      • setOffset

        public void setOffset​(Long offset)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to PageOffset
      • fromJson

        public static PageOffset fromJson​(String jsonString)
                                   throws IOException
        Create an instance of PageOffset given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PageOffset
        Throws:
        IOException - if the JSON string is invalid with respect to PageOffset
      • toJson

        public String toJson()
        Convert an instance of PageOffset to an JSON string
        Returns:
        JSON string