Class Pagination


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

      • Pagination

        public Pagination()
    • Method Detail

      • getHasMore

        @Nonnull
        public Boolean getHasMore()
        Next page is available
        Returns:
        hasMore
      • setHasMore

        public void setHasMore​(Boolean hasMore)
      • getNextOffset

        @Nonnull
        public String getNextOffset()
        Token used to retrieve the next page
        Returns:
        nextOffset
      • setNextOffset

        public void setNextOffset​(String nextOffset)
      • getResults

        @Nonnull
        public Integer getResults()
        Number of values found in the results minimum: 0
        Returns:
        results
      • setResults

        public void setResults​(Integer results)
      • getMaxPerPage

        @Nonnull
        public Integer getMaxPerPage()
        Maximal number of entries per page minimum: 0
        Returns:
        maxPerPage
      • setMaxPerPage

        public void setMaxPerPage​(Integer maxPerPage)
      • putAdditionalProperty

        public Pagination putAdditionalProperty​(String key,
                                                Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the Pagination instance itself
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to Pagination
      • fromJson

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

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