Package cloud.dnation.hetznerclient
Class Pagination
- java.lang.Object
-
- cloud.dnation.hetznerclient.Pagination
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-08-17T03:32:29.204871Z[Etc/UTC]") public class Pagination extends ObjectPagination
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_LAST_PAGEstatic StringSERIALIZED_NAME_NEXT_PAGEstatic StringSERIALIZED_NAME_PAGEstatic StringSERIALIZED_NAME_PER_PAGEstatic StringSERIALIZED_NAME_PREVIOUS_PAGEstatic StringSERIALIZED_NAME_TOTAL_ENTRIES
-
Constructor Summary
Constructors Constructor Description Pagination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetLastPage()ID of the last page available.StringgetNextPage()ID of the next page.StringgetPage()Current page number.StringgetPerPage()Maximum number of items shown per page in the responseStringgetPreviousPage()ID of the previous page.StringgetTotalEntries()The total number of entries that exist in the database for this query.inthashCode()PaginationlastPage(String lastPage)PaginationnextPage(String nextPage)Paginationpage(String page)PaginationperPage(String perPage)PaginationpreviousPage(String previousPage)voidsetLastPage(String lastPage)voidsetNextPage(String nextPage)voidsetPage(String page)voidsetPerPage(String perPage)voidsetPreviousPage(String previousPage)voidsetTotalEntries(String totalEntries)StringtoString()PaginationtotalEntries(String totalEntries)
-
-
-
Field Detail
-
SERIALIZED_NAME_LAST_PAGE
public static final String SERIALIZED_NAME_LAST_PAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEXT_PAGE
public static final String SERIALIZED_NAME_NEXT_PAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAGE
public static final String SERIALIZED_NAME_PAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PER_PAGE
public static final String SERIALIZED_NAME_PER_PAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PREVIOUS_PAGE
public static final String SERIALIZED_NAME_PREVIOUS_PAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_ENTRIES
public static final String SERIALIZED_NAME_TOTAL_ENTRIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
lastPage
public Pagination lastPage(String lastPage)
-
getLastPage
@Nullable public String getLastPage()
ID of the last page available. Can be null if the current page is the last one.- Returns:
- lastPage
-
setLastPage
public void setLastPage(String lastPage)
-
nextPage
public Pagination nextPage(String nextPage)
-
getNextPage
@Nullable public String getNextPage()
ID of the next page. Can be null if the current page is the last one.- Returns:
- nextPage
-
setNextPage
public void setNextPage(String nextPage)
-
page
public Pagination page(String page)
-
getPage
@Nullable public String getPage()
Current page number.- Returns:
- page
-
setPage
public void setPage(String page)
-
perPage
public Pagination perPage(String perPage)
-
getPerPage
@Nullable public String getPerPage()
Maximum number of items shown per page in the response- Returns:
- perPage
-
setPerPage
public void setPerPage(String perPage)
-
previousPage
public Pagination previousPage(String previousPage)
-
getPreviousPage
@Nullable public String getPreviousPage()
ID of the previous page. Can be null if the current page is the first one.- Returns:
- previousPage
-
setPreviousPage
public void setPreviousPage(String previousPage)
-
totalEntries
public Pagination totalEntries(String totalEntries)
-
getTotalEntries
@Nullable public String getTotalEntries()
The total number of entries that exist in the database for this query. Nullable if unknown.- Returns:
- totalEntries
-
setTotalEntries
public void setTotalEntries(String totalEntries)
-
-