Class PageableObject
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.PageableObject
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PageableObject
extends Object
PageableObject
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PageableObjectCreate an instance of PageableObject given an JSON stringGet offsetgetPaged()Get pagedGet pageNumberGet pageSizegetSort()Get sortGet unpagedinthashCode()pageNumber(Integer pageNumber) voidvoidvoidsetPageNumber(Integer pageNumber) voidsetPageSize(Integer pageSize) voidsetSort(SortObject sort) voidsetUnpaged(Boolean unpaged) sort(SortObject sort) toJson()Convert an instance of PageableObject to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_OFFSET
- See Also:
-
SERIALIZED_NAME_PAGE_NUMBER
- See Also:
-
SERIALIZED_NAME_PAGE_SIZE
- See Also:
-
SERIALIZED_NAME_PAGED
- See Also:
-
SERIALIZED_NAME_SORT
- See Also:
-
SERIALIZED_NAME_UNPAGED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PageableObject
public PageableObject()
-
-
Method Details
-
offset
-
getOffset
Get offset- Returns:
- offset
-
setOffset
-
pageNumber
-
getPageNumber
Get pageNumber- Returns:
- pageNumber
-
setPageNumber
-
pageSize
-
getPageSize
Get pageSize- Returns:
- pageSize
-
setPageSize
-
paged
-
getPaged
Get paged- Returns:
- paged
-
setPaged
-
sort
-
getSort
Get sort- Returns:
- sort
-
setSort
-
unpaged
-
getUnpaged
Get unpaged- Returns:
- unpaged
-
setUnpaged
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 PageableObject
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a PageableObject
-
fromJson
Create an instance of PageableObject given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PageableObject
- Throws:
IOException- if the JSON string is invalid with respect to PageableObject
-
toJson
Convert an instance of PageableObject to an JSON string- Returns:
- JSON string
-