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 Blocklist
|
Long[] |
getObserveRuleIDs()
Get Observe mode
Note: This field may return `null`, indicating that no valid value can be obtained.
|
String |
getSwitch()
Get Whether the WAF rule is enabled or disabled
|
void |
setBlockRuleIDs(Long[] BlockRuleIDs)
Set Blocklist
|
void |
setObserveRuleIDs(Long[] ObserveRuleIDs)
Set Observe mode
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setSwitch(String Switch)
Set Whether the WAF rule is enabled or disabled
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public WafRule()
public WafRule(WafRule source)
public Long[] getBlockRuleIDs()
public void setBlockRuleIDs(Long[] BlockRuleIDs)
BlockRuleIDs
- Blocklistpublic String getSwitch()
public void setSwitch(String Switch)
Switch
- Whether the WAF rule is enabled or disabledpublic Long[] getObserveRuleIDs()
public void setObserveRuleIDs(Long[] ObserveRuleIDs)
ObserveRuleIDs
- Observe mode
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2024. All rights reserved.