
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{
/**
* The rule ID.
*/
@SerializedName("RuleId")
@Expose
private Long RuleId;
/**
* Action. Values:
`trans`: Allow;
`alg`: Algorithm challenge;
`drop`: Discard;
`ban`: Block the source IP;
`redirect`: Redirect;
`page`: Return to the specified page;
`monitor`: Observe.
*/
@SerializedName("Action")
@Expose
private String Action;
/**
* Risk level (only found in WAF logs). Values:
`high risk`: High risk;
`middle risk`: Middle risk;
`low risk`: Low risk;
`unkonw`: Unknown.
*/
@SerializedName("RiskLevel")
@Expose
private String RiskLevel;
/**
* Rule level. Values:
`normal`: Moderate.
*/
@SerializedName("RuleLevel")
@Expose
private String RuleLevel;
/**
* Rule description.
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* The rule type.
*/
@SerializedName("RuleTypeName")
@Expose
private String RuleTypeName;
/**
* The attack content.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("AttackContent")
@Expose
private String AttackContent;
/**
* Get The rule ID.
* @return RuleId The rule ID.
*/
public Long getRuleId() {
return this.RuleId;
}
/**
* Set The rule ID.
* @param RuleId The rule ID.
*/
public void setRuleId(Long RuleId) {
this.RuleId = RuleId;
}
/**
* Get Action. Values:
`trans`: Allow;
`alg`: Algorithm challenge;
`drop`: Discard;
`ban`: Block the source IP;
`redirect`: Redirect;
`page`: Return to the specified page;
`monitor`: Observe.
* @return Action Action. Values:
`trans`: Allow;
`alg`: Algorithm challenge;
`drop`: Discard;
`ban`: Block the source IP;
`redirect`: Redirect;
`page`: Return to the specified page;
`monitor`: Observe.
*/
public String getAction() {
return this.Action;
}
/**
* Set Action. Values:
`trans`: Allow;
`alg`: Algorithm challenge;
`drop`: Discard;
`ban`: Block the source IP;
`redirect`: Redirect;
`page`: Return to the specified page;
`monitor`: Observe.
* @param Action Action. Values:
`trans`: Allow;
`alg`: Algorithm challenge;
`drop`: Discard;
`ban`: Block the source IP;
`redirect`: Redirect;
`page`: Return to the specified page;
`monitor`: Observe.
*/
public void setAction(String Action) {
this.Action = Action;
}
/**
* Get Risk level (only found in WAF logs). Values:
`high risk`: High risk;
`middle risk`: Middle risk;
`low risk`: Low risk;
`unkonw`: Unknown.
* @return RiskLevel Risk level (only found in WAF logs). Values:
`high risk`: High risk;
`middle risk`: Middle risk;
`low risk`: Low risk;
`unkonw`: Unknown.
*/
public String getRiskLevel() {
return this.RiskLevel;
}
/**
* Set Risk level (only found in WAF logs). Values:
`high risk`: High risk;
`middle risk`: Middle risk;
`low risk`: Low risk;
`unkonw`: Unknown.
* @param RiskLevel Risk level (only found in WAF logs). Values:
`high risk`: High risk;
`middle risk`: Middle risk;
`low risk`: Low risk;
`unkonw`: Unknown.
*/
public void setRiskLevel(String RiskLevel) {
this.RiskLevel = RiskLevel;
}
/**
* Get Rule level. Values:
`normal`: Moderate.
* @return RuleLevel Rule level. Values:
`normal`: Moderate.
*/
public String getRuleLevel() {
return this.RuleLevel;
}
/**
* Set Rule level. Values:
`normal`: Moderate.
* @param RuleLevel Rule level. Values:
`normal`: Moderate.
*/
public void setRuleLevel(String RuleLevel) {
this.RuleLevel = RuleLevel;
}
/**
* Get Rule description.
* @return Description Rule description.
*/
public String getDescription() {
return this.Description;
}
/**
* Set Rule description.
* @param Description Rule description.
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get The rule type.
* @return RuleTypeName The rule type.
*/
public String getRuleTypeName() {
return this.RuleTypeName;
}
/**
* Set The rule type.
* @param RuleTypeName The rule type.
*/
public void setRuleTypeName(String RuleTypeName) {
this.RuleTypeName = RuleTypeName;
}
/**
* Get The attack content.
Note: This field may return null, indicating that no valid values can be obtained.
* @return AttackContent The attack content.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String getAttackContent() {
return this.AttackContent;
}
/**
* Set The attack content.
Note: This field may return null, indicating that no valid values can be obtained.
* @param AttackContent The attack content.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setAttackContent(String AttackContent) {
this.AttackContent = AttackContent;
}
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);
}
if (source.AttackContent != null) {
this.AttackContent = new String(source.AttackContent);
}
}
/**
* 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);
this.setParamSimple(map, prefix + "AttackContent", this.AttackContent);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy