Class ConstraintPolicyVersionComparison

java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ConstraintPolicyVersionComparison

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ConstraintPolicyVersionComparison extends Object
The fields that differ between two versions of one Constraint Policy, each with the value in the base and in the target version.
  • Field Details

  • Constructor Details

    • ConstraintPolicyVersionComparison

      public ConstraintPolicyVersionComparison()
  • Method Details

    • baseVersion

      public ConstraintPolicyVersionComparison baseVersion(@Nonnull Integer baseVersion)
    • getBaseVersion

      @Nonnull public Integer getBaseVersion()
      Version number compared from.
      Returns:
      baseVersion
    • setBaseVersion

      public void setBaseVersion(@Nonnull Integer baseVersion)
    • changes

    • addChangesItem

    • getChanges

      @Nonnull public List<ConstraintPolicyVersionFieldChange> getChanges()
      The fields whose value differs, in the order maxUsage, validFrom, validUntil, rateLimitPerMinute, revokeOnUse, scheduleWeekdays, scheduleStart, scheduleEnd. Empty when the two versions carry the same limits and schedule.
      Returns:
      changes
    • setChanges

      public void setChanges(@Nonnull List<ConstraintPolicyVersionFieldChange> changes)
    • policyId

      public ConstraintPolicyVersionComparison policyId(@Nonnull UUID policyId)
    • getPolicyId

      @Nonnull public UUID getPolicyId()
      The policy both versions belong to.
      Returns:
      policyId
    • setPolicyId

      public void setPolicyId(@Nonnull UUID policyId)
    • scheduleTimeZone

      public ConstraintPolicyVersionComparison scheduleTimeZone(@Nonnull String scheduleTimeZone)
    • getScheduleTimeZone

      @Nonnull public String getScheduleTimeZone()
      The time zone in which the schedule fields of both versions are evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC. One platform value governs every schedule.
      Returns:
      scheduleTimeZone
    • setScheduleTimeZone

      public void setScheduleTimeZone(@Nonnull String scheduleTimeZone)
    • targetVersion

      public ConstraintPolicyVersionComparison targetVersion(@Nonnull Integer targetVersion)
    • getTargetVersion

      @Nonnull public Integer getTargetVersion()
      Version number compared to.
      Returns:
      targetVersion
    • setTargetVersion

      public void setTargetVersion(@Nonnull Integer targetVersion)
    • 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 ConstraintPolicyVersionComparison
    • 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 ConstraintPolicyVersionComparison
    • fromJson

      public static ConstraintPolicyVersionComparison fromJson(String jsonString) throws IOException
      Create an instance of ConstraintPolicyVersionComparison given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ConstraintPolicyVersionComparison
      Throws:
      IOException - if the JSON string is invalid with respect to ConstraintPolicyVersionComparison
    • toJson

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