Package io.lakefs.clients.sdk.model
Class Pagination
- java.lang.Object
-
- io.lakefs.clients.sdk.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 stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.BooleangetHasMore()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)PaginationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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)
-
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 propertyvalue- 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
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-