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

  • Constructor Details

    • RotationSchedulePolicyVersions

      public RotationSchedulePolicyVersions()
  • Method Details

    • deployment

      public RotationSchedulePolicyVersions deployment(@Nonnull Long deployment)
    • getDeployment

      @Nonnull public Long getDeployment()
      Version of the deployment rotation schedule policy.
      Returns:
      deployment
    • setDeployment

      public void setDeployment(@Nonnull Long deployment)
    • key

      public RotationSchedulePolicyVersions key(@Nullable Long key)
    • getKey

      @Nullable public Long getKey()
      Version of the key's own schedule. Null when the key has none (automatic rotation never enabled for it).
      Returns:
      key
    • setKey

      public void setKey(@Nullable Long key)
    • tenant

      public RotationSchedulePolicyVersions tenant(@Nullable Long tenant)
    • getTenant

      @Nullable public Long getTenant()
      Version of the tenant rotation schedule policy. Null when the tenant has no policy row of its own.
      Returns:
      tenant
    • setTenant

      public void setTenant(@Nullable Long tenant)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • 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 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 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 RotationSchedulePolicyVersions
    • fromJson

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

      public String toJson()
      Convert an instance of RotationSchedulePolicyVersions to an JSON string
      Returns:
      JSON string