Class MaterialVersionResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.MaterialVersionResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class MaterialVersionResponse
extends Object
MaterialVersionResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumWhat a destruction request for this version requests: MATERIAL destroys this version alone; KEY, when the key has no other version outside a destruction, destroys the whole key and retires its Key ID, and needs admin.keys.mark-for-destruction and an ARCHIVED key.static enumPer-material lifecycle status. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivatedAt(OffsetDateTime activatedAt) destructionEligibleFrom(OffsetDateTime destructionEligibleFrom) destructionRequestScope(MaterialVersionResponse.DestructionRequestScopeEnum destructionRequestScope) booleanexpiresAt(OffsetDateTime expiresAt) static MaterialVersionResponseCreate an instance of MaterialVersionResponse given an JSON stringTimestamp when the material was activated as PRIMARY.Algorithm of this material version.While the version waits for destruction: when the platform destroys it, the approval of its destruction request plus the cooling-off period.What a destruction request for this version requests: MATERIAL destroys this version alone; KEY, when the key has no other version outside a destruction, destroys the whole key and retires its Key ID, and needs admin.keys.mark-for-destruction and an ARCHIVED key.The wire value ofdestructionRequestScope: what the server sent, verbatim.Hard expiration timestamp; the material denies new operations past this point.SIMPLE or COMPOSITE.Timestamp when the material entered RETIRED.Typed revocation cause when this material has been revoked.The wire value ofrevocationCause: what the server sent, verbatim.Operator narrative attached to the per-material revocation.Why this version was created by a rotation: MANUAL when an operator or integration requested the rotation, TIME_BASED when the platform rotated the key because its rotation interval elapsed.The wire value ofrotationCause: what the server sent, verbatim.Per-material lifecycle status.The wire value ofstatus: what the server sent, verbatim.Total number of crypto operations executed against this material.Monotonically-increasing material version under the alias.inthashCode()retiredAt(OffsetDateTime retiredAt) revocationCause(KeyLifecycleCause revocationCause) revocationReason(String revocationReason) rotationCause(RotationCause rotationCause) voidsetActivatedAt(OffsetDateTime activatedAt) voidsetAlgorithm(String algorithm) voidsetDestructionEligibleFrom(OffsetDateTime destructionEligibleFrom) voidsetDestructionRequestScope(MaterialVersionResponse.DestructionRequestScopeEnum destructionRequestScope) voidsetExpiresAt(OffsetDateTime expiresAt) voidsetKeyType(String keyType) voidsetRetiredAt(OffsetDateTime retiredAt) voidsetRevocationCause(KeyLifecycleCause revocationCause) voidsetRevocationReason(String revocationReason) voidsetRotationCause(RotationCause rotationCause) voidvoidsetUsageCount(Integer usageCount) voidsetVersion(Integer version) toJson()Convert an instance of MaterialVersionResponse to an JSON stringtoString()usageCount(Integer usageCount) 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_ACTIVATED_AT
- See Also:
-
SERIALIZED_NAME_ALGORITHM
- See Also:
-
SERIALIZED_NAME_DESTRUCTION_ELIGIBLE_FROM
- See Also:
-
SERIALIZED_NAME_DESTRUCTION_REQUEST_SCOPE
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_KEY_TYPE
- See Also:
-
SERIALIZED_NAME_RETIRED_AT
- See Also:
-
SERIALIZED_NAME_REVOCATION_CAUSE
- See Also:
-
SERIALIZED_NAME_REVOCATION_REASON
- See Also:
-
SERIALIZED_NAME_ROTATION_CAUSE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_USAGE_COUNT
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MaterialVersionResponse
public MaterialVersionResponse()
-
-
Method Details
-
getDestructionRequestScopeAsString
The wire value ofdestructionRequestScope: 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
getDestructionRequestScope()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
-
getRevocationCauseAsString
The wire value ofrevocationCause: 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
getRevocationCause()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
-
getRotationCauseAsString
The wire value ofrotationCause: 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
getRotationCause()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
-
activatedAt
-
getActivatedAt
Timestamp when the material was activated as PRIMARY.- Returns:
- activatedAt
-
setActivatedAt
-
algorithm
-
getAlgorithm
Algorithm of this material version.- Returns:
- algorithm
-
setAlgorithm
-
destructionEligibleFrom
public MaterialVersionResponse destructionEligibleFrom(@Nullable OffsetDateTime destructionEligibleFrom) -
getDestructionEligibleFrom
While the version waits for destruction: when the platform destroys it, the approval of its destruction request plus the cooling-off period.- Returns:
- destructionEligibleFrom
-
setDestructionEligibleFrom
-
destructionRequestScope
public MaterialVersionResponse destructionRequestScope(@Nullable MaterialVersionResponse.DestructionRequestScopeEnum destructionRequestScope) -
getDestructionRequestScope
What a destruction request for this version requests: MATERIAL destroys this version alone; KEY, when the key has no other version outside a destruction, destroys the whole key and retires its Key ID, and needs admin.keys.mark-for-destruction and an ARCHIVED key. Present only on a RETIRED, REVOKED or PENDING_PRIMARY version of a lineage read.- Returns:
- destructionRequestScope
-
setDestructionRequestScope
public void setDestructionRequestScope(@Nullable MaterialVersionResponse.DestructionRequestScopeEnum destructionRequestScope) -
expiresAt
-
getExpiresAt
Hard expiration timestamp; the material denies new operations past this point.- Returns:
- expiresAt
-
setExpiresAt
-
keyType
-
getKeyType
SIMPLE or COMPOSITE.- Returns:
- keyType
-
setKeyType
-
retiredAt
-
getRetiredAt
Timestamp when the material entered RETIRED.- Returns:
- retiredAt
-
setRetiredAt
-
revocationCause
-
getRevocationCause
Typed revocation cause when this material has been revoked.- Returns:
- revocationCause
-
setRevocationCause
-
revocationReason
-
getRevocationReason
Operator narrative attached to the per-material revocation.- Returns:
- revocationReason
-
setRevocationReason
-
rotationCause
-
getRotationCause
Why this version was created by a rotation: MANUAL when an operator or integration requested the rotation, TIME_BASED when the platform rotated the key because its rotation interval elapsed. Absent when no cause is recorded for the version: the key's first version, which no rotation created, or a version created before the platform recorded rotation causes. Set once, when the version is created, and never changed by a later transition of the version.- Returns:
- rotationCause
-
setRotationCause
-
status
-
getStatus
Per-material lifecycle status.- Returns:
- status
-
setStatus
-
usageCount
-
getUsageCount
Total number of crypto operations executed against this material.- Returns:
- usageCount
-
setUsageCount
-
version
-
getVersion
Monotonically-increasing material version under the alias.- Returns:
- version
-
setVersion
-
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 MaterialVersionResponse
-
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 MaterialVersionResponse
-
fromJson
Create an instance of MaterialVersionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MaterialVersionResponse
- Throws:
IOException- if the JSON string is invalid with respect to MaterialVersionResponse
-
toJson
Convert an instance of MaterialVersionResponse to an JSON string- Returns:
- JSON string
-