Class ConstraintPolicyVersionResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ConstraintPolicyVersionResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ConstraintPolicyVersionResponse
extends Object
One immutable version of a Constraint Policy. Creating a policy writes version 1 and every edit writes the next version; a Capability Grant enforces the limits and schedule of the version it is pinned to.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddScheduleWeekdaysItem(Integer scheduleWeekdaysItem) createdAt(OffsetDateTime createdAt) booleanCreate an instance of ConstraintPolicyVersionResponse given an JSON stringWhen the version was written.The principal that wrote the version.getId()Version identifier.How many live Capability Grants are pinned to this version now.Total invocation ceiling per grant; null = unlimited.The policy this version belongs to.Per-grant ceiling per minute; 0 = fully blocked, null = no rate limit.When true, a grant pinned to this version is consumed by its first admitted invocation.End of the daily window, HH:mm, exclusive; earlier than the start for an overnight window; null when the version has no schedule.Start of the daily window, HH:mm, inclusive, in the platform time zone; null when the version has no schedule.The time zone in which the schedule is evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC.ISO weekdays (1 = Monday .. 7 = Sunday) on which the daily window opens, ascending; null when the version has no schedule.Start of validity; null = effective immediately.End of validity; null = never expires.Version number, starting at 1.inthashCode()liveGrantCount(Long liveGrantCount) rateLimitPerMinute(Integer rateLimitPerMinute) revokeOnUse(Boolean revokeOnUse) scheduleEnd(String scheduleEnd) scheduleStart(String scheduleStart) scheduleTimeZone(String scheduleTimeZone) scheduleWeekdays(List<Integer> scheduleWeekdays) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidvoidsetLiveGrantCount(Long liveGrantCount) voidsetMaxUsage(Long maxUsage) voidsetPolicyId(UUID policyId) voidsetRateLimitPerMinute(Integer rateLimitPerMinute) voidsetRevokeOnUse(Boolean revokeOnUse) voidsetScheduleEnd(String scheduleEnd) voidsetScheduleStart(String scheduleStart) voidsetScheduleTimeZone(String scheduleTimeZone) voidsetScheduleWeekdays(List<Integer> scheduleWeekdays) voidsetValidFrom(OffsetDateTime validFrom) voidsetValidUntil(OffsetDateTime validUntil) voidsetVersion(Integer version) toJson()Convert an instance of ConstraintPolicyVersionResponse 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.validFrom(OffsetDateTime validFrom) validUntil(OffsetDateTime validUntil)
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_BY
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LIVE_GRANT_COUNT
- See Also:
-
SERIALIZED_NAME_MAX_USAGE
- See Also:
-
SERIALIZED_NAME_POLICY_ID
- See Also:
-
SERIALIZED_NAME_RATE_LIMIT_PER_MINUTE
- See Also:
-
SERIALIZED_NAME_REVOKE_ON_USE
- See Also:
-
SERIALIZED_NAME_SCHEDULE_END
- See Also:
-
SERIALIZED_NAME_SCHEDULE_START
- See Also:
-
SERIALIZED_NAME_SCHEDULE_TIME_ZONE
- See Also:
-
SERIALIZED_NAME_SCHEDULE_WEEKDAYS
- See Also:
-
SERIALIZED_NAME_VALID_FROM
- See Also:
-
SERIALIZED_NAME_VALID_UNTIL
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ConstraintPolicyVersionResponse
public ConstraintPolicyVersionResponse()
-
-
Method Details
-
createdAt
-
getCreatedAt
When the version was written.- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
The principal that wrote the version.- Returns:
- createdBy
-
setCreatedBy
-
id
-
getId
Version identifier.- Returns:
- id
-
setId
-
liveGrantCount
-
getLiveGrantCount
How many live Capability Grants are pinned to this version now.- Returns:
- liveGrantCount
-
setLiveGrantCount
-
maxUsage
-
getMaxUsage
Total invocation ceiling per grant; null = unlimited.- Returns:
- maxUsage
-
setMaxUsage
-
policyId
-
getPolicyId
The policy this version belongs to.- Returns:
- policyId
-
setPolicyId
-
rateLimitPerMinute
-
getRateLimitPerMinute
Per-grant ceiling per minute; 0 = fully blocked, null = no rate limit.- Returns:
- rateLimitPerMinute
-
setRateLimitPerMinute
-
revokeOnUse
-
getRevokeOnUse
When true, a grant pinned to this version is consumed by its first admitted invocation.- Returns:
- revokeOnUse
-
setRevokeOnUse
-
scheduleEnd
-
getScheduleEnd
End of the daily window, HH:mm, exclusive; earlier than the start for an overnight window; null when the version has no schedule.- Returns:
- scheduleEnd
-
setScheduleEnd
-
scheduleStart
-
getScheduleStart
Start of the daily window, HH:mm, inclusive, in the platform time zone; null when the version has no schedule.- Returns:
- scheduleStart
-
setScheduleStart
-
scheduleTimeZone
-
getScheduleTimeZone
The time zone in which the schedule is evaluated: the platform setting authorization.schedule.timezone, an IANA region zone or UTC. One platform value governs every schedule.- Returns:
- scheduleTimeZone
-
setScheduleTimeZone
-
scheduleWeekdays
-
addScheduleWeekdaysItem
-
getScheduleWeekdays
ISO weekdays (1 = Monday .. 7 = Sunday) on which the daily window opens, ascending; null when the version has no schedule.- Returns:
- scheduleWeekdays
-
setScheduleWeekdays
-
validFrom
-
getValidFrom
Start of validity; null = effective immediately.- Returns:
- validFrom
-
setValidFrom
-
validUntil
-
getValidUntil
End of validity; null = never expires.- Returns:
- validUntil
-
setValidUntil
-
version
-
getVersion
Version number, starting at 1.- Returns:
- version
-
setVersion
-
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 ConstraintPolicyVersionResponse
-
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 ConstraintPolicyVersionResponse
-
fromJson
Create an instance of ConstraintPolicyVersionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ConstraintPolicyVersionResponse
- Throws:
IOException- if the JSON string is invalid with respect to ConstraintPolicyVersionResponse
-
toJson
Convert an instance of ConstraintPolicyVersionResponse to an JSON string- Returns:
- JSON string
-