Class CapabilityGrantEffectiveRestrictions
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.CapabilityGrantEffectiveRestrictions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CapabilityGrantEffectiveRestrictions
extends Object
The Constraint Policy version that governed a Capability Grant at the instant asked about, with its limits and schedule. Every version member is null when no version was pinned to the grant at that instant: the grant was then unlimited. The schedule time zone is the platform setting's current value.
-
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 Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddScheduleWeekdaysItem(Integer scheduleWeekdaysItem) assignedAt(OffsetDateTime assignedAt) assignmentId(UUID assignmentId) at(OffsetDateTime at) constraintPolicyId(UUID constraintPolicyId) constraintPolicyVersion(Integer constraintPolicyVersion) constraintPolicyVersionId(UUID constraintPolicyVersionId) booleanCreate an instance of CapabilityGrantEffectiveRestrictions given an JSON stringWhen that assignment took effect; null when no version was pinned.The assignment in force at that instant; null when no version was pinned.getAt()The instant asked about.The Constraint Policy of the version in force; null when none.The number of the version in force; null when none.The Constraint Policy version in force; null when none.The Capability Grant.Total invocation ceiling of the grant; null = unlimited.Ceiling per minute; 0 = fully blocked, null = no rate limit.When true, the grant 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; 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.inthashCode()rateLimitPerMinute(Integer rateLimitPerMinute) revokeOnUse(Boolean revokeOnUse) scheduleEnd(String scheduleEnd) scheduleStart(String scheduleStart) scheduleTimeZone(String scheduleTimeZone) scheduleWeekdays(List<Integer> scheduleWeekdays) voidsetAssignedAt(OffsetDateTime assignedAt) voidsetAssignmentId(UUID assignmentId) voidsetAt(OffsetDateTime at) voidsetConstraintPolicyId(UUID constraintPolicyId) voidsetConstraintPolicyVersion(Integer constraintPolicyVersion) voidsetConstraintPolicyVersionId(UUID constraintPolicyVersionId) voidsetGrantId(UUID grantId) voidsetMaxUsage(Long maxUsage) 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) toJson()Convert an instance of CapabilityGrantEffectiveRestrictions 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_ASSIGNED_AT
- See Also:
-
SERIALIZED_NAME_ASSIGNMENT_ID
- See Also:
-
SERIALIZED_NAME_AT
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_ID
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_VERSION
- See Also:
-
SERIALIZED_NAME_CONSTRAINT_POLICY_VERSION_ID
- See Also:
-
SERIALIZED_NAME_GRANT_ID
- See Also:
-
SERIALIZED_NAME_MAX_USAGE
- 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CapabilityGrantEffectiveRestrictions
public CapabilityGrantEffectiveRestrictions()
-
-
Method Details
-
assignedAt
-
getAssignedAt
When that assignment took effect; null when no version was pinned.- Returns:
- assignedAt
-
setAssignedAt
-
assignmentId
-
getAssignmentId
The assignment in force at that instant; null when no version was pinned.- Returns:
- assignmentId
-
setAssignmentId
-
at
-
getAt
The instant asked about.- Returns:
- at
-
setAt
-
constraintPolicyId
-
getConstraintPolicyId
The Constraint Policy of the version in force; null when none.- Returns:
- constraintPolicyId
-
setConstraintPolicyId
-
constraintPolicyVersion
public CapabilityGrantEffectiveRestrictions constraintPolicyVersion(@Nullable Integer constraintPolicyVersion) -
getConstraintPolicyVersion
The number of the version in force; null when none.- Returns:
- constraintPolicyVersion
-
setConstraintPolicyVersion
-
constraintPolicyVersionId
public CapabilityGrantEffectiveRestrictions constraintPolicyVersionId(@Nullable UUID constraintPolicyVersionId) -
getConstraintPolicyVersionId
The Constraint Policy version in force; null when none.- Returns:
- constraintPolicyVersionId
-
setConstraintPolicyVersionId
-
grantId
-
getGrantId
The Capability Grant.- Returns:
- grantId
-
setGrantId
-
maxUsage
-
getMaxUsage
Total invocation ceiling of the grant; null = unlimited.- Returns:
- maxUsage
-
setMaxUsage
-
rateLimitPerMinute
public CapabilityGrantEffectiveRestrictions rateLimitPerMinute(@Nullable Integer rateLimitPerMinute) -
getRateLimitPerMinute
Ceiling per minute; 0 = fully blocked, null = no rate limit.- Returns:
- rateLimitPerMinute
-
setRateLimitPerMinute
-
revokeOnUse
-
getRevokeOnUse
When true, the grant 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; 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
public CapabilityGrantEffectiveRestrictions scheduleWeekdays(@Nullable List<Integer> 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
-
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 CapabilityGrantEffectiveRestrictions
-
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 CapabilityGrantEffectiveRestrictions
-
fromJson
Create an instance of CapabilityGrantEffectiveRestrictions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapabilityGrantEffectiveRestrictions
- Throws:
IOException- if the JSON string is invalid with respect to CapabilityGrantEffectiveRestrictions
-
toJson
Convert an instance of CapabilityGrantEffectiveRestrictions to an JSON string- Returns:
- JSON string
-