public class RateLimitUserRule extends AbstractModel
| 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 | 
|---|---|
AclCondition[] | 
getAclConditions()
Get The rule details. 
 | 
String | 
getAction()
Get The action. 
 | 
String[] | 
getFreqFields()
Get The filter. 
 | 
String[] | 
getFreqScope()
Get The statistical dimension. 
 | 
Long | 
getPeriod()
Get The statistical period. 
 | 
Long | 
getPunishTime()
Get The amount of time taken to perform the action. 
 | 
String | 
getPunishTimeUnit()
Get The time unit. 
 | 
Long | 
getRuleID()
Get The rule ID, which is only used as an output parameter. 
 | 
String | 
getRuleName()
Get The rule name, which consists of only letters, digits, and underscores and cannot start with an underscore. 
 | 
Long | 
getRulePriority()
Get The rule weight. 
 | 
String | 
getRuleStatus()
Get The rule status. 
 | 
Long | 
getThreshold()
Get The request threshold. 
 | 
String | 
getUpdateTime()
Get Update time
Note: This field may return null, indicating that no valid values can be obtained. 
 | 
void | 
setAclConditions(AclCondition[] AclConditions)
Set The rule details. 
 | 
void | 
setAction(String Action)
Set The action. 
 | 
void | 
setFreqFields(String[] FreqFields)
Set The filter. 
 | 
void | 
setFreqScope(String[] FreqScope)
Set The statistical dimension. 
 | 
void | 
setPeriod(Long Period)
Set The statistical period. 
 | 
void | 
setPunishTime(Long PunishTime)
Set The amount of time taken to perform the action. 
 | 
void | 
setPunishTimeUnit(String PunishTimeUnit)
Set The time unit. 
 | 
void | 
setRuleID(Long RuleID)
Set The rule ID, which is only used as an output parameter. 
 | 
void | 
setRuleName(String RuleName)
Set The rule name, which consists of only letters, digits, and underscores and cannot start with an underscore. 
 | 
void | 
setRulePriority(Long RulePriority)
Set The rule weight. 
 | 
void | 
setRuleStatus(String RuleStatus)
Set The rule status. 
 | 
void | 
setThreshold(Long Threshold)
Set The request threshold. 
 | 
void | 
setUpdateTime(String UpdateTime)
Set Update time
Note: This field may return null, indicating that no valid values can be obtained. 
 | 
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 RateLimitUserRule()
public RateLimitUserRule(RateLimitUserRule source)
public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold - The request threshold. Value range: 0-4294967294.public Long getPeriod()
public void setPeriod(Long Period)
Period - The statistical period. The value can be 10, 20, 30, 40, 50, or 60 seconds.public String getRuleName()
public void setRuleName(String RuleName)
RuleName - The rule name, which consists of only letters, digits, and underscores and cannot start with an underscore.public String getAction()
public void setAction(String Action)
Action - The action. Values:
public Long getPunishTime()
public void setPunishTime(Long PunishTime)
PunishTime - The amount of time taken to perform the action. Value range: 0 seconds - 2 days.public String getPunishTimeUnit()
public void setPunishTimeUnit(String PunishTimeUnit)
PunishTimeUnit - The time unit. Values:
public String getRuleStatus()
public void setRuleStatus(String RuleStatus)
RuleStatus - The rule status. Values:
public AclCondition[] getAclConditions()
public void setAclConditions(AclCondition[] AclConditions)
AclConditions - The rule details.public Long getRulePriority()
public void setRulePriority(Long RulePriority)
RulePriority - The rule weight. Value range: 0-100.public Long getRuleID()
public void setRuleID(Long RuleID)
RuleID - The rule ID, which is only used as an output parameter.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getFreqFields()
public void setFreqFields(String[] FreqFields)
FreqFields - The filter. Values:
public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime - Update time
Note: This field may return null, indicating that no valid values can be obtained.public String[] getFreqScope()
public void setFreqScope(String[] FreqScope)
FreqScope - The statistical dimension. Values:
Copyright © 2023. All rights reserved.