Class KeyRotationScheduleRequest
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.KeyRotationScheduleRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class KeyRotationScheduleRequest
extends Object
Full replacement of the key's rotation schedule: its enablement, its optional cadence override and its usage options.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTriggersItem(TimeBasedTrigger triggersItem) autoRotationEnabled(Boolean autoRotationEnabled) booleanstatic KeyRotationScheduleRequestCreate an instance of KeyRotationScheduleRequest given an JSON stringWhether the key rotates automatically.Whether the key rotates when its usage count reaches its soft usage limit.Whether the key rotates when its usage count reaches its maximum usage limit.The key's own cadence, shorter or longer than the inherited default.The version returned by the last read of this key's schedule.inthashCode()rotateOnSoftUsageLimit(Boolean rotateOnSoftUsageLimit) rotateOnUsageExhaustion(Boolean rotateOnUsageExhaustion) voidsetAutoRotationEnabled(Boolean autoRotationEnabled) voidsetRotateOnSoftUsageLimit(Boolean rotateOnSoftUsageLimit) voidsetRotateOnUsageExhaustion(Boolean rotateOnUsageExhaustion) voidsetTriggers(List<TimeBasedTrigger> triggers) voidsetVersion(Long version) toJson()Convert an instance of KeyRotationScheduleRequest to an JSON stringtoString()triggers(List<TimeBasedTrigger> triggers) 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_AUTO_ROTATION_ENABLED
- See Also:
-
SERIALIZED_NAME_ROTATE_ON_SOFT_USAGE_LIMIT
- See Also:
-
SERIALIZED_NAME_ROTATE_ON_USAGE_EXHAUSTION
- See Also:
-
SERIALIZED_NAME_TRIGGERS
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
KeyRotationScheduleRequest
public KeyRotationScheduleRequest()
-
-
Method Details
-
autoRotationEnabled
-
getAutoRotationEnabled
Whether the key rotates automatically. Enabling it needs an interval (the key's own TIME_BASED trigger, or a tenant or deployment default) or a usage option set to true.- Returns:
- autoRotationEnabled
-
setAutoRotationEnabled
-
rotateOnSoftUsageLimit
-
getRotateOnSoftUsageLimit
Whether the key rotates when its usage count reaches its soft usage limit. Acts only while autoRotationEnabled is true. Turning it on needs a soft usage limit on the key; a stored true whose limit was removed later is kept. Absent or null is false: the PUT replaces the stored value.- Returns:
- rotateOnSoftUsageLimit
-
setRotateOnSoftUsageLimit
-
rotateOnUsageExhaustion
public KeyRotationScheduleRequest rotateOnUsageExhaustion(@Nullable Boolean rotateOnUsageExhaustion) -
getRotateOnUsageExhaustion
Whether the key rotates when its usage count reaches its maximum usage limit. Acts only while autoRotationEnabled is true. Turning it on needs a maximum usage limit on the key; a stored true whose limit was removed later is kept. Absent or null is false: the PUT replaces the stored value.- Returns:
- rotateOnUsageExhaustion
-
setRotateOnUsageExhaustion
-
triggers
-
addTriggersItem
-
getTriggers
The key's own cadence, shorter or longer than the inherited default. At most one TIME_BASED trigger. Null or absent inherits the tenant default, or the deployment default when the tenant has none; an empty array sets no cadence for the key.- Returns:
- triggers
-
setTriggers
-
version
-
getVersion
The version returned by the last read of this key's schedule. When present and no longer current the write is refused with 409 and nothing is stored; absent replaces unconditionally. minimum: 0- 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 KeyRotationScheduleRequest
-
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 KeyRotationScheduleRequest
-
fromJson
Create an instance of KeyRotationScheduleRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KeyRotationScheduleRequest
- Throws:
IOException- if the JSON string is invalid with respect to KeyRotationScheduleRequest
-
toJson
Convert an instance of KeyRotationScheduleRequest to an JSON string- Returns:
- JSON string
-