Package model
Class PageOffset
- java.lang.Object
-
- model.PageOffset
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PageOffset extends Object
PageOffset
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPageOffset.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTstatic StringSERIALIZED_NAME_LIMITstatic StringSERIALIZED_NAME_OFFSET
-
Constructor Summary
Constructors Constructor Description PageOffset()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PageOffsetcount(Long count)booleanequals(Object o)static PageOffsetfromJson(String jsonString)Create an instance of PageOffset given an JSON stringLonggetCount()The number of entries returned.LonggetLimit()The number of entries to return.LonggetOffset()The number of items to skip before starting to collect the result set.inthashCode()PageOffsetlimit(Long limit)PageOffsetoffset(Long offset)voidsetCount(Long count)voidsetLimit(Long limit)voidsetOffset(Long offset)StringtoJson()Convert an instance of PageOffset 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_COUNT
public static final String SERIALIZED_NAME_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LIMIT
public static final String SERIALIZED_NAME_LIMIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OFFSET
public static final String SERIALIZED_NAME_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
count
public PageOffset count(Long count)
-
setCount
public void setCount(Long count)
-
limit
public PageOffset limit(Long limit)
-
setLimit
public void setLimit(Long limit)
-
offset
public PageOffset offset(Long offset)
-
getOffset
@Nullable public Long getOffset()
The number of items to skip before starting to collect the result set.- Returns:
- offset
-
setOffset
public void setOffset(Long offset)
-
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 PageOffset
-
fromJson
public static PageOffset fromJson(String jsonString) throws IOException
Create an instance of PageOffset given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PageOffset
- Throws:
IOException- if the JSON string is invalid with respect to PageOffset
-
toJson
public String toJson()
Convert an instance of PageOffset to an JSON string- Returns:
- JSON string
-
-