public class IpTableRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| IpTableRule() | 
| IpTableRule(IpTableRule 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 | getAction()Get 动作,取值有:
 drop:拦截;
 trans:放行;
 monitor:观察。 | 
| String | getMatchContent()Get 匹配内容。支持多值输入。
当输入多个匹配值时,请使用英文逗号分隔;
当 MatchFrom 为 ua 时,不支持多值输入;
当 Operator 为 is_empty 或 not_exists 时,本字段入参值无效。 | 
| String | getMatchFrom()Get 根据类型匹配,取值有:
ip:客户端 IP 进行匹配;
area:客户端 IP 所属地区匹配;
asn:客户端所属的自治系统进行匹配;
referer:请求头 Referer 进行匹配;
ua:请求头 User-Agent 进行匹配;
url:请求 URL 进行匹配。 | 
| String | getOperator()Get 规则的匹配方式。取值有:
 match:匹配,适用于 MatchFrom 为 ip;
 not_match:不匹配,适用于 MatchFrom 为 ip;
 include_area:地域包含,适用于 MatchFrom 为 area;
 not_include_area:地域不包含,适用于 MatchFrom 为 area;
 asn_match:ASN 包含,适用于 MatchFrom 为 asn;
 asn_not_match:ASN 不包含,适用于 MatchFrom 为 asn;
 equal:等于,适用于 MatchFrom 为 ua , referer;
 not_equal:不等于,适用于 MatchFrom 为 ua , referer;
 include:通配符匹配,适用于 MatchFrom 为 ua , referer , url;
 not_include:通配符不匹配,适用于 MatchFrom 为 ua , referer;
 is_emty:配置内容为空,适用于 MatchFrom 为 ua , referer;
 not_exists:配置内容不存在,适用于 MatchFrom 为 ua , referer。 | 
| Long | getRuleID()Get 规则id。仅出参使用。 | 
| String | getRuleName()Get 规则名。 | 
| String | getStatus()Get 规则启用状态。取值有:
 on:启用;
 off:未启用。
当入参缺省时,按 on 取值。 | 
| String | getUpdateTime()Get 更新时间。仅出参使用。 | 
| void | setAction(String Action)Set 动作,取值有:
 drop:拦截;
 trans:放行;
 monitor:观察。 | 
| void | setMatchContent(String MatchContent)Set 匹配内容。支持多值输入。
当输入多个匹配值时,请使用英文逗号分隔;
当 MatchFrom 为 ua 时,不支持多值输入;
当 Operator 为 is_empty 或 not_exists 时,本字段入参值无效。 | 
| void | setMatchFrom(String MatchFrom)Set 根据类型匹配,取值有:
ip:客户端 IP 进行匹配;
area:客户端 IP 所属地区匹配;
asn:客户端所属的自治系统进行匹配;
referer:请求头 Referer 进行匹配;
ua:请求头 User-Agent 进行匹配;
url:请求 URL 进行匹配。 | 
| void | setOperator(String Operator)Set 规则的匹配方式。取值有:
 match:匹配,适用于 MatchFrom 为 ip;
 not_match:不匹配,适用于 MatchFrom 为 ip;
 include_area:地域包含,适用于 MatchFrom 为 area;
 not_include_area:地域不包含,适用于 MatchFrom 为 area;
 asn_match:ASN 包含,适用于 MatchFrom 为 asn;
 asn_not_match:ASN 不包含,适用于 MatchFrom 为 asn;
 equal:等于,适用于 MatchFrom 为 ua , referer;
 not_equal:不等于,适用于 MatchFrom 为 ua , referer;
 include:通配符匹配,适用于 MatchFrom 为 ua , referer , url;
 not_include:通配符不匹配,适用于 MatchFrom 为 ua , referer;
 is_emty:配置内容为空,适用于 MatchFrom 为 ua , referer;
 not_exists:配置内容不存在,适用于 MatchFrom 为 ua , referer。 | 
| void | setRuleID(Long RuleID)Set 规则id。仅出参使用。 | 
| void | setRuleName(String RuleName)Set 规则名。 | 
| void | setStatus(String Status)Set 规则启用状态。取值有:
 on:启用;
 off:未启用。
当入参缺省时,按 on 取值。 | 
| void | setUpdateTime(String UpdateTime)Set 更新时间。仅出参使用。 | 
| 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 IpTableRule()
public IpTableRule(IpTableRule source)
public String getAction()
public void setAction(String Action)
Action - 动作,取值有:
public String getMatchFrom()
public void setMatchFrom(String MatchFrom)
MatchFrom - 根据类型匹配,取值有:
public String getOperator()
public void setOperator(String Operator)
Operator - 规则的匹配方式。取值有:
public Long getRuleID()
public void setRuleID(Long RuleID)
RuleID - 规则id。仅出参使用。public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime - 更新时间。仅出参使用。public String getStatus()
public void setStatus(String Status)
Status - 规则启用状态。取值有:
public String getRuleName()
public void setRuleName(String RuleName)
RuleName - 规则名。public String getMatchContent()
public void setMatchContent(String MatchContent)
MatchContent - 匹配内容。支持多值输入。
Copyright © 2025. All rights reserved.