public class WafConfig extends AbstractModel
| Constructor and Description | 
|---|
| WafConfig() | 
| WafConfig(WafConfig source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| AiRule | getAiRule()Get AI rule engine
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| String | getLevel()Get Protection level: `loose`, `normal`, `strict`, `stricter`, `custom` | 
| String | getMode()Get Mode: `block`, `observe`, `close` | 
| String | getSwitch()Get Switch | 
| WafRule | getWafRules()Get WAF rule allowlist/blocklist | 
| void | setAiRule(AiRule AiRule)Set AI rule engine
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| void | setLevel(String Level)Set Protection level: `loose`, `normal`, `strict`, `stricter`, `custom` | 
| void | setMode(String Mode)Set Mode: `block`, `observe`, `close` | 
| void | setSwitch(String Switch)Set Switch | 
| void | setWafRules(WafRule WafRules)Set WAF rule allowlist/blocklist | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic WafConfig()
public WafConfig(WafConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Switchpublic String getLevel()
public void setLevel(String Level)
Level - Protection level: `loose`, `normal`, `strict`, `stricter`, `custom`public String getMode()
public void setMode(String Mode)
Mode - Mode: `block`, `observe`, `close`public WafRule getWafRules()
public void setWafRules(WafRule WafRules)
WafRules - WAF rule allowlist/blocklistpublic AiRule getAiRule()
public void setAiRule(AiRule AiRule)
AiRule - AI rule engine
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2022. All rights reserved.