Package io.lakefs.clients.api.model
Class Pagination
- java.lang.Object
-
- io.lakefs.clients.api.model.Pagination
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Pagination extends Object
Pagination
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPagination.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HAS_MOREstatic StringSERIALIZED_NAME_MAX_PER_PAGEstatic StringSERIALIZED_NAME_NEXT_OFFSETstatic StringSERIALIZED_NAME_RESULTS
-
Constructor Summary
Constructors Constructor Description Pagination()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PaginationfromJson(String jsonString)Create an instance of Pagination given an JSON stringBooleangetHasMore()Next page is availableIntegergetMaxPerPage()Maximal number of entries per page minimum: 0StringgetNextOffset()Token used to retrieve the next pageIntegergetResults()Number of values found in the results minimum: 0inthashCode()PaginationhasMore(Boolean hasMore)PaginationmaxPerPage(Integer maxPerPage)PaginationnextOffset(String nextOffset)Paginationresults(Integer results)voidsetHasMore(Boolean hasMore)voidsetMaxPerPage(Integer maxPerPage)voidsetNextOffset(String nextOffset)voidsetResults(Integer results)StringtoJson()Convert an instance of Pagination to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_HAS_MORE
public static final String SERIALIZED_NAME_HAS_MORE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEXT_OFFSET
public static final String SERIALIZED_NAME_NEXT_OFFSET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULTS
public static final String SERIALIZED_NAME_RESULTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_PER_PAGE
public static final String SERIALIZED_NAME_MAX_PER_PAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasMore
public Pagination hasMore(Boolean hasMore)
-
setHasMore
public void setHasMore(Boolean hasMore)
-
nextOffset
public Pagination nextOffset(String nextOffset)
-
getNextOffset
@Nonnull public String getNextOffset()
Token used to retrieve the next page- Returns:
- nextOffset
-
setNextOffset
public void setNextOffset(String nextOffset)
-
results
public Pagination results(Integer results)
-
getResults
@Nonnull public Integer getResults()
Number of values found in the results minimum: 0- Returns:
- results
-
setResults
public void setResults(Integer results)
-
maxPerPage
public Pagination maxPerPage(Integer maxPerPage)
-
getMaxPerPage
@Nonnull public Integer getMaxPerPage()
Maximal number of entries per page minimum: 0- Returns:
- maxPerPage
-
setMaxPerPage
public void setMaxPerPage(Integer maxPerPage)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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 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
-
-