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.
  • Field Details

  • Constructor Details

    • TimeBasedTrigger

      public TimeBasedTrigger()
  • Method Details

    • interval

      public TimeBasedTrigger interval(@Nonnull String interval)
    • getInterval

      @Nonnull public String 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

      public void setInterval(@Nonnull String interval)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class RotationTrigger
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class RotationTrigger
    • toString

      public String toString()
      Overrides:
      toString in class RotationTrigger
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 of validateJsonElement(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

      public static TimeBasedTrigger fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of TimeBasedTrigger to an JSON string
      Overrides:
      toJson in class RotationTrigger
      Returns:
      JSON string