Class WafRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.WafRule
-
public class WafRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long[]getBlockRuleIDs()Get 黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。Long[]getObserveRuleIDs()Get 观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。StringgetSwitch()Get 托管规则开关,取值有: on:开启; off:关闭。voidsetBlockRuleIDs(Long[] BlockRuleIDs)Set 黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。voidsetObserveRuleIDs(Long[] ObserveRuleIDs)Set 观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。voidsetSwitch(String Switch)Set 托管规则开关,取值有: on:开启; off:关闭。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
-
WafRule
public WafRule()
-
WafRule
public WafRule(WafRule 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 托管规则开关,取值有:- on:开启;
- off:关闭。
- Returns:
- Switch 托管规则开关,取值有:
- on:开启;
- off:关闭。
-
setSwitch
public void setSwitch(String Switch)
Set 托管规则开关,取值有:- on:开启;
- off:关闭。
- Parameters:
Switch- 托管规则开关,取值有:- on:开启;
- off:关闭。
-
getBlockRuleIDs
public Long[] getBlockRuleIDs()
Get 黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。- Returns:
- BlockRuleIDs 黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。
-
setBlockRuleIDs
public void setBlockRuleIDs(Long[] BlockRuleIDs)
Set 黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。- Parameters:
BlockRuleIDs- 黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。
-
getObserveRuleIDs
public Long[] getObserveRuleIDs()
Get 观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。- Returns:
- ObserveRuleIDs 观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。
-
setObserveRuleIDs
public void setObserveRuleIDs(Long[] ObserveRuleIDs)
Set 观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。- Parameters:
ObserveRuleIDs- 观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。
-
-