Class KeyLifecycleOperationVerdict
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyLifecycleOperationVerdict
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyLifecycleOperationVerdict
extends Object
Whether one read operation stops, continues, or stops on some material versions only, once the act is taken.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe read leg. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStoppedMaterialVersionsItem(Integer stoppedMaterialVersionsItem) booleanstatic KeyLifecycleOperationVerdictCreate an instance of KeyLifecycleOperationVerdict given an JSON stringThe read leg.The wire value ofoperation: what the server sent, verbatim.Material versions on which the operation is refused, ascending.The verdict over the evaluated material versions.The wire value ofverdict: what the server sent, verbatim.inthashCode()voidvoidsetStoppedMaterialVersions(List<Integer> stoppedMaterialVersions) voidstoppedMaterialVersions(List<Integer> stoppedMaterialVersions) toJson()Convert an instance of KeyLifecycleOperationVerdict 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.verdict(KeyLifecycleOperationVerdictKind verdict)
-
Field Details
-
SERIALIZED_NAME_OPERATION
- See Also:
-
SERIALIZED_NAME_STOPPED_MATERIAL_VERSIONS
- See Also:
-
SERIALIZED_NAME_VERDICT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyLifecycleOperationVerdict
public KeyLifecycleOperationVerdict()
-
-
Method Details
-
getOperationAsString
The wire value ofoperation: 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
getOperation()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
-
getVerdictAsString
The wire value ofverdict: 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
getVerdict()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
-
operation
public KeyLifecycleOperationVerdict operation(@Nonnull KeyLifecycleOperationVerdict.OperationEnum operation) -
getOperation
The read leg. This projection always publishes verdicts for the four read legs — DECRYPT, VERIFY, and the REENCRYPT / RESIGN source legs — by design, never only the legs the current cause happens to narrow. The write legs (ENCRYPT, SIGN, and the REENCRYPT / RESIGN target legs) never appear: the writer refuses them off ACTIVE/PRIMARY under both shipped policy templates, and for SECURITY_COMPROMISE regardless of policy.- Returns:
- operation
-
setOperation
-
stoppedMaterialVersions
public KeyLifecycleOperationVerdict stoppedMaterialVersions(@Nonnull List<Integer> stoppedMaterialVersions) -
addStoppedMaterialVersionsItem
public KeyLifecycleOperationVerdict addStoppedMaterialVersionsItem(Integer stoppedMaterialVersionsItem) -
getStoppedMaterialVersions
Material versions on which the operation is refused, ascending. Equals evaluatedMaterialVersions under STOPS and is empty under CONTINUES.- Returns:
- stoppedMaterialVersions
-
setStoppedMaterialVersions
-
verdict
-
getVerdict
The verdict over the evaluated material versions.- Returns:
- verdict
-
setVerdict
-
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 KeyLifecycleOperationVerdict
-
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 KeyLifecycleOperationVerdict
-
fromJson
Create an instance of KeyLifecycleOperationVerdict given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyLifecycleOperationVerdict
- Throws:
IOException- if the JSON string is invalid with respect to KeyLifecycleOperationVerdict
-
toJson
Convert an instance of KeyLifecycleOperationVerdict to an JSON string- Returns:
- JSON string
-