Class QuorumRequestPageResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.QuorumRequestPageResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class QuorumRequestPageResponse
extends Object
One page of quorum requests, newest first.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemsItem(QuorumRequestResponse itemsItem) booleanstatic QuorumRequestPageResponseCreate an instance of QuorumRequestPageResponse given an JSON stringgetItems()The requests of the page.getPage()The page index, from 0.getSize()The page size.The requests matching the filter.The pages.inthashCode()items(List<QuorumRequestResponse> items) voidsetItems(List<QuorumRequestResponse> items) voidvoidvoidsetTotalElements(Long totalElements) voidsetTotalPages(Integer totalPages) toJson()Convert an instance of QuorumRequestPageResponse to an JSON stringtoString()totalElements(Long totalElements) totalPages(Integer totalPages) 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_ITEMS
- See Also:
-
SERIALIZED_NAME_PAGE
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_TOTAL_ELEMENTS
- See Also:
-
SERIALIZED_NAME_TOTAL_PAGES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuorumRequestPageResponse
public QuorumRequestPageResponse()
-
-
Method Details
-
items
-
addItemsItem
-
getItems
The requests of the page.- Returns:
- items
-
setItems
-
page
-
getPage
The page index, from 0.- Returns:
- page
-
setPage
-
size
-
getSize
The page size.- Returns:
- size
-
setSize
-
totalElements
-
getTotalElements
The requests matching the filter.- Returns:
- totalElements
-
setTotalElements
-
totalPages
-
getTotalPages
The pages.- Returns:
- totalPages
-
setTotalPages
-
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 QuorumRequestPageResponse
-
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 QuorumRequestPageResponse
-
fromJson
Create an instance of QuorumRequestPageResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuorumRequestPageResponse
- Throws:
IOException- if the JSON string is invalid with respect to QuorumRequestPageResponse
-
toJson
Convert an instance of QuorumRequestPageResponse to an JSON string- Returns:
- JSON string
-