Class ScheduleResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ScheduleResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ScheduleResponse
extends Object
One durable schedule of a tenant: the obligation it carries, the resource it acts on and its status. Metadata only; no key material and no secret.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) definitionKind(String definitionKind) booleanstatic ScheduleResponseCreate an instance of ScheduleResponse given an JSON stringWhen the schedule was created (ISO 8601, UTC).How executions follow one another: ONE_SHOT (a single execution), CHAINED_ONE_SHOT (each execution plans the next one from its result) or RECURRING (a fixed cadence).What each execution asks the target domain to do.Domain that owns the obligation.The owning domain's reference of the obligation.Resource the schedule acts on.Type of the resource the schedule acts on.Schedule identifier, used to list its executions.Revision of the owning domain's intent the schedule reflects.Schedule status: ACTIVE (executions are planned), PAUSED (planning is held), CANCELLED (the obligation was withdrawn; terminal) or COMPLETED (nothing more is due; terminal).Domain each execution is delivered to.Tenant that owns the schedule; always the tenant in the request path.When the schedule last changed (ISO 8601, UTC).inthashCode()intentType(String intentType) ownerDomain(String ownerDomain) ownerReference(String ownerReference) resourceId(String resourceId) resourceType(String resourceType) scheduleId(UUID scheduleId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDefinitionKind(String definitionKind) voidsetIntentType(String intentType) voidsetOwnerDomain(String ownerDomain) voidsetOwnerReference(String ownerReference) voidsetResourceId(String resourceId) voidsetResourceType(String resourceType) voidsetScheduleId(UUID scheduleId) voidsetSourceRevision(Long sourceRevision) voidvoidsetTargetDomain(String targetDomain) voidsetTenantId(UUID tenantId) voidsetUpdatedAt(OffsetDateTime updatedAt) sourceRevision(Long sourceRevision) targetDomain(String targetDomain) toJson()Convert an instance of ScheduleResponse to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) 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_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DEFINITION_KIND
- See Also:
-
SERIALIZED_NAME_INTENT_TYPE
- See Also:
-
SERIALIZED_NAME_OWNER_DOMAIN
- See Also:
-
SERIALIZED_NAME_OWNER_REFERENCE
- See Also:
-
SERIALIZED_NAME_RESOURCE_ID
- See Also:
-
SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
-
SERIALIZED_NAME_SCHEDULE_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_REVISION
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TARGET_DOMAIN
- See Also:
-
SERIALIZED_NAME_TENANT_ID
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ScheduleResponse
public ScheduleResponse()
-
-
Method Details
-
createdAt
-
getCreatedAt
When the schedule was created (ISO 8601, UTC).- Returns:
- createdAt
-
setCreatedAt
-
definitionKind
-
getDefinitionKind
How executions follow one another: ONE_SHOT (a single execution), CHAINED_ONE_SHOT (each execution plans the next one from its result) or RECURRING (a fixed cadence).- Returns:
- definitionKind
-
setDefinitionKind
-
intentType
-
getIntentType
What each execution asks the target domain to do.- Returns:
- intentType
-
setIntentType
-
ownerDomain
-
getOwnerDomain
Domain that owns the obligation. KEY_LIFECYCLE for a key's automatic rotation.- Returns:
- ownerDomain
-
setOwnerDomain
-
ownerReference
-
getOwnerReference
The owning domain's reference of the obligation. For a key's automatic rotation, key-rotation: followed by the key's identity, the uuid the key reads answer.- Returns:
- ownerReference
-
setOwnerReference
-
resourceId
-
getResourceId
Resource the schedule acts on. For a key, its stable key identifier (kid).- Returns:
- resourceId
-
setResourceId
-
resourceType
-
getResourceType
Type of the resource the schedule acts on.- Returns:
- resourceType
-
setResourceType
-
scheduleId
-
getScheduleId
Schedule identifier, used to list its executions.- Returns:
- scheduleId
-
setScheduleId
-
sourceRevision
-
getSourceRevision
Revision of the owning domain's intent the schedule reflects. It grows each time the obligation changes (a new rotation interval, a manual rotation, a disabled schedule).- Returns:
- sourceRevision
-
setSourceRevision
-
status
-
getStatus
Schedule status: ACTIVE (executions are planned), PAUSED (planning is held), CANCELLED (the obligation was withdrawn; terminal) or COMPLETED (nothing more is due; terminal).- Returns:
- status
-
setStatus
-
targetDomain
-
getTargetDomain
Domain each execution is delivered to.- Returns:
- targetDomain
-
setTargetDomain
-
tenantId
-
getTenantId
Tenant that owns the schedule; always the tenant in the request path.- Returns:
- tenantId
-
setTenantId
-
updatedAt
-
getUpdatedAt
When the schedule last changed (ISO 8601, UTC).- Returns:
- updatedAt
-
setUpdatedAt
-
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 ScheduleResponse
-
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 ScheduleResponse
-
fromJson
Create an instance of ScheduleResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ScheduleResponse
- Throws:
IOException- if the JSON string is invalid with respect to ScheduleResponse
-
toJson
Convert an instance of ScheduleResponse to an JSON string- Returns:
- JSON string
-