toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RequestCancelExternalWorkflowExecutionFailedCause
        .unknownExternalWorkflowExecution:
      return 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION';
    case RequestCancelExternalWorkflowExecutionFailedCause
        .requestCancelExternalWorkflowExecutionRateExceeded:
      return 'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED';
    case RequestCancelExternalWorkflowExecutionFailedCause
        .operationNotPermitted:
      return 'OPERATION_NOT_PERMITTED';
  }
}