public class ScdnWafConfig extends AbstractModel
| Constructor and Description | 
|---|
| ScdnWafConfig() | 
| ScdnWafConfig(ScdnWafConfig 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 | 
|---|---|
| ScdnErrorPage | getErrorPage()Get Redirection error page
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| Long | getLevel()Get WAF rule level. | 
| String | getMode()Get WAF protection mode. | 
| ScdnWafRule[] | getRules()Get Attack blocking rules
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| WafSubRuleStatus[] | getSubRuleSwitch()Get WAF sub-rule switch
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getSwitch()Get Whether to enable WAF. | 
| String | getWebShellSwitch()Get Whether to enable Web shell blocking. | 
| void | setErrorPage(ScdnErrorPage ErrorPage)Set Redirection error page
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setLevel(Long Level)Set WAF rule level. | 
| void | setMode(String Mode)Set WAF protection mode. | 
| void | setRules(ScdnWafRule[] Rules)Set Attack blocking rules
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setSubRuleSwitch(WafSubRuleStatus[] SubRuleSwitch)Set WAF sub-rule switch
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setSwitch(String Switch)Set Whether to enable WAF. | 
| void | setWebShellSwitch(String WebShellSwitch)Set Whether to enable Web shell blocking. | 
| 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 ScdnWafConfig()
public ScdnWafConfig(ScdnWafConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable WAF. Valid values: `on` and `off`.public String getMode()
public void setMode(String Mode)
Mode - WAF protection mode. Valid values: `intercept` and `observe`. Default value: `intercept`.
Note: this field may return `null`, indicating that no valid values can be obtained.public ScdnErrorPage getErrorPage()
public void setErrorPage(ScdnErrorPage ErrorPage)
ErrorPage - Redirection error page
Note: this field may return `null`, indicating that no valid values can be obtained.public String getWebShellSwitch()
public void setWebShellSwitch(String WebShellSwitch)
WebShellSwitch - Whether to enable Web shell blocking. Valid values: `on` and `off`. Default value: `off`.
Note: this field may return `null`, indicating that no valid values can be obtained.public ScdnWafRule[] getRules()
public void setRules(ScdnWafRule[] Rules)
Rules - Attack blocking rules
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getLevel()
public void setLevel(Long Level)
Level - WAF rule level. Valid values: 100, 200, and 300.
Note: this field may return `null`, indicating that no valid values can be obtained.public WafSubRuleStatus[] getSubRuleSwitch()
public void setSubRuleSwitch(WafSubRuleStatus[] SubRuleSwitch)
SubRuleSwitch - WAF sub-rule switch
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.