public class AccessControlRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
AccessControlRule()  | 
AccessControlRule(AccessControlRule 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 | 
getRegex()
Get on: regular match
off: exact match
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
String | 
getRuleContent()
Get Blocked content
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
String | 
getRuleHeader()
Get This parameter is required only if `RuleType` is `requestHeader`
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
String | 
getRuleType()
Get requestHeader: access control over request header
url: access control over access URL
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setRegex(String Regex)
Set on: regular match
off: exact match
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setRuleContent(String RuleContent)
Set Blocked content
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setRuleHeader(String RuleHeader)
Set This parameter is required only if `RuleType` is `requestHeader`
Note: This field may return `null`, indicating that no valid value can be obtained. 
 | 
void | 
setRuleType(String RuleType)
Set requestHeader: access control over request header
url: access control over access URL
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 AccessControlRule()
public AccessControlRule(AccessControlRule source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType - requestHeader: access control over request header
url: access control over access URL
Note: This field may return `null`, indicating that no valid value can be obtained.public String getRuleContent()
public void setRuleContent(String RuleContent)
RuleContent - Blocked content
Note: This field may return `null`, indicating that no valid value can be obtained.public String getRegex()
public void setRegex(String Regex)
Regex - on: regular match
off: exact match
Note: This field may return `null`, indicating that no valid value can be obtained.public String getRuleHeader()
public void setRuleHeader(String RuleHeader)
RuleHeader - This parameter is required only if `RuleType` is `requestHeader`
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.