Class QuorumDecision
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.QuorumDecision
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class QuorumDecision
extends Object
One approver's decision on a quorum request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumAPPROVE counts toward the quorum; one REJECT ends the request. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecidedAt(OffsetDateTime decidedAt) decision(QuorumDecision.DecisionEnum decision) booleanstatic QuorumDecisionCreate an instance of QuorumDecision given an JSON stringThe approver.When the approver decided.APPROVE counts toward the quorum; one REJECT ends the request.The wire value ofdecision: what the server sent, verbatim.inthashCode()voidsetApprover(String approver) voidsetDecidedAt(OffsetDateTime decidedAt) voidsetDecision(QuorumDecision.DecisionEnum decision) toJson()Convert an instance of QuorumDecision 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_APPROVER
- See Also:
-
SERIALIZED_NAME_DECIDED_AT
- See Also:
-
SERIALIZED_NAME_DECISION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuorumDecision
public QuorumDecision()
-
-
Method Details
-
getDecisionAsString
The wire value ofdecision: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getDecision()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
approver
-
getApprover
The approver.- Returns:
- approver
-
setApprover
-
decidedAt
-
getDecidedAt
When the approver decided.- Returns:
- decidedAt
-
setDecidedAt
-
decision
-
getDecision
APPROVE counts toward the quorum; one REJECT ends the request.- Returns:
- decision
-
setDecision
-
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 QuorumDecision
-
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 QuorumDecision
-
fromJson
Create an instance of QuorumDecision given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuorumDecision
- Throws:
IOException- if the JSON string is invalid with respect to QuorumDecision
-
toJson
Convert an instance of QuorumDecision to an JSON string- Returns:
- JSON string
-