toValue method
Implementation
String toValue() {
switch (this) {
case AutomationExecutionStatus.pending:
return 'Pending';
case AutomationExecutionStatus.inProgress:
return 'InProgress';
case AutomationExecutionStatus.waiting:
return 'Waiting';
case AutomationExecutionStatus.success:
return 'Success';
case AutomationExecutionStatus.timedOut:
return 'TimedOut';
case AutomationExecutionStatus.cancelling:
return 'Cancelling';
case AutomationExecutionStatus.cancelled:
return 'Cancelled';
case AutomationExecutionStatus.failed:
return 'Failed';
case AutomationExecutionStatus.pendingApproval:
return 'PendingApproval';
case AutomationExecutionStatus.approved:
return 'Approved';
case AutomationExecutionStatus.rejected:
return 'Rejected';
case AutomationExecutionStatus.scheduled:
return 'Scheduled';
case AutomationExecutionStatus.runbookInProgress:
return 'RunbookInProgress';
case AutomationExecutionStatus.pendingChangeCalendarOverride:
return 'PendingChangeCalendarOverride';
case AutomationExecutionStatus.changeCalendarOverrideApproved:
return 'ChangeCalendarOverrideApproved';
case AutomationExecutionStatus.changeCalendarOverrideRejected:
return 'ChangeCalendarOverrideRejected';
case AutomationExecutionStatus.completedWithSuccess:
return 'CompletedWithSuccess';
case AutomationExecutionStatus.completedWithFailure:
return 'CompletedWithFailure';
}
}