public class RateLimitUserRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
RateLimitUserRule()  | 
RateLimitUserRule(RateLimitUserRule 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 | 
|---|---|
String | 
getAction()
Get Action: `monitor` (Observe), `drop` (Block) 
 | 
ACLCondition[] | 
getConditions()
Get Rule 
 | 
String[] | 
getFreqFields()
Get Word filter
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
Long | 
getPeriod()
Get Data collection time 
 | 
Long | 
getPunishTime()
Get Time it takes to perform the action 
 | 
String | 
getPunishTimeUnit()
Get Time unit: second 
 | 
Long | 
getRuleID()
Get ID of the rule
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
String | 
getRuleName()
Get Name of the rule 
 | 
Long | 
getRulePriority()
Get Priority of the rule 
 | 
String | 
getRuleStatus()
Get Status of the rule 
 | 
Long | 
getThreshold()
Get Rate threshold 
 | 
String | 
getUpdateTime()
Get Update time
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setAction(String Action)
Set Action: `monitor` (Observe), `drop` (Block) 
 | 
void | 
setConditions(ACLCondition[] Conditions)
Set Rule 
 | 
void | 
setFreqFields(String[] FreqFields)
Set Word filter
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setPeriod(Long Period)
Set Data collection time 
 | 
void | 
setPunishTime(Long PunishTime)
Set Time it takes to perform the action 
 | 
void | 
setPunishTimeUnit(String PunishTimeUnit)
Set Time unit: second 
 | 
void | 
setRuleID(Long RuleID)
Set ID of the rule
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setRuleName(String RuleName)
Set Name of the rule 
 | 
void | 
setRulePriority(Long RulePriority)
Set Priority of the rule 
 | 
void | 
setRuleStatus(String RuleStatus)
Set Status of the rule 
 | 
void | 
setThreshold(Long Threshold)
Set Rate threshold 
 | 
void | 
setUpdateTime(String UpdateTime)
Set Update time
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
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 RateLimitUserRule()
public RateLimitUserRule(RateLimitUserRule source)
public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold - Rate thresholdpublic Long getPeriod()
public void setPeriod(Long Period)
Period - Data collection timepublic String getRuleName()
public void setRuleName(String RuleName)
RuleName - Name of the rulepublic String getAction()
public void setAction(String Action)
Action - Action: `monitor` (Observe), `drop` (Block)public Long getPunishTime()
public void setPunishTime(Long PunishTime)
PunishTime - Time it takes to perform the actionpublic String getPunishTimeUnit()
public void setPunishTimeUnit(String PunishTimeUnit)
PunishTimeUnit - Time unit: secondpublic String getRuleStatus()
public void setRuleStatus(String RuleStatus)
RuleStatus - Status of the rulepublic ACLCondition[] getConditions()
public void setConditions(ACLCondition[] Conditions)
Conditions - Rulepublic Long getRulePriority()
public void setRulePriority(Long RulePriority)
RulePriority - Priority of the rulepublic Long getRuleID()
public void setRuleID(Long RuleID)
RuleID - ID of the rule
Note: This field may return `null`, indicating that no valid value can be obtained.public String[] getFreqFields()
public void setFreqFields(String[] FreqFields)
FreqFields - Word filter
Note: This field may return `null`, indicating that no valid value can be obtained.public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime - Update time
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.