
com.tencentcloudapi.teo.v20220901.models.SecRuleRelatedInfo 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 SecRuleRelatedInfo extends AbstractModel{
/**
* 规则ID列表(99999为无效id)。
*/
@SerializedName("RuleId")
@Expose
private Long RuleId;
/**
* 执行动作(处置方式),取值有:
trans :通过 ;
alg :算法挑战 ;
drop :丢弃 ;
ban :封禁源ip ;
redirect :重定向 ;
page :返回指定页面 ;
monitor :观察 。
*/
@SerializedName("Action")
@Expose
private String Action;
/**
* 风险等级(waf日志中独有),取值有:
high risk :高危 ;
middle risk :中危 ;
low risk :低危 ;
unkonw :未知 。
*/
@SerializedName("RiskLevel")
@Expose
private String RiskLevel;
/**
* 规则等级,取值有:
normal :正常 。
*/
@SerializedName("RuleLevel")
@Expose
private String RuleLevel;
/**
* 规则描述。
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 规则类型名称。
*/
@SerializedName("RuleTypeName")
@Expose
private String RuleTypeName;
/**
* Get 规则ID列表(99999为无效id)。
* @return RuleId 规则ID列表(99999为无效id)。
*/
public Long getRuleId() {
return this.RuleId;
}
/**
* Set 规则ID列表(99999为无效id)。
* @param RuleId 规则ID列表(99999为无效id)。
*/
public void setRuleId(Long RuleId) {
this.RuleId = RuleId;
}
/**
* Get 执行动作(处置方式),取值有:
trans :通过 ;
alg :算法挑战 ;
drop :丢弃 ;
ban :封禁源ip ;
redirect :重定向 ;
page :返回指定页面 ;
monitor :观察 。
* @return Action 执行动作(处置方式),取值有:
trans :通过 ;
alg :算法挑战 ;
drop :丢弃 ;
ban :封禁源ip ;
redirect :重定向 ;
page :返回指定页面 ;
monitor :观察 。
*/
public String getAction() {
return this.Action;
}
/**
* Set 执行动作(处置方式),取值有:
trans :通过 ;
alg :算法挑战 ;
drop :丢弃 ;
ban :封禁源ip ;
redirect :重定向 ;
page :返回指定页面 ;
monitor :观察 。
* @param Action 执行动作(处置方式),取值有:
trans :通过 ;
alg :算法挑战 ;
drop :丢弃 ;
ban :封禁源ip ;
redirect :重定向 ;
page :返回指定页面 ;
monitor :观察 。
*/
public void setAction(String Action) {
this.Action = Action;
}
/**
* Get 风险等级(waf日志中独有),取值有:
high risk :高危 ;
middle risk :中危 ;
low risk :低危 ;
unkonw :未知 。
* @return RiskLevel 风险等级(waf日志中独有),取值有:
high risk :高危 ;
middle risk :中危 ;
low risk :低危 ;
unkonw :未知 。
*/
public String getRiskLevel() {
return this.RiskLevel;
}
/**
* Set 风险等级(waf日志中独有),取值有:
high risk :高危 ;
middle risk :中危 ;
low risk :低危 ;
unkonw :未知 。
* @param RiskLevel 风险等级(waf日志中独有),取值有:
high risk :高危 ;
middle risk :中危 ;
low risk :低危 ;
unkonw :未知 。
*/
public void setRiskLevel(String RiskLevel) {
this.RiskLevel = RiskLevel;
}
/**
* Get 规则等级,取值有:
normal :正常 。
* @return RuleLevel 规则等级,取值有:
normal :正常 。
*/
public String getRuleLevel() {
return this.RuleLevel;
}
/**
* Set 规则等级,取值有:
normal :正常 。
* @param RuleLevel 规则等级,取值有:
normal :正常 。
*/
public void setRuleLevel(String RuleLevel) {
this.RuleLevel = RuleLevel;
}
/**
* Get 规则描述。
* @return Description 规则描述。
*/
public String getDescription() {
return this.Description;
}
/**
* Set 规则描述。
* @param Description 规则描述。
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 规则类型名称。
* @return RuleTypeName 规则类型名称。
*/
public String getRuleTypeName() {
return this.RuleTypeName;
}
/**
* Set 规则类型名称。
* @param RuleTypeName 规则类型名称。
*/
public void setRuleTypeName(String RuleTypeName) {
this.RuleTypeName = RuleTypeName;
}
public SecRuleRelatedInfo() {
}
/**
* 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 SecRuleRelatedInfo(SecRuleRelatedInfo source) {
if (source.RuleId != null) {
this.RuleId = new Long(source.RuleId);
}
if (source.Action != null) {
this.Action = new String(source.Action);
}
if (source.RiskLevel != null) {
this.RiskLevel = new String(source.RiskLevel);
}
if (source.RuleLevel != null) {
this.RuleLevel = new String(source.RuleLevel);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.RuleTypeName != null) {
this.RuleTypeName = new String(source.RuleTypeName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "RuleId", this.RuleId);
this.setParamSimple(map, prefix + "Action", this.Action);
this.setParamSimple(map, prefix + "RiskLevel", this.RiskLevel);
this.setParamSimple(map, prefix + "RuleLevel", this.RuleLevel);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "RuleTypeName", this.RuleTypeName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy