Class QuorumDestructionRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.QuorumDestructionRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class QuorumDestructionRequest
extends Object
What a destruction request asks to destroy, and the cooling-off period its approval schedules.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumREQUEST, TENANT_POLICY, DEPLOYMENT_POLICY or DEFAULT.static classstatic enumKEY destroys every version the key has left and retires its Key ID; MATERIAL destroys one version. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVersionsItem(Integer versionsItem) coolingOffDays(Integer coolingOffDays) coolingOffSource(QuorumDestructionRequest.CoolingOffSourceEnum coolingOffSource) booleanstatic QuorumDestructionRequestCreate an instance of QuorumDestructionRequest given an JSON stringDays between the approval and the destruction (7 to 365).REQUEST, TENANT_POLICY, DEPLOYMENT_POLICY or DEFAULT.The wire value ofcoolingOffSource: what the server sent, verbatim.getScope()KEY destroys every version the key has left and retires its Key ID; MATERIAL destroys one version.The wire value ofscope: what the server sent, verbatim.The versions it destroys, ascending.inthashCode()voidsetCoolingOffDays(Integer coolingOffDays) voidsetCoolingOffSource(QuorumDestructionRequest.CoolingOffSourceEnum coolingOffSource) voidvoidsetVersions(List<Integer> versions) toJson()Convert an instance of QuorumDestructionRequest 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_COOLING_OFF_DAYS
- See Also:
-
SERIALIZED_NAME_COOLING_OFF_SOURCE
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_VERSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuorumDestructionRequest
public QuorumDestructionRequest()
-
-
Method Details
-
getCoolingOffSourceAsString
The wire value ofcoolingOffSource: 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
getCoolingOffSource()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
-
getScopeAsString
The wire value ofscope: 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
getScope()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
-
coolingOffDays
-
getCoolingOffDays
Days between the approval and the destruction (7 to 365).- Returns:
- coolingOffDays
-
setCoolingOffDays
-
coolingOffSource
public QuorumDestructionRequest coolingOffSource(@Nonnull QuorumDestructionRequest.CoolingOffSourceEnum coolingOffSource) -
getCoolingOffSource
REQUEST, TENANT_POLICY, DEPLOYMENT_POLICY or DEFAULT.- Returns:
- coolingOffSource
-
setCoolingOffSource
public void setCoolingOffSource(@Nonnull QuorumDestructionRequest.CoolingOffSourceEnum coolingOffSource) -
scope
-
getScope
KEY destroys every version the key has left and retires its Key ID; MATERIAL destroys one version.- Returns:
- scope
-
setScope
-
versions
-
addVersionsItem
-
getVersions
The versions it destroys, ascending.- Returns:
- versions
-
setVersions
-
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 QuorumDestructionRequest
-
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 QuorumDestructionRequest
-
fromJson
Create an instance of QuorumDestructionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuorumDestructionRequest
- Throws:
IOException- if the JSON string is invalid with respect to QuorumDestructionRequest
-
toJson
Convert an instance of QuorumDestructionRequest to an JSON string- Returns:
- JSON string
-