toSecurityServiceType method

SecurityServiceType toSecurityServiceType()

Implementation

SecurityServiceType toSecurityServiceType() {
  switch (this) {
    case 'WAF':
      return SecurityServiceType.waf;
    case 'WAFV2':
      return SecurityServiceType.wafv2;
    case 'SHIELD_ADVANCED':
      return SecurityServiceType.shieldAdvanced;
    case 'SECURITY_GROUPS_COMMON':
      return SecurityServiceType.securityGroupsCommon;
    case 'SECURITY_GROUPS_CONTENT_AUDIT':
      return SecurityServiceType.securityGroupsContentAudit;
    case 'SECURITY_GROUPS_USAGE_AUDIT':
      return SecurityServiceType.securityGroupsUsageAudit;
    case 'NETWORK_FIREWALL':
      return SecurityServiceType.networkFirewall;
  }
  throw Exception('$this is not known in enum SecurityServiceType');
}