Class RotationSchedulePolicyVersions
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.RotationSchedulePolicyVersions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class RotationSchedulePolicyVersions
extends Object
Semantic version of each policy the key's schedule is composed from. Each increases by one when that policy's content changes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeployment(Long deployment) booleanCreate an instance of RotationSchedulePolicyVersions given an JSON stringVersion of the deployment rotation schedule policy.getKey()Version of the key's own schedule.Version of the tenant rotation schedule policy.inthashCode()voidsetDeployment(Long deployment) voidvoidtoJson()Convert an instance of RotationSchedulePolicyVersions 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_DEPLOYMENT
- See Also:
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_TENANT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RotationSchedulePolicyVersions
public RotationSchedulePolicyVersions()
-
-
Method Details
-
deployment
-
getDeployment
Version of the deployment rotation schedule policy.- Returns:
- deployment
-
setDeployment
-
key
-
getKey
Version of the key's own schedule. Null when the key has none (automatic rotation never enabled for it).- Returns:
- key
-
setKey
-
tenant
-
getTenant
Version of the tenant rotation schedule policy. Null when the tenant has no policy row of its own.- Returns:
- tenant
-
setTenant
-
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 RotationSchedulePolicyVersions
-
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 RotationSchedulePolicyVersions
-
fromJson
Create an instance of RotationSchedulePolicyVersions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RotationSchedulePolicyVersions
- Throws:
IOException- if the JSON string is invalid with respect to RotationSchedulePolicyVersions
-
toJson
Convert an instance of RotationSchedulePolicyVersions to an JSON string- Returns:
- JSON string
-