Class TimeBasedTrigger
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.RotationTrigger
co.ankatech.keymanagement.client.keymanagement.model.TimeBasedTrigger
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class TimeBasedTrigger
extends RotationTrigger
The key is due for rotation when the interval has elapsed since the activation of its primary material.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class co.ankatech.keymanagement.client.keymanagement.model.RotationTrigger
SERIALIZED_NAME_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TimeBasedTriggerCreate an instance of TimeBasedTrigger given an JSON stringISO-8601 duration (ISO 8601-1:2019 §5.5.2) of years, months and days with an optional time part of hours and minutes, for example P90D, P1Y6M, PT2M or P1DT12H: no seconds, fractions, weeks or sign, and at least one non-zero component.inthashCode()voidsetInterval(String interval) toJson()Convert an instance of TimeBasedTrigger 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.Methods inherited from class co.ankatech.keymanagement.client.keymanagement.model.RotationTrigger
getType, setType, type
-
Field Details
-
SERIALIZED_NAME_INTERVAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TimeBasedTrigger
public TimeBasedTrigger()
-
-
Method Details
-
interval
-
getInterval
ISO-8601 duration (ISO 8601-1:2019 §5.5.2) of years, months and days with an optional time part of hours and minutes, for example P90D, P1Y6M, PT2M or P1DT12H: no seconds, fractions, weeks or sign, and at least one non-zero component. Months and years are calendar months and years in UTC, added before the time part. A write is refused below the deployment's shortest interval (P1D unless the deployment lowers it; the refusal's extensions.floor states it); an interval may carry hours or minutes. A stored interval is always read back as stored.- Returns:
- interval
-
setInterval
-
equals
- Overrides:
equalsin classRotationTrigger
-
hashCode
public int hashCode()- Overrides:
hashCodein classRotationTrigger
-
toString
- Overrides:
toStringin classRotationTrigger
-
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 TimeBasedTrigger
-
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 TimeBasedTrigger
-
fromJson
Create an instance of TimeBasedTrigger given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TimeBasedTrigger
- Throws:
IOException- if the JSON string is invalid with respect to TimeBasedTrigger
-
toJson
Convert an instance of TimeBasedTrigger to an JSON string- Overrides:
toJsonin classRotationTrigger- Returns:
- JSON string
-