Class Pagination

java.lang.Object
com.algolia.model.ingestion.Pagination

public class Pagination extends Object
Paginated API response.
  • Constructor Details

    • Pagination

      public Pagination()
  • Method Details

    • setNbPages

      public Pagination setNbPages(Integer nbPages)
    • getNbPages

      @Nonnull public Integer getNbPages()
      Number of pages in the API response. minimum: 1
    • setPage

      public Pagination setPage(Integer page)
    • getPage

      @Nonnull public Integer getPage()
      Page of the API response to retrieve. minimum: 1
    • setNbItems

      public Pagination setNbItems(Integer nbItems)
    • getNbItems

      @Nonnull public Integer getNbItems()
      Number of items in the API response. minimum: 0
    • setItemsPerPage

      public Pagination setItemsPerPage(Integer itemsPerPage)
    • getItemsPerPage

      @Nonnull public Integer getItemsPerPage()
      Number of items per page. minimum: 1 maximum: 100
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object