toActionOnFailure method

ActionOnFailure toActionOnFailure()

Implementation

ActionOnFailure toActionOnFailure() {
  switch (this) {
    case 'TERMINATE_JOB_FLOW':
      return ActionOnFailure.terminateJobFlow;
    case 'TERMINATE_CLUSTER':
      return ActionOnFailure.terminateCluster;
    case 'CANCEL_AND_WAIT':
      return ActionOnFailure.cancelAndWait;
    case 'CONTINUE':
      return ActionOnFailure.$continue;
  }
  throw Exception('$this is not known in enum ActionOnFailure');
}