public class ScdnWafConfig extends AbstractModel
header, skipSign| 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 Whether to enable WAF sub-rules. 
 | 
String | 
getSwitch()
Get Whether to enable SCDN WAF configuration. 
 | 
String | 
getWebShellSwitch()
Get Whether to enable webshell 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 Whether to enable WAF sub-rules. 
 | 
void | 
setSwitch(String Switch)
Set Whether to enable SCDN WAF configuration. 
 | 
void | 
setWebShellSwitch(String WebShellSwitch)
Set Whether to enable webshell blocking. 
 | 
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 ScdnWafConfig()
public ScdnWafConfig(ScdnWafConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable SCDN WAF configuration. Values:
`on`: Enable
`off`: Disablepublic 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 webshell blocking. Values:
`on`: Enable
`off`: Disable
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 value can be obtained.public WafSubRuleStatus[] getSubRuleSwitch()
public void setSubRuleSwitch(WafSubRuleStatus[] SubRuleSwitch)
SubRuleSwitch - Whether to enable WAF sub-rules. Values:
`on`: Enable
`off`: Disable
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.