toStackSetOperationStatus method

StackSetOperationStatus toStackSetOperationStatus()

Implementation

StackSetOperationStatus toStackSetOperationStatus() {
  switch (this) {
    case 'RUNNING':
      return StackSetOperationStatus.running;
    case 'SUCCEEDED':
      return StackSetOperationStatus.succeeded;
    case 'FAILED':
      return StackSetOperationStatus.failed;
    case 'STOPPING':
      return StackSetOperationStatus.stopping;
    case 'STOPPED':
      return StackSetOperationStatus.stopped;
    case 'QUEUED':
      return StackSetOperationStatus.queued;
  }
  throw Exception('$this is not known in enum StackSetOperationStatus');
}