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 |
---|---|
AclCondition[] |
getAclConditions()
Get The rule details.
|
String |
getAction()
Get Action.
|
String |
getCustomResponseId()
Get ID of custom response.
|
String[] |
getFreqFields()
Get The filter.
|
String[] |
getFreqScope()
Get Query scope.
|
String |
getName()
Get Name of the custom return page.
|
Long |
getPeriod()
Get The statistical period.
|
Long |
getPunishTime()
Get The amount of time taken to perform the action.
|
String |
getPunishTimeUnit()
Get The time unit.
|
String |
getRedirectUrl()
Get The redirection URL.
|
Long |
getResponseCode()
Get The response code to trigger the return page.
|
Long |
getRuleID()
Get 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.
|
void |
setAclConditions(AclCondition[] AclConditions)
Set The rule details.
|
void |
setAction(String Action)
Set Action.
|
void |
setCustomResponseId(String CustomResponseId)
Set ID of custom response.
|
void |
setFreqFields(String[] FreqFields)
Set The filter.
|
void |
setFreqScope(String[] FreqScope)
Set Query scope.
|
void |
setName(String Name)
Set Name of the custom return page.
|
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 |
setRedirectUrl(String RedirectUrl)
Set The redirection URL.
|
void |
setResponseCode(Long ResponseCode)
Set The response code to trigger the return page.
|
void |
setRuleID(Long RuleID)
Set 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.
|
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 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
- 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
- Rule ID, which is only used as an output parameter.public String[] getFreqFields()
public void setFreqFields(String[] FreqFields)
FreqFields
- The filter. Values:
public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Update time. It is only used as a response parameter, and defaults to the current time.public String[] getFreqScope()
public void setFreqScope(String[] FreqScope)
FreqScope
- Query scope. Values:
public String getName()
public void setName(String Name)
Name
- Name of the custom return page. It's required when `Action=page`.public String getCustomResponseId()
public void setCustomResponseId(String CustomResponseId)
CustomResponseId
- ID of custom response. The ID can be obtained via the `DescribeCustomErrorPages` API. It's required when `Action=page`.public Long getResponseCode()
public void setResponseCode(Long ResponseCode)
ResponseCode
- The response code to trigger the return page. It's required when `Action=page`. Value: 100-600. 3xx response codes are not supported. Default value: 567.public String getRedirectUrl()
public void setRedirectUrl(String RedirectUrl)
RedirectUrl
- The redirection URL. It's required when `Action=redirect`.Copyright © 2024. All rights reserved.