Package model
Class PageCursor
- java.lang.Object
-
- model.PageCursor
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PageCursor extends Object
Details the page that's returned.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPageCursor.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LIMITstatic StringSERIALIZED_NAME_NEXT_CURSOR
-
Constructor Summary
Constructors Constructor Description PageCursor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PageCursorfromJson(String jsonString)Create an instance of PageCursor given an JSON stringLonggetLimit()The number of entries to return.StringgetNextCursor()The cursor to use for the next page of results.inthashCode()PageCursorlimit(Long limit)PageCursornextCursor(String nextCursor)voidsetLimit(Long limit)voidsetNextCursor(String nextCursor)StringtoJson()Convert an instance of PageCursor 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_LIMIT
public static final String SERIALIZED_NAME_LIMIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEXT_CURSOR
public static final String SERIALIZED_NAME_NEXT_CURSOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
limit
public PageCursor limit(Long limit)
-
setLimit
public void setLimit(Long limit)
-
nextCursor
public PageCursor nextCursor(String nextCursor)
-
getNextCursor
@Nullable public String getNextCursor()
The cursor to use for the next page of results.- Returns:
- nextCursor
-
setNextCursor
public void setNextCursor(String nextCursor)
-
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 PageCursor
-
fromJson
public static PageCursor fromJson(String jsonString) throws IOException
Create an instance of PageCursor given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PageCursor
- Throws:
IOException- if the JSON string is invalid with respect to PageCursor
-
toJson
public String toJson()
Convert an instance of PageCursor to an JSON string- Returns:
- JSON string
-
-