Class IpTableRule
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.IpTableRule
-
public class IpTableRule extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()Get 动作,取值有: drop:拦截; trans:放行; monitor:观察。StringgetMatchContent()Get 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。StringgetMatchFrom()Get 根据类型匹配,取值有: ip:对ip进行匹配; area:对ip所属地区匹配。StringgetOperator()Get 规则的匹配方式,默认为空代表等于。 取值有: is_emty:配置为空; not_exists:配置为不存在; include:包含; not_include:不包含; equal:等于; not_equal:不等于。 注意:此字段可能返回 null,表示取不到有效值。LonggetRuleID()Get 规则id。仅出参使用。StringgetRuleName()Get 规则名。 注意:此字段可能返回 null,表示取不到有效值。StringgetStatus()Get 规则启用状态,当返回为null时,为启用。取值有: on:启用; off:未启用。 注意:此字段可能返回 null,表示取不到有效值。StringgetUpdateTime()Get 更新时间。仅出参使用。voidsetAction(String Action)Set 动作,取值有: drop:拦截; trans:放行; monitor:观察。voidsetMatchContent(String MatchContent)Set 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。voidsetMatchFrom(String MatchFrom)Set 根据类型匹配,取值有: ip:对ip进行匹配; area:对ip所属地区匹配。voidsetOperator(String Operator)Set 规则的匹配方式,默认为空代表等于。 取值有: is_emty:配置为空; not_exists:配置为不存在; include:包含; not_include:不包含; equal:等于; not_equal:不等于。 注意:此字段可能返回 null,表示取不到有效值。voidsetRuleID(Long RuleID)Set 规则id。仅出参使用。voidsetRuleName(String RuleName)Set 规则名。 注意:此字段可能返回 null,表示取不到有效值。voidsetStatus(String Status)Set 规则启用状态,当返回为null时,为启用。取值有: on:启用; off:未启用。 注意:此字段可能返回 null,表示取不到有效值。voidsetUpdateTime(String UpdateTime)Set 更新时间。仅出参使用。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
-
IpTableRule
public IpTableRule()
-
IpTableRule
public 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.
-
-
Method Detail
-
getAction
public String getAction()
Get 动作,取值有:- drop:拦截;
- trans:放行;
- monitor:观察。
- Returns:
- Action 动作,取值有:
- drop:拦截;
- trans:放行;
- monitor:观察。
-
setAction
public void setAction(String Action)
Set 动作,取值有:- drop:拦截;
- trans:放行;
- monitor:观察。
- Parameters:
Action- 动作,取值有:- drop:拦截;
- trans:放行;
- monitor:观察。
-
getMatchFrom
public String getMatchFrom()
Get 根据类型匹配,取值有:- ip:对ip进行匹配;
- area:对ip所属地区匹配。
- Returns:
- MatchFrom 根据类型匹配,取值有:
- ip:对ip进行匹配;
- area:对ip所属地区匹配。
-
setMatchFrom
public void setMatchFrom(String MatchFrom)
Set 根据类型匹配,取值有:- ip:对ip进行匹配;
- area:对ip所属地区匹配。
- Parameters:
MatchFrom- 根据类型匹配,取值有:- ip:对ip进行匹配;
- area:对ip所属地区匹配。
-
getOperator
public String getOperator()
Get 规则的匹配方式,默认为空代表等于。 取值有:- is_emty:配置为空;
- not_exists:配置为不存在;
- include:包含;
- not_include:不包含;
- equal:等于;
- not_equal:不等于。
注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Operator 规则的匹配方式,默认为空代表等于。
取值有:
- is_emty:配置为空;
- not_exists:配置为不存在;
- include:包含;
- not_include:不包含;
- equal:等于;
- not_equal:不等于。
注意:此字段可能返回 null,表示取不到有效值。
-
setOperator
public void setOperator(String Operator)
Set 规则的匹配方式,默认为空代表等于。 取值有:- is_emty:配置为空;
- not_exists:配置为不存在;
- include:包含;
- not_include:不包含;
- equal:等于;
- not_equal:不等于。
注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Operator- 规则的匹配方式,默认为空代表等于。 取值有:- is_emty:配置为空;
- not_exists:配置为不存在;
- include:包含;
- not_include:不包含;
- equal:等于;
- not_equal:不等于。
注意:此字段可能返回 null,表示取不到有效值。
-
getRuleID
public Long getRuleID()
Get 规则id。仅出参使用。- Returns:
- RuleID 规则id。仅出参使用。
-
setRuleID
public void setRuleID(Long RuleID)
Set 规则id。仅出参使用。- Parameters:
RuleID- 规则id。仅出参使用。
-
getUpdateTime
public String getUpdateTime()
Get 更新时间。仅出参使用。- Returns:
- UpdateTime 更新时间。仅出参使用。
-
setUpdateTime
public void setUpdateTime(String UpdateTime)
Set 更新时间。仅出参使用。- Parameters:
UpdateTime- 更新时间。仅出参使用。
-
getStatus
public String getStatus()
Get 规则启用状态,当返回为null时,为启用。取值有:- on:启用;
- off:未启用。
注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Status 规则启用状态,当返回为null时,为启用。取值有:
- on:启用;
- off:未启用。
注意:此字段可能返回 null,表示取不到有效值。
-
setStatus
public void setStatus(String Status)
Set 规则启用状态,当返回为null时,为启用。取值有:- on:启用;
- off:未启用。
注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Status- 规则启用状态,当返回为null时,为启用。取值有:- on:启用;
- off:未启用。
注意:此字段可能返回 null,表示取不到有效值。
-
getRuleName
public String getRuleName()
Get 规则名。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- RuleName 规则名。 注意:此字段可能返回 null,表示取不到有效值。
-
setRuleName
public void setRuleName(String RuleName)
Set 规则名。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
RuleName- 规则名。 注意:此字段可能返回 null,表示取不到有效值。
-
getMatchContent
public String getMatchContent()
Get 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。- Returns:
- MatchContent 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。
-
setMatchContent
public void setMatchContent(String MatchContent)
Set 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。- Parameters:
MatchContent- 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。
-
-