toJobFlowExecutionState method
Implementation
JobFlowExecutionState toJobFlowExecutionState() {
switch (this) {
case 'STARTING':
return JobFlowExecutionState.starting;
case 'BOOTSTRAPPING':
return JobFlowExecutionState.bootstrapping;
case 'RUNNING':
return JobFlowExecutionState.running;
case 'WAITING':
return JobFlowExecutionState.waiting;
case 'SHUTTING_DOWN':
return JobFlowExecutionState.shuttingDown;
case 'TERMINATED':
return JobFlowExecutionState.terminated;
case 'COMPLETED':
return JobFlowExecutionState.completed;
case 'FAILED':
return JobFlowExecutionState.failed;
}
throw Exception('$this is not known in enum JobFlowExecutionState');
}