toStackSetOperationResultStatus method

StackSetOperationResultStatus toStackSetOperationResultStatus()

Implementation

StackSetOperationResultStatus toStackSetOperationResultStatus() {
  switch (this) {
    case 'PENDING':
      return StackSetOperationResultStatus.pending;
    case 'RUNNING':
      return StackSetOperationResultStatus.running;
    case 'SUCCEEDED':
      return StackSetOperationResultStatus.succeeded;
    case 'FAILED':
      return StackSetOperationResultStatus.failed;
    case 'CANCELLED':
      return StackSetOperationResultStatus.cancelled;
  }
  throw Exception('$this is not known in enum StackSetOperationResultStatus');
}