@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class PageableObject extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PageableObject.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_OFFSET |
static String |
SERIALIZED_NAME_PAGE_NUMBER |
static String |
SERIALIZED_NAME_PAGE_SIZE |
static String |
SERIALIZED_NAME_PAGED |
static String |
SERIALIZED_NAME_SORT |
static String |
SERIALIZED_NAME_UNPAGED |
Constructor and Description |
---|
PageableObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static PageableObject |
fromJson(String jsonString)
Create an instance of PageableObject given an JSON string
|
Long |
getOffset()
Get offset
|
Boolean |
getPaged()
Get paged
|
Integer |
getPageNumber()
Get pageNumber
|
Integer |
getPageSize()
Get pageSize
|
Sort |
getSort()
Get sort
|
Boolean |
getUnpaged()
Get unpaged
|
int |
hashCode() |
PageableObject |
offset(Long offset) |
PageableObject |
paged(Boolean paged) |
PageableObject |
pageNumber(Integer pageNumber) |
PageableObject |
pageSize(Integer pageSize) |
void |
setOffset(Long offset) |
void |
setPaged(Boolean paged) |
void |
setPageNumber(Integer pageNumber) |
void |
setPageSize(Integer pageSize) |
void |
setSort(Sort sort) |
void |
setUnpaged(Boolean unpaged) |
PageableObject |
sort(Sort sort) |
String |
toJson()
Convert an instance of PageableObject to an JSON string
|
String |
toString() |
PageableObject |
unpaged(Boolean unpaged) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_OFFSET
public static final String SERIALIZED_NAME_SORT
public static final String SERIALIZED_NAME_PAGE_NUMBER
public static final String SERIALIZED_NAME_PAGE_SIZE
public static final String SERIALIZED_NAME_PAGED
public static final String SERIALIZED_NAME_UNPAGED
public PageableObject offset(Long offset)
public void setOffset(Long offset)
public PageableObject sort(Sort sort)
public void setSort(Sort sort)
public PageableObject pageNumber(Integer pageNumber)
public void setPageNumber(Integer pageNumber)
public PageableObject pageSize(Integer pageSize)
public void setPageSize(Integer pageSize)
public PageableObject paged(Boolean paged)
public void setPaged(Boolean paged)
public PageableObject unpaged(Boolean unpaged)
public void setUnpaged(Boolean unpaged)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to PageableObjectpublic static PageableObject fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to PageableObjectpublic String toJson()
Copyright © 2023. All rights reserved.