toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case IngestionStatus.initialized:
      return 'INITIALIZED';
    case IngestionStatus.queued:
      return 'QUEUED';
    case IngestionStatus.running:
      return 'RUNNING';
    case IngestionStatus.failed:
      return 'FAILED';
    case IngestionStatus.completed:
      return 'COMPLETED';
    case IngestionStatus.cancelled:
      return 'CANCELLED';
  }
}