public class WafConfig extends AbstractModel
header, skipSign| 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 The setting of the AI rule engine.
|
String |
getLevel()
Get The protection level.
|
String |
getMode()
Get The WAF global mode.
|
String |
getSwitch()
Get Whether to enable WAF configuration.
|
WafRule |
getWafRule()
Get The settings of the managed rule.
|
void |
setAiRule(AiRule AiRule)
Set The setting of the AI rule engine.
|
void |
setLevel(String Level)
Set The protection level.
|
void |
setMode(String Mode)
Set The WAF global mode.
|
void |
setSwitch(String Switch)
Set Whether to enable WAF configuration.
|
void |
setWafRule(WafRule WafRule)
Set The settings of the managed rule.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic WafConfig()
public WafConfig(WafConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable WAF configuration. Values:
public String getLevel()
public void setLevel(String Level)
Level - The protection level. Values:
public String getMode()
public void setMode(String Mode)
Mode - The WAF global mode. Values:
public WafRule getWafRule()
public void setWafRule(WafRule WafRule)
WafRule - The settings of the managed rule. If it is null, the settings that were last configured will be used.public AiRule getAiRule()
public void setAiRule(AiRule AiRule)
AiRule - The setting of the AI rule engine. If it is null, the setting that was last configured will be used.Copyright © 2025. All rights reserved.