Class ScdnWafConfig
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdn.v20180606.models.ScdnWafConfig
-
public class ScdnWafConfig extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScdnErrorPagegetErrorPage()Get 重定向的错误页面 注意:此字段可能返回 null,表示取不到有效值。LonggetLevel()Get waf规则等级,可取100|200|300 注意:此字段可能返回 null,表示取不到有效值。StringgetMode()Get intercept|observe,默认intercept 注意:此字段可能返回 null,表示取不到有效值。ScdnWafRule[]getRules()Get 类型拦截规则 注意:此字段可能返回 null,表示取不到有效值。WafSubRuleStatus[]getSubRuleSwitch()Get waf子规则配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。StringgetSwitch()Get Scdn waf配置开关,取值有: on:开启 off:关闭StringgetWebShellSwitch()Get webshell拦截配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。voidsetErrorPage(ScdnErrorPage ErrorPage)Set 重定向的错误页面 注意:此字段可能返回 null,表示取不到有效值。voidsetLevel(Long Level)Set waf规则等级,可取100|200|300 注意:此字段可能返回 null,表示取不到有效值。voidsetMode(String Mode)Set intercept|observe,默认intercept 注意:此字段可能返回 null,表示取不到有效值。voidsetRules(ScdnWafRule[] Rules)Set 类型拦截规则 注意:此字段可能返回 null,表示取不到有效值。voidsetSubRuleSwitch(WafSubRuleStatus[] SubRuleSwitch)Set waf子规则配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。voidsetSwitch(String Switch)Set Scdn waf配置开关,取值有: on:开启 off:关闭voidsetWebShellSwitch(String WebShellSwitch)Set webshell拦截配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ScdnWafConfig
public ScdnWafConfig()
-
ScdnWafConfig
public 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.
-
-
Method Detail
-
getSwitch
public String getSwitch()
Get Scdn waf配置开关,取值有: on:开启 off:关闭- Returns:
- Switch Scdn waf配置开关,取值有: on:开启 off:关闭
-
setSwitch
public void setSwitch(String Switch)
Set Scdn waf配置开关,取值有: on:开启 off:关闭- Parameters:
Switch- Scdn waf配置开关,取值有: on:开启 off:关闭
-
getMode
public String getMode()
Get intercept|observe,默认intercept 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Mode intercept|observe,默认intercept 注意:此字段可能返回 null,表示取不到有效值。
-
setMode
public void setMode(String Mode)
Set intercept|observe,默认intercept 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Mode- intercept|observe,默认intercept 注意:此字段可能返回 null,表示取不到有效值。
-
getErrorPage
public ScdnErrorPage getErrorPage()
Get 重定向的错误页面 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- ErrorPage 重定向的错误页面 注意:此字段可能返回 null,表示取不到有效值。
-
setErrorPage
public void setErrorPage(ScdnErrorPage ErrorPage)
Set 重定向的错误页面 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
ErrorPage- 重定向的错误页面 注意:此字段可能返回 null,表示取不到有效值。
-
getWebShellSwitch
public String getWebShellSwitch()
Get webshell拦截配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- WebShellSwitch webshell拦截配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
-
setWebShellSwitch
public void setWebShellSwitch(String WebShellSwitch)
Set webshell拦截配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
WebShellSwitch- webshell拦截配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
-
getRules
public ScdnWafRule[] getRules()
Get 类型拦截规则 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Rules 类型拦截规则 注意:此字段可能返回 null,表示取不到有效值。
-
setRules
public void setRules(ScdnWafRule[] Rules)
Set 类型拦截规则 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Rules- 类型拦截规则 注意:此字段可能返回 null,表示取不到有效值。
-
getLevel
public Long getLevel()
Get waf规则等级,可取100|200|300 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Level waf规则等级,可取100|200|300 注意:此字段可能返回 null,表示取不到有效值。
-
setLevel
public void setLevel(Long Level)
Set waf规则等级,可取100|200|300 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Level- waf规则等级,可取100|200|300 注意:此字段可能返回 null,表示取不到有效值。
-
getSubRuleSwitch
public WafSubRuleStatus[] getSubRuleSwitch()
Get waf子规则配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- SubRuleSwitch waf子规则配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
-
setSubRuleSwitch
public void setSubRuleSwitch(WafSubRuleStatus[] SubRuleSwitch)
Set waf子规则配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
SubRuleSwitch- waf子规则配置开关,取值有: on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
-
-