Class AclCondition
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.AclCondition
-
public class AclCondition extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description AclCondition()AclCondition(AclCondition 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMatchContent()Get 匹配内容。StringgetMatchFrom()Get 匹配字段,取值有: host:请求域名; sip:客户端IP; ua:User-Agent; cookie:会话 Cookie; cgi:CGI 脚本; xff:XFF 扩展头部; url:请求 URL; accept:请求内容类型; method:请求方式; header:请求头部; app_proto:应用层协议; sip_proto:网络层协议; uabot:UA 特征规则,仅bot自定义规则可用; idcid:IDC 规则,仅bot自定义规则可用; sipbot:搜索引擎规则,仅bot自定义规则可用; portrait:画像分析,仅bot自定义规则可用; header_seq:请求头顺序,仅bot自定义规则可用; hdr:请求正文,仅Web防护自定义规则可用。StringgetMatchParam()Get 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。StringgetOperator()Get 匹配关系,取值有: equal:字符串等于; not_equal:数值不等于; include:字符包含; not_include:字符不包含; match:ip匹配; not_match:ip不匹配; include_area:地域包含; is_empty:存在字段但值为空; not_exists:不存在关键字段; regexp:正则匹配; len_gt:数值大于; len_lt:数值小于; len_eq:数值等于; match_prefix:前缀匹配; match_suffix:后缀匹配; wildcard:通配符。voidsetMatchContent(String MatchContent)Set 匹配内容。voidsetMatchFrom(String MatchFrom)Set 匹配字段,取值有: host:请求域名; sip:客户端IP; ua:User-Agent; cookie:会话 Cookie; cgi:CGI 脚本; xff:XFF 扩展头部; url:请求 URL; accept:请求内容类型; method:请求方式; header:请求头部; app_proto:应用层协议; sip_proto:网络层协议; uabot:UA 特征规则,仅bot自定义规则可用; idcid:IDC 规则,仅bot自定义规则可用; sipbot:搜索引擎规则,仅bot自定义规则可用; portrait:画像分析,仅bot自定义规则可用; header_seq:请求头顺序,仅bot自定义规则可用; hdr:请求正文,仅Web防护自定义规则可用。voidsetMatchParam(String MatchParam)Set 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。voidsetOperator(String Operator)Set 匹配关系,取值有: equal:字符串等于; not_equal:数值不等于; include:字符包含; not_include:字符不包含; match:ip匹配; not_match:ip不匹配; include_area:地域包含; is_empty:存在字段但值为空; not_exists:不存在关键字段; regexp:正则匹配; len_gt:数值大于; len_lt:数值小于; len_eq:数值等于; match_prefix:前缀匹配; match_suffix:后缀匹配; wildcard:通配符。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
AclCondition
public AclCondition()
-
AclCondition
public AclCondition(AclCondition 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.
-
-
Method Detail
-
getMatchFrom
public String getMatchFrom()
Get 匹配字段,取值有:- host:请求域名;
- sip:客户端IP;
- ua:User-Agent;
- cookie:会话 Cookie;
- cgi:CGI 脚本;
- xff:XFF 扩展头部;
- url:请求 URL;
- accept:请求内容类型;
- method:请求方式;
- header:请求头部;
- app_proto:应用层协议;
- sip_proto:网络层协议;
- uabot:UA 特征规则,仅bot自定义规则可用;
- idcid:IDC 规则,仅bot自定义规则可用;
- sipbot:搜索引擎规则,仅bot自定义规则可用;
- portrait:画像分析,仅bot自定义规则可用;
- header_seq:请求头顺序,仅bot自定义规则可用;
- hdr:请求正文,仅Web防护自定义规则可用。
- Returns:
- MatchFrom 匹配字段,取值有:
- host:请求域名;
- sip:客户端IP;
- ua:User-Agent;
- cookie:会话 Cookie;
- cgi:CGI 脚本;
- xff:XFF 扩展头部;
- url:请求 URL;
- accept:请求内容类型;
- method:请求方式;
- header:请求头部;
- app_proto:应用层协议;
- sip_proto:网络层协议;
- uabot:UA 特征规则,仅bot自定义规则可用;
- idcid:IDC 规则,仅bot自定义规则可用;
- sipbot:搜索引擎规则,仅bot自定义规则可用;
- portrait:画像分析,仅bot自定义规则可用;
- header_seq:请求头顺序,仅bot自定义规则可用;
- hdr:请求正文,仅Web防护自定义规则可用。
-
setMatchFrom
public void setMatchFrom(String MatchFrom)
Set 匹配字段,取值有:- host:请求域名;
- sip:客户端IP;
- ua:User-Agent;
- cookie:会话 Cookie;
- cgi:CGI 脚本;
- xff:XFF 扩展头部;
- url:请求 URL;
- accept:请求内容类型;
- method:请求方式;
- header:请求头部;
- app_proto:应用层协议;
- sip_proto:网络层协议;
- uabot:UA 特征规则,仅bot自定义规则可用;
- idcid:IDC 规则,仅bot自定义规则可用;
- sipbot:搜索引擎规则,仅bot自定义规则可用;
- portrait:画像分析,仅bot自定义规则可用;
- header_seq:请求头顺序,仅bot自定义规则可用;
- hdr:请求正文,仅Web防护自定义规则可用。
- Parameters:
MatchFrom- 匹配字段,取值有:- host:请求域名;
- sip:客户端IP;
- ua:User-Agent;
- cookie:会话 Cookie;
- cgi:CGI 脚本;
- xff:XFF 扩展头部;
- url:请求 URL;
- accept:请求内容类型;
- method:请求方式;
- header:请求头部;
- app_proto:应用层协议;
- sip_proto:网络层协议;
- uabot:UA 特征规则,仅bot自定义规则可用;
- idcid:IDC 规则,仅bot自定义规则可用;
- sipbot:搜索引擎规则,仅bot自定义规则可用;
- portrait:画像分析,仅bot自定义规则可用;
- header_seq:请求头顺序,仅bot自定义规则可用;
- hdr:请求正文,仅Web防护自定义规则可用。
-
getMatchParam
public String getMatchParam()
Get 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。- Returns:
- MatchParam 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。
-
setMatchParam
public void setMatchParam(String MatchParam)
Set 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。- Parameters:
MatchParam- 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。
-
getOperator
public String getOperator()
Get 匹配关系,取值有:- equal:字符串等于;
- not_equal:数值不等于;
- include:字符包含;
- not_include:字符不包含;
- match:ip匹配;
- not_match:ip不匹配;
- include_area:地域包含;
- is_empty:存在字段但值为空;
- not_exists:不存在关键字段;
- regexp:正则匹配;
- len_gt:数值大于;
- len_lt:数值小于;
- len_eq:数值等于;
- match_prefix:前缀匹配;
- match_suffix:后缀匹配;
- wildcard:通配符。
- Returns:
- Operator 匹配关系,取值有:
- equal:字符串等于;
- not_equal:数值不等于;
- include:字符包含;
- not_include:字符不包含;
- match:ip匹配;
- not_match:ip不匹配;
- include_area:地域包含;
- is_empty:存在字段但值为空;
- not_exists:不存在关键字段;
- regexp:正则匹配;
- len_gt:数值大于;
- len_lt:数值小于;
- len_eq:数值等于;
- match_prefix:前缀匹配;
- match_suffix:后缀匹配;
- wildcard:通配符。
-
setOperator
public void setOperator(String Operator)
Set 匹配关系,取值有:- equal:字符串等于;
- not_equal:数值不等于;
- include:字符包含;
- not_include:字符不包含;
- match:ip匹配;
- not_match:ip不匹配;
- include_area:地域包含;
- is_empty:存在字段但值为空;
- not_exists:不存在关键字段;
- regexp:正则匹配;
- len_gt:数值大于;
- len_lt:数值小于;
- len_eq:数值等于;
- match_prefix:前缀匹配;
- match_suffix:后缀匹配;
- wildcard:通配符。
- Parameters:
Operator- 匹配关系,取值有:- equal:字符串等于;
- not_equal:数值不等于;
- include:字符包含;
- not_include:字符不包含;
- match:ip匹配;
- not_match:ip不匹配;
- include_area:地域包含;
- is_empty:存在字段但值为空;
- not_exists:不存在关键字段;
- regexp:正则匹配;
- len_gt:数值大于;
- len_lt:数值小于;
- len_eq:数值等于;
- match_prefix:前缀匹配;
- match_suffix:后缀匹配;
- wildcard:通配符。
-
getMatchContent
public String getMatchContent()
Get 匹配内容。- Returns:
- MatchContent 匹配内容。
-
setMatchContent
public void setMatchContent(String MatchContent)
Set 匹配内容。- Parameters:
MatchContent- 匹配内容。
-
-