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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChangesItem(ConstraintPolicyVersionFieldChange changesItem) baseVersion(Integer baseVersion) changes(List<ConstraintPolicyVersionFieldChange> changes) booleanCreate an instance of ConstraintPolicyVersionComparison given an JSON stringVersion number compared from.The fields whose value differs, in the order maxUsage, validFrom, validUntil, rateLimitPerMinute, revokeOnUse, scheduleWeekdays, scheduleStart, scheduleEnd.The policy both versions belong to.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.Version number compared to.inthashCode()scheduleTimeZone(String scheduleTimeZone) voidsetBaseVersion(Integer baseVersion) voidsetChanges(List<ConstraintPolicyVersionFieldChange> changes) voidsetPolicyId(UUID policyId) voidsetScheduleTimeZone(String scheduleTimeZone) voidsetTargetVersion(Integer targetVersion) targetVersion(Integer targetVersion) toJson()Convert an instance of ConstraintPolicyVersionComparison 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.
-
Field Details
-
SERIALIZED_NAME_BASE_VERSION
- See Also:
-
SERIALIZED_NAME_CHANGES
- See Also:
-
SERIALIZED_NAME_POLICY_ID
- See Also:
-
SERIALIZED_NAME_SCHEDULE_TIME_ZONE
- See Also:
-
SERIALIZED_NAME_TARGET_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ConstraintPolicyVersionComparison
public ConstraintPolicyVersionComparison()
-
-
Method Details
-
baseVersion
-
getBaseVersion
Version number compared from.- Returns:
- baseVersion
-
setBaseVersion
-
changes
public ConstraintPolicyVersionComparison changes(@Nonnull List<ConstraintPolicyVersionFieldChange> changes) -
addChangesItem
public ConstraintPolicyVersionComparison addChangesItem(ConstraintPolicyVersionFieldChange changesItem) -
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
-
policyId
-
getPolicyId
The policy both versions belong to.- Returns:
- policyId
-
setPolicyId
-
scheduleTimeZone
-
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
-
targetVersion
-
getTargetVersion
Version number compared to.- Returns:
- targetVersion
-
setTargetVersion
-
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 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 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 ConstraintPolicyVersionComparison
-
fromJson
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
Convert an instance of ConstraintPolicyVersionComparison to an JSON string- Returns:
- JSON string
-