All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.teo.v20220901.models.WafConfig 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 WafConfig extends AbstractModel{

    /**
    * WafConfig开关,取值有:
  • on:开启;
  • off:关闭。
  • 开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。 */ @SerializedName("Switch") @Expose private String Switch; /** * 上一次设置的防护级别,取值有:
  • loose:宽松;
  • normal:正常;
  • strict:严格;
  • stricter:超严格;
  • custom:自定义。
  • */ @SerializedName("Level") @Expose private String Level; /** * 全局WAF模式,取值有:
  • block:阻断(全局阻断,但可对详细规则配置观察);
  • observe:观察(无论详细规则配置什么,都为观察)。
  • */ @SerializedName("Mode") @Expose private String Mode; /** * 托管规则详细配置。如果为null,默认使用历史配置。 */ @SerializedName("WafRule") @Expose private WafRule WafRule; /** * AI规则引擎防护配置。如果为null,默认使用历史配置。 */ @SerializedName("AiRule") @Expose private AiRule AiRule; /** * Get WafConfig开关,取值有:
  • on:开启;
  • off:关闭。
  • 开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。 * @return Switch WafConfig开关,取值有:
  • on:开启;
  • off:关闭。
  • 开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。 */ public String getSwitch() { return this.Switch; } /** * Set WafConfig开关,取值有:
  • on:开启;
  • off:关闭。
  • 开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。 * @param Switch WafConfig开关,取值有:
  • on:开启;
  • off:关闭。
  • 开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。 */ public void setSwitch(String Switch) { this.Switch = Switch; } /** * Get 上一次设置的防护级别,取值有:
  • loose:宽松;
  • normal:正常;
  • strict:严格;
  • stricter:超严格;
  • custom:自定义。
  • * @return Level 上一次设置的防护级别,取值有:
  • loose:宽松;
  • normal:正常;
  • strict:严格;
  • stricter:超严格;
  • custom:自定义。
  • */ public String getLevel() { return this.Level; } /** * Set 上一次设置的防护级别,取值有:
  • loose:宽松;
  • normal:正常;
  • strict:严格;
  • stricter:超严格;
  • custom:自定义。
  • * @param Level 上一次设置的防护级别,取值有:
  • loose:宽松;
  • normal:正常;
  • strict:严格;
  • stricter:超严格;
  • custom:自定义。
  • */ public void setLevel(String Level) { this.Level = Level; } /** * Get 全局WAF模式,取值有:
  • block:阻断(全局阻断,但可对详细规则配置观察);
  • observe:观察(无论详细规则配置什么,都为观察)。
  • * @return Mode 全局WAF模式,取值有:
  • block:阻断(全局阻断,但可对详细规则配置观察);
  • observe:观察(无论详细规则配置什么,都为观察)。
  • */ public String getMode() { return this.Mode; } /** * Set 全局WAF模式,取值有:
  • block:阻断(全局阻断,但可对详细规则配置观察);
  • observe:观察(无论详细规则配置什么,都为观察)。
  • * @param Mode 全局WAF模式,取值有:
  • block:阻断(全局阻断,但可对详细规则配置观察);
  • observe:观察(无论详细规则配置什么,都为观察)。
  • */ public void setMode(String Mode) { this.Mode = Mode; } /** * Get 托管规则详细配置。如果为null,默认使用历史配置。 * @return WafRule 托管规则详细配置。如果为null,默认使用历史配置。 */ public WafRule getWafRule() { return this.WafRule; } /** * Set 托管规则详细配置。如果为null,默认使用历史配置。 * @param WafRule 托管规则详细配置。如果为null,默认使用历史配置。 */ public void setWafRule(WafRule WafRule) { this.WafRule = WafRule; } /** * Get AI规则引擎防护配置。如果为null,默认使用历史配置。 * @return AiRule AI规则引擎防护配置。如果为null,默认使用历史配置。 */ public AiRule getAiRule() { return this.AiRule; } /** * Set AI规则引擎防护配置。如果为null,默认使用历史配置。 * @param AiRule AI规则引擎防护配置。如果为null,默认使用历史配置。 */ public void setAiRule(AiRule AiRule) { this.AiRule = AiRule; } public WafConfig() { } /** * 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 WafConfig(WafConfig source) { if (source.Switch != null) { this.Switch = new String(source.Switch); } if (source.Level != null) { this.Level = new String(source.Level); } if (source.Mode != null) { this.Mode = new String(source.Mode); } if (source.WafRule != null) { this.WafRule = new WafRule(source.WafRule); } if (source.AiRule != null) { this.AiRule = new AiRule(source.AiRule); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Switch", this.Switch); this.setParamSimple(map, prefix + "Level", this.Level); this.setParamSimple(map, prefix + "Mode", this.Mode); this.setParamObj(map, prefix + "WafRule.", this.WafRule); this.setParamObj(map, prefix + "AiRule.", this.AiRule); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy