toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ThreatIntelSetFormat.txt:
      return 'TXT';
    case ThreatIntelSetFormat.stix:
      return 'STIX';
    case ThreatIntelSetFormat.otxCsv:
      return 'OTX_CSV';
    case ThreatIntelSetFormat.alienVault:
      return 'ALIEN_VAULT';
    case ThreatIntelSetFormat.proofPoint:
      return 'PROOF_POINT';
    case ThreatIntelSetFormat.fireEye:
      return 'FIRE_EYE';
  }
}