toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobExecutionStatus.queued:
      return 'QUEUED';
    case JobExecutionStatus.inProgress:
      return 'IN_PROGRESS';
    case JobExecutionStatus.succeeded:
      return 'SUCCEEDED';
    case JobExecutionStatus.failed:
      return 'FAILED';
    case JobExecutionStatus.timedOut:
      return 'TIMED_OUT';
    case JobExecutionStatus.rejected:
      return 'REJECTED';
    case JobExecutionStatus.removed:
      return 'REMOVED';
    case JobExecutionStatus.canceled:
      return 'CANCELED';
  }
}