Class KeyDestructionOrderView
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyDestructionOrderView
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyDestructionOrderView
extends Object
A scheduled, executed, cancelled or failed destruction of a key or of one of its material versions: what the approval of a destruction request scheduled and how it ended.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumREQUEST when the request named the period; TENANT_POLICY or DEPLOYMENT_POLICY when it came from that lifecycle policy's default; DEFAULT for the platform's 30 days.static classstatic enumKEY destroys every material the key had left and retires its Key ID for good; MATERIAL destroys one material version of a key that keeps another.static enumSCHEDULED waits for its cooling-off period to end; EXECUTED destroyed the versions; CANCELLED was ended by a cancel, which restored the versions; FAILED destroyed nothing, because the versions were no longer the approved ones or could not be erased, and is never retried. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVersionsItem(Integer versionsItem) approvedAt(OffsetDateTime approvedAt) cancelledAt(OffsetDateTime cancelledAt) coolingOffDays(Integer coolingOffDays) coolingOffSource(KeyDestructionOrderView.CoolingOffSourceEnum coolingOffSource) eligibleFrom(OffsetDateTime eligibleFrom) booleanexecutedAt(OffsetDateTime executedAt) failedAt(OffsetDateTime failedAt) failureReason(String failureReason) static KeyDestructionOrderViewCreate an instance of KeyDestructionOrderView given an JSON stringWhen the request was approved.When a cancel ended the order; absent unless CANCELLED.Days between the approval and the destruction (7 to 365).REQUEST when the request named the period; TENANT_POLICY or DEPLOYMENT_POLICY when it came from that lifecycle policy's default; DEFAULT for the platform's 30 days.The wire value ofcoolingOffSource: what the server sent, verbatim.When the destruction runs, or ran: the approval plus the cooling-off period.When the versions were destroyed; absent unless EXECUTED.When the order ended without destroying anything; absent unless FAILED.Why the order failed; absent unless FAILED.getId()The destruction order.The quorum request whose approval scheduled the order.getScope()KEY destroys every material the key had left and retires its Key ID for good; MATERIAL destroys one material version of a key that keeps another.The wire value ofscope: what the server sent, verbatim.SCHEDULED waits for its cooling-off period to end; EXECUTED destroyed the versions; CANCELLED was ended by a cancel, which restored the versions; FAILED destroyed nothing, because the versions were no longer the approved ones or could not be erased, and is never retried.The wire value ofstatus: what the server sent, verbatim.On a CANCELLED version order, the destruction order of the whole key that absorbed it when the key's destruction was approved; absent otherwise.The material versions the order destroys, ascending.inthashCode()quorumRequestId(UUID quorumRequestId) voidsetApprovedAt(OffsetDateTime approvedAt) voidsetCancelledAt(OffsetDateTime cancelledAt) voidsetCoolingOffDays(Integer coolingOffDays) voidsetCoolingOffSource(KeyDestructionOrderView.CoolingOffSourceEnum coolingOffSource) voidsetEligibleFrom(OffsetDateTime eligibleFrom) voidsetExecutedAt(OffsetDateTime executedAt) voidsetFailedAt(OffsetDateTime failedAt) voidsetFailureReason(String failureReason) voidvoidsetQuorumRequestId(UUID quorumRequestId) voidvoidvoidsetSupersededBy(UUID supersededBy) voidsetVersions(List<Integer> versions) supersededBy(UUID supersededBy) toJson()Convert an instance of KeyDestructionOrderView 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_APPROVED_AT
- See Also:
-
SERIALIZED_NAME_CANCELLED_AT
- See Also:
-
SERIALIZED_NAME_COOLING_OFF_DAYS
- See Also:
-
SERIALIZED_NAME_COOLING_OFF_SOURCE
- See Also:
-
SERIALIZED_NAME_ELIGIBLE_FROM
- See Also:
-
SERIALIZED_NAME_EXECUTED_AT
- See Also:
-
SERIALIZED_NAME_FAILED_AT
- See Also:
-
SERIALIZED_NAME_FAILURE_REASON
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_QUORUM_REQUEST_ID
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SUPERSEDED_BY
- See Also:
-
SERIALIZED_NAME_VERSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyDestructionOrderView
public KeyDestructionOrderView()
-
-
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
-
getStatusAsString
The wire value ofstatus: 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
getStatus()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
-
approvedAt
-
getApprovedAt
When the request was approved.- Returns:
- approvedAt
-
setApprovedAt
-
cancelledAt
-
getCancelledAt
When a cancel ended the order; absent unless CANCELLED.- Returns:
- cancelledAt
-
setCancelledAt
-
coolingOffDays
-
getCoolingOffDays
Days between the approval and the destruction (7 to 365).- Returns:
- coolingOffDays
-
setCoolingOffDays
-
coolingOffSource
public KeyDestructionOrderView coolingOffSource(@Nonnull KeyDestructionOrderView.CoolingOffSourceEnum coolingOffSource) -
getCoolingOffSource
REQUEST when the request named the period; TENANT_POLICY or DEPLOYMENT_POLICY when it came from that lifecycle policy's default; DEFAULT for the platform's 30 days.- Returns:
- coolingOffSource
-
setCoolingOffSource
public void setCoolingOffSource(@Nonnull KeyDestructionOrderView.CoolingOffSourceEnum coolingOffSource) -
eligibleFrom
-
getEligibleFrom
When the destruction runs, or ran: the approval plus the cooling-off period.- Returns:
- eligibleFrom
-
setEligibleFrom
-
executedAt
-
getExecutedAt
When the versions were destroyed; absent unless EXECUTED.- Returns:
- executedAt
-
setExecutedAt
-
failedAt
-
getFailedAt
When the order ended without destroying anything; absent unless FAILED.- Returns:
- failedAt
-
setFailedAt
-
failureReason
-
getFailureReason
Why the order failed; absent unless FAILED.- Returns:
- failureReason
-
setFailureReason
-
id
-
getId
The destruction order.- Returns:
- id
-
setId
-
quorumRequestId
-
getQuorumRequestId
The quorum request whose approval scheduled the order.- Returns:
- quorumRequestId
-
setQuorumRequestId
-
scope
-
getScope
KEY destroys every material the key had left and retires its Key ID for good; MATERIAL destroys one material version of a key that keeps another.- Returns:
- scope
-
setScope
-
status
-
getStatus
SCHEDULED waits for its cooling-off period to end; EXECUTED destroyed the versions; CANCELLED was ended by a cancel, which restored the versions; FAILED destroyed nothing, because the versions were no longer the approved ones or could not be erased, and is never retried.- Returns:
- status
-
setStatus
-
supersededBy
-
getSupersededBy
On a CANCELLED version order, the destruction order of the whole key that absorbed it when the key's destruction was approved; absent otherwise.- Returns:
- supersededBy
-
setSupersededBy
-
versions
-
addVersionsItem
-
getVersions
The material versions the order 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 KeyDestructionOrderView
-
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 KeyDestructionOrderView
-
fromJson
Create an instance of KeyDestructionOrderView given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyDestructionOrderView
- Throws:
IOException- if the JSON string is invalid with respect to KeyDestructionOrderView
-
toJson
Convert an instance of KeyDestructionOrderView to an JSON string- Returns:
- JSON string
-