toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobStatus.pending:
      return 'PENDING';
    case JobStatus.provisioning:
      return 'PROVISIONING';
    case JobStatus.running:
      return 'RUNNING';
    case JobStatus.failed:
      return 'FAILED';
    case JobStatus.succeed:
      return 'SUCCEED';
    case JobStatus.cancelling:
      return 'CANCELLING';
    case JobStatus.cancelled:
      return 'CANCELLED';
  }
}