toHyperParameterTuningJobStatus method

HyperParameterTuningJobStatus toHyperParameterTuningJobStatus()

Implementation

HyperParameterTuningJobStatus toHyperParameterTuningJobStatus() {
  switch (this) {
    case 'Completed':
      return HyperParameterTuningJobStatus.completed;
    case 'InProgress':
      return HyperParameterTuningJobStatus.inProgress;
    case 'Failed':
      return HyperParameterTuningJobStatus.failed;
    case 'Stopped':
      return HyperParameterTuningJobStatus.stopped;
    case 'Stopping':
      return HyperParameterTuningJobStatus.stopping;
  }
  throw Exception('$this is not known in enum HyperParameterTuningJobStatus');
}