public class WafRule extends AbstractModel
| 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 managed rules in the Block mode. 
 | 
Long[] | 
getObserveRuleIDs()
Get IDs of the managed rules in the Observe mode. 
 | 
String | 
getSwitch()
Get Whether to enable managed rules. 
 | 
void | 
setBlockRuleIDs(Long[] BlockRuleIDs)
Set IDs of the managed rules in the Block mode. 
 | 
void | 
setObserveRuleIDs(Long[] ObserveRuleIDs)
Set IDs of the managed rules in the 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, 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 managed rules in the Block mode. You can obtain more details from [DescribeSecurityGroupManagedRules](https://tcloud4api.woa.com/document/product/1657/80807?!preview&!document=1).public Long[] getObserveRuleIDs()
public void setObserveRuleIDs(Long[] ObserveRuleIDs)
ObserveRuleIDs - IDs of the managed rules in the Observe mode. You can obtain more details from [DescribeSecurityGroupManagedRules](https://tcloud4api.woa.com/document/product/1657/80807?!preview&!document=1).Copyright © 2023. All rights reserved.