public class AclUserRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
AclUserRule()  | 
AclUserRule(AclUserRule 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 custom rule. 
 | 
String | 
getAction()
Get The action. 
 | 
String | 
getCustomResponseId()
Get ID of custom response. 
 | 
String | 
getName()
Get Name of the custom return page. 
 | 
Long | 
getPageId()
Get (Disused) ID of the custom return page. 
 | 
Long | 
getPunishTime()
Get IP ban duration. 
 | 
String | 
getPunishTimeUnit()
Get The unit of the IP ban duration. 
 | 
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. 
 | 
Long | 
getRulePriority()
Get The rule priority. 
 | 
String | 
getRuleStatus()
Get The rule status. 
 | 
String | 
getUpdateTime()
Get The update time, which is only used as an output parameter. 
 | 
void | 
setAclConditions(AclCondition[] AclConditions)
Set The custom rule. 
 | 
void | 
setAction(String Action)
Set The action. 
 | 
void | 
setCustomResponseId(String CustomResponseId)
Set ID of custom response. 
 | 
void | 
setName(String Name)
Set Name of the custom return page. 
 | 
void | 
setPageId(Long PageId)
Set (Disused) ID of the custom return page. 
 | 
void | 
setPunishTime(Long PunishTime)
Set IP ban duration. 
 | 
void | 
setPunishTimeUnit(String PunishTimeUnit)
Set The unit of the IP ban duration. 
 | 
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. 
 | 
void | 
setRulePriority(Long RulePriority)
Set The rule priority. 
 | 
void | 
setRuleStatus(String RuleStatus)
Set The rule status. 
 | 
void | 
setUpdateTime(String UpdateTime)
Set The update time, which is only used as an output parameter. 
 | 
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 AclUserRule()
public AclUserRule(AclUserRule source)
public String getRuleName()
public void setRuleName(String RuleName)
RuleName - The rule name.public String getAction()
public void setAction(String Action)
Action - The action. Values:
public String getRuleStatus()
public void setRuleStatus(String RuleStatus)
RuleStatus - The rule status. Values:
public AclCondition[] getAclConditions()
public void setAclConditions(AclCondition[] AclConditions)
AclConditions - The custom rule.public Long getRulePriority()
public void setRulePriority(Long RulePriority)
RulePriority - The rule priority. 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 getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime - The update time, which is only used as an output parameter.public Long getPunishTime()
public void setPunishTime(Long PunishTime)
PunishTime - IP ban duration. Range: 0-2 days. It's required when `Action=ban`.public String getPunishTimeUnit()
public void setPunishTimeUnit(String PunishTimeUnit)
PunishTimeUnit - The unit of the IP ban duration. Values:
public String getName()
public void setName(String Name)
Name - Name of the custom return page. It's required when `Action=page`.public Long getPageId()
public void setPageId(Long PageId)
PageId - (Disused) ID of the custom return page. The default value is 0, which means that the system default blocking page is used.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 © 2025. All rights reserved.