public class ScdnWafConfig extends AbstractModel
Constructor and Description |
---|
ScdnWafConfig() |
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.
|
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.
|
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 |
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 |
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, toJsonString
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.Copyright © 2021. All rights reserved.