public class WafRule extends AbstractModel
header, skipSign| Constructor and Description |
|---|
WafRule() |
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.
|
| Modifier and Type | Method and Description |
|---|---|
Long[] |
getBlockRuleIDs()
Get IDs of the rules to be disabled.
|
Long[] |
getObserveRuleIDs()
Get IDs of the rules to be executed in Observe mode.
|
String |
getSwitch()
Get Whether to enable managed rules.
|
void |
setBlockRuleIDs(Long[] BlockRuleIDs)
Set IDs of the rules to be disabled.
|
void |
setObserveRuleIDs(Long[] ObserveRuleIDs)
Set IDs of the rules to be executed in Observe mode.
|
void |
setSwitch(String Switch)
Set Whether to enable managed rules.
|
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 WafRule()
public WafRule(WafRule source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Whether to enable managed rules. Values:
public Long[] getBlockRuleIDs()
public void setBlockRuleIDs(Long[] BlockRuleIDs)
BlockRuleIDs - IDs of the rules to be disabled.public Long[] getObserveRuleIDs()
public void setObserveRuleIDs(Long[] ObserveRuleIDs)
ObserveRuleIDs - IDs of the rules to be executed in Observe mode.Copyright © 2025. All rights reserved.