
com.tencentcloudapi.teo.v20220901.models.ExceptUserRuleCondition Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.teo.v20220901.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ExceptUserRuleCondition extends AbstractModel{
/**
* 匹配项,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
sip_proto:网络层协议。
*/
@SerializedName("MatchFrom")
@Expose
private String MatchFrom;
/**
* 匹配项的参数。仅当 MatchFrom 为 header 时,可以使用本参数,值可填入 header 的 key 作为参数。
*/
@SerializedName("MatchParam")
@Expose
private String MatchParam;
/**
* 匹配操作符,取值有:
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:通配符。
*/
@SerializedName("Operator")
@Expose
private String Operator;
/**
* 匹配值。
*/
@SerializedName("MatchContent")
@Expose
private String MatchContent;
/**
* Get 匹配项,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
sip_proto:网络层协议。
* @return MatchFrom 匹配项,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
sip_proto:网络层协议。
*/
public String getMatchFrom() {
return this.MatchFrom;
}
/**
* Set 匹配项,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
sip_proto:网络层协议。
* @param MatchFrom 匹配项,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
sip_proto:网络层协议。
*/
public void setMatchFrom(String MatchFrom) {
this.MatchFrom = MatchFrom;
}
/**
* Get 匹配项的参数。仅当 MatchFrom 为 header 时,可以使用本参数,值可填入 header 的 key 作为参数。
* @return MatchParam 匹配项的参数。仅当 MatchFrom 为 header 时,可以使用本参数,值可填入 header 的 key 作为参数。
*/
public String getMatchParam() {
return this.MatchParam;
}
/**
* Set 匹配项的参数。仅当 MatchFrom 为 header 时,可以使用本参数,值可填入 header 的 key 作为参数。
* @param MatchParam 匹配项的参数。仅当 MatchFrom 为 header 时,可以使用本参数,值可填入 header 的 key 作为参数。
*/
public void setMatchParam(String MatchParam) {
this.MatchParam = MatchParam;
}
/**
* 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:通配符。
* @return 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:通配符。
*/
public String getOperator() {
return this.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:通配符。
* @param 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:通配符。
*/
public void setOperator(String Operator) {
this.Operator = Operator;
}
/**
* Get 匹配值。
* @return MatchContent 匹配值。
*/
public String getMatchContent() {
return this.MatchContent;
}
/**
* Set 匹配值。
* @param MatchContent 匹配值。
*/
public void setMatchContent(String MatchContent) {
this.MatchContent = MatchContent;
}
public ExceptUserRuleCondition() {
}
/**
* 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.
*/
public ExceptUserRuleCondition(ExceptUserRuleCondition source) {
if (source.MatchFrom != null) {
this.MatchFrom = new String(source.MatchFrom);
}
if (source.MatchParam != null) {
this.MatchParam = new String(source.MatchParam);
}
if (source.Operator != null) {
this.Operator = new String(source.Operator);
}
if (source.MatchContent != null) {
this.MatchContent = new String(source.MatchContent);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "MatchFrom", this.MatchFrom);
this.setParamSimple(map, prefix + "MatchParam", this.MatchParam);
this.setParamSimple(map, prefix + "Operator", this.Operator);
this.setParamSimple(map, prefix + "MatchContent", this.MatchContent);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy