toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DataSource.flowLogs:
      return 'FLOW_LOGS';
    case DataSource.cloudTrail:
      return 'CLOUD_TRAIL';
    case DataSource.dnsLogs:
      return 'DNS_LOGS';
    case DataSource.s3Logs:
      return 'S3_LOGS';
  }
}