Class ScheduleExecutionResponse
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.ScheduleExecutionResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ScheduleExecutionResponse
extends Object
One execution of a schedule: when it was due, the attempts it took and how it ended.
-
Nested Class Summary
Nested Classes -
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 Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattemptCount(Integer attemptCount) completedAt(OffsetDateTime completedAt) createdAt(OffsetDateTime createdAt) booleanexecutionId(UUID executionId) failureClass(String failureClass) static ScheduleExecutionResponseCreate an instance of ScheduleExecutionResponse given an JSON stringDelivery attempts made so far.When the execution reached a final state (ISO 8601, UTC).When the execution was created (ISO 8601, UTC).Execution identifier.Why the last attempt did not end the execution: timeout, io-error, server-error, invalid-domain-result, lease-expired, client-error, lease-insufficient, not-sent or retryable-failure.When the next attempt is due (ISO 8601, UTC).Earliest instant the execution may run (ISO 8601, UTC).Revision of the owning domain's intent the execution was planned at.When the execution became ready to run (ISO 8601, UTC).Why the execution ended as it did, in the owning domain's vocabulary (for a key rotation: rotated, auto-rotation-disabled, superseded-by-newer-revision, ...), or retry-exhausted when retries ran out.The target domain's result of a completed execution.When the execution was planned to run (ISO 8601, UTC).Schedule the execution belongs to.getState()Execution state.The execution that replaced this one.How long after notBefore the execution may still run, as an ISO 8601 duration.What started the execution: TIMER (it fell due) or MANUAL_OPERATOR (an operator ran it).inthashCode()nextAttemptAt(OffsetDateTime nextAttemptAt) notBefore(OffsetDateTime notBefore) ownerRevision(Long ownerRevision) readyAt(OffsetDateTime readyAt) reasonCode(String reasonCode) scheduledAt(OffsetDateTime scheduledAt) scheduleId(UUID scheduleId) voidsetAttemptCount(Integer attemptCount) voidsetCompletedAt(OffsetDateTime completedAt) voidsetCreatedAt(OffsetDateTime createdAt) voidsetExecutionId(UUID executionId) voidsetFailureClass(String failureClass) voidsetNextAttemptAt(OffsetDateTime nextAttemptAt) voidsetNotBefore(OffsetDateTime notBefore) voidsetOwnerRevision(Long ownerRevision) voidsetReadyAt(OffsetDateTime readyAt) voidsetReasonCode(String reasonCode) voidvoidsetScheduledAt(OffsetDateTime scheduledAt) voidsetScheduleId(UUID scheduleId) voidvoidsetSupersededBy(UUID supersededBy) voidsetToleranceWindow(String toleranceWindow) voidsetTrigger(String trigger) supersededBy(UUID supersededBy) toJson()Convert an instance of ScheduleExecutionResponse to an JSON stringtoleranceWindow(String toleranceWindow) toString()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_ATTEMPT_COUNT
- See Also:
-
SERIALIZED_NAME_COMPLETED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EXECUTION_ID
- See Also:
-
SERIALIZED_NAME_FAILURE_CLASS
- See Also:
-
SERIALIZED_NAME_NEXT_ATTEMPT_AT
- See Also:
-
SERIALIZED_NAME_NOT_BEFORE
- See Also:
-
SERIALIZED_NAME_OWNER_REVISION
- See Also:
-
SERIALIZED_NAME_READY_AT
- See Also:
-
SERIALIZED_NAME_REASON_CODE
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_SCHEDULE_ID
- See Also:
-
SERIALIZED_NAME_SCHEDULED_AT
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_SUPERSEDED_BY
- See Also:
-
SERIALIZED_NAME_TOLERANCE_WINDOW
- See Also:
-
SERIALIZED_NAME_TRIGGER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ScheduleExecutionResponse
public ScheduleExecutionResponse()
-
-
Method Details
-
attemptCount
-
getAttemptCount
Delivery attempts made so far.- Returns:
- attemptCount
-
setAttemptCount
-
completedAt
-
getCompletedAt
When the execution reached a final state (ISO 8601, UTC). Absent while it is in progress.- Returns:
- completedAt
-
setCompletedAt
-
createdAt
-
getCreatedAt
When the execution was created (ISO 8601, UTC).- Returns:
- createdAt
-
setCreatedAt
-
executionId
-
getExecutionId
Execution identifier.- Returns:
- executionId
-
setExecutionId
-
failureClass
-
getFailureClass
Why the last attempt did not end the execution: timeout, io-error, server-error, invalid-domain-result, lease-expired, client-error, lease-insufficient, not-sent or retryable-failure. Absent when no attempt failed.- Returns:
- failureClass
-
setFailureClass
-
nextAttemptAt
-
getNextAttemptAt
When the next attempt is due (ISO 8601, UTC). Present only while the execution waits to retry.- Returns:
- nextAttemptAt
-
setNextAttemptAt
-
notBefore
-
getNotBefore
Earliest instant the execution may run (ISO 8601, UTC).- Returns:
- notBefore
-
setNotBefore
-
ownerRevision
-
getOwnerRevision
Revision of the owning domain's intent the execution was planned at. Absent when the owner states none.- Returns:
- ownerRevision
-
setOwnerRevision
-
readyAt
-
getReadyAt
When the execution became ready to run (ISO 8601, UTC). Absent before then.- Returns:
- readyAt
-
setReadyAt
-
reasonCode
-
getReasonCode
Why the execution ended as it did, in the owning domain's vocabulary (for a key rotation: rotated, auto-rotation-disabled, superseded-by-newer-revision, ...), or retry-exhausted when retries ran out. Absent while the execution has not ended.- Returns:
- reasonCode
-
setReasonCode
-
result
-
getResult
The target domain's result of a completed execution. Absent while in progress and when nothing was executed.- Returns:
- result
-
setResult
-
scheduleId
-
getScheduleId
Schedule the execution belongs to.- Returns:
- scheduleId
-
setScheduleId
-
scheduledAt
-
getScheduledAt
When the execution was planned to run (ISO 8601, UTC).- Returns:
- scheduledAt
-
setScheduledAt
-
state
-
getState
Execution state. In progress: SCHEDULED, READY, DISPATCHING, RETRY_WAIT. Final: SUCCEEDED, SKIPPED, SUPERSEDED, CANCELLED, TERMINAL_FAILURE, RECONCILIATION_REQUIRED.- Returns:
- state
-
setState
-
supersededBy
-
getSupersededBy
The execution that replaced this one. Present only on a SUPERSEDED execution that has a successor.- Returns:
- supersededBy
-
setSupersededBy
-
toleranceWindow
-
getToleranceWindow
How long after notBefore the execution may still run, as an ISO 8601 duration. Absent when no window applies.- Returns:
- toleranceWindow
-
setToleranceWindow
-
trigger
-
getTrigger
What started the execution: TIMER (it fell due) or MANUAL_OPERATOR (an operator ran it).- Returns:
- trigger
-
setTrigger
-
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 ScheduleExecutionResponse
-
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 ScheduleExecutionResponse
-
fromJson
Create an instance of ScheduleExecutionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ScheduleExecutionResponse
- Throws:
IOException- if the JSON string is invalid with respect to ScheduleExecutionResponse
-
toJson
Convert an instance of ScheduleExecutionResponse to an JSON string- Returns:
- JSON string
-