Class KeyLifecycleCauseVerdictsResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyLifecycleCauseVerdictsResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyLifecycleCauseVerdictsResponse
extends Object
Per-key server verdict: for each lifecycle act and each cause, which read operations stop, continue, or stop on some material versions only.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe key's projected status today.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacts(List<KeyLifecycleActVerdicts> acts) addActsItem(KeyLifecycleActVerdicts actsItem) addEvaluatedMaterialVersionsItem(Integer evaluatedMaterialVersionsItem) currentRevocationCause(KeyLifecycleCause currentRevocationCause) currentStatus(KeyLifecycleCauseVerdictsResponse.CurrentStatusEnum currentStatus) currentSuspensionCause(KeyLifecycleCause currentSuspensionCause) booleanevaluatedMaterialVersions(List<Integer> evaluatedMaterialVersions) Create an instance of KeyLifecycleCauseVerdictsResponse given an JSON stringgetActs()One entry per act and cause: SUSPEND and REVOKE once per KeyLifecycleCause value, ARCHIVE once with the retained cause, REACTIVATE once.Cause recorded on the current revocation, retained through archive; null when the key has not been revoked.The wire value ofcurrentRevocationCause: what the server sent, verbatim.The key's projected status today.The wire value ofcurrentStatus: what the server sent, verbatim.Cause recorded on the current suspension; null when the key is not suspended.The wire value ofcurrentSuspensionCause: what the server sent, verbatim.The non-destroyed material versions every cell was evaluated over, ascending.getKid()Stable KID the verdicts were computed for.Tenant whose effective lifecycle policy was composed with the rule.inthashCode()voidsetActs(List<KeyLifecycleActVerdicts> acts) voidsetCurrentRevocationCause(KeyLifecycleCause currentRevocationCause) voidvoidsetCurrentSuspensionCause(KeyLifecycleCause currentSuspensionCause) voidsetEvaluatedMaterialVersions(List<Integer> evaluatedMaterialVersions) voidvoidsetTenantId(UUID tenantId) toJson()Convert an instance of KeyLifecycleCauseVerdictsResponse 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_ACTS
- See Also:
-
SERIALIZED_NAME_CURRENT_REVOCATION_CAUSE
- See Also:
-
SERIALIZED_NAME_CURRENT_STATUS
- See Also:
-
SERIALIZED_NAME_CURRENT_SUSPENSION_CAUSE
- See Also:
-
SERIALIZED_NAME_EVALUATED_MATERIAL_VERSIONS
- See Also:
-
SERIALIZED_NAME_KID
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyLifecycleCauseVerdictsResponse
public KeyLifecycleCauseVerdictsResponse()
-
-
Method Details
-
getCurrentRevocationCauseAsString
The wire value ofcurrentRevocationCause: 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
getCurrentRevocationCause()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
-
getCurrentStatusAsString
The wire value ofcurrentStatus: 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
getCurrentStatus()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
-
getCurrentSuspensionCauseAsString
The wire value ofcurrentSuspensionCause: 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
getCurrentSuspensionCause()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
-
acts
-
addActsItem
-
getActs
One entry per act and cause: SUSPEND and REVOKE once per KeyLifecycleCause value, ARCHIVE once with the retained cause, REACTIVATE once.- Returns:
- acts
-
setActs
-
currentRevocationCause
public KeyLifecycleCauseVerdictsResponse currentRevocationCause(@Nullable KeyLifecycleCause currentRevocationCause) -
getCurrentRevocationCause
Cause recorded on the current revocation, retained through archive; null when the key has not been revoked.- Returns:
- currentRevocationCause
-
setCurrentRevocationCause
-
currentStatus
public KeyLifecycleCauseVerdictsResponse currentStatus(@Nonnull KeyLifecycleCauseVerdictsResponse.CurrentStatusEnum currentStatus) -
getCurrentStatus
The key's projected status today.- Returns:
- currentStatus
-
setCurrentStatus
public void setCurrentStatus(@Nonnull KeyLifecycleCauseVerdictsResponse.CurrentStatusEnum currentStatus) -
currentSuspensionCause
public KeyLifecycleCauseVerdictsResponse currentSuspensionCause(@Nullable KeyLifecycleCause currentSuspensionCause) -
getCurrentSuspensionCause
Cause recorded on the current suspension; null when the key is not suspended.- Returns:
- currentSuspensionCause
-
setCurrentSuspensionCause
-
evaluatedMaterialVersions
public KeyLifecycleCauseVerdictsResponse evaluatedMaterialVersions(@Nonnull List<Integer> evaluatedMaterialVersions) -
addEvaluatedMaterialVersionsItem
public KeyLifecycleCauseVerdictsResponse addEvaluatedMaterialVersionsItem(Integer evaluatedMaterialVersionsItem) -
getEvaluatedMaterialVersions
The non-destroyed material versions every cell was evaluated over, ascending.- Returns:
- evaluatedMaterialVersions
-
setEvaluatedMaterialVersions
-
kid
-
getKid
Stable KID the verdicts were computed for.- Returns:
- kid
-
setKid
-
tenantId
-
getTenantId
Tenant whose effective lifecycle policy was composed with the rule.- Returns:
- tenantId
-
setTenantId
-
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 KeyLifecycleCauseVerdictsResponse
-
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 KeyLifecycleCauseVerdictsResponse
-
fromJson
Create an instance of KeyLifecycleCauseVerdictsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyLifecycleCauseVerdictsResponse
- Throws:
IOException- if the JSON string is invalid with respect to KeyLifecycleCauseVerdictsResponse
-
toJson
Convert an instance of KeyLifecycleCauseVerdictsResponse to an JSON string- Returns:
- JSON string
-