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

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

    /**
    * 规则id。
    */
    @SerializedName("RuleId")
    @Expose
    private Long RuleId;

    /**
    * 规则描述。
    */
    @SerializedName("Description")
    @Expose
    private String Description;

    /**
    * 等级描述。
    */
    @SerializedName("RuleLevelDesc")
    @Expose
    private String RuleLevelDesc;

    /**
    * 规则标签。部分类型的规则不存在该参数。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("RuleTags")
    @Expose
    private String [] RuleTags;

    /**
    * 更新时间,格式为YYYY-MM-DD hh:mm:ss。部分类型的规则不存在该参数。
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("UpdateTime")
    @Expose
    private String UpdateTime;

    /**
    * 状态,取值有:
  • on:开启;
  • off:关闭。
  • 为空时对应接口Status无意义,例如仅查询规则详情时。 */ @SerializedName("Status") @Expose private String Status; /** * 规则类型名。 */ @SerializedName("RuleTypeName") @Expose private String RuleTypeName; /** * 规则类型id。 */ @SerializedName("RuleTypeId") @Expose private Long RuleTypeId; /** * 规则类型描述。 */ @SerializedName("RuleTypeDesc") @Expose private String RuleTypeDesc; /** * Get 规则id。 * @return RuleId 规则id。 */ public Long getRuleId() { return this.RuleId; } /** * Set 规则id。 * @param RuleId 规则id。 */ public void setRuleId(Long RuleId) { this.RuleId = RuleId; } /** * Get 规则描述。 * @return Description 规则描述。 */ public String getDescription() { return this.Description; } /** * Set 规则描述。 * @param Description 规则描述。 */ public void setDescription(String Description) { this.Description = Description; } /** * Get 等级描述。 * @return RuleLevelDesc 等级描述。 */ public String getRuleLevelDesc() { return this.RuleLevelDesc; } /** * Set 等级描述。 * @param RuleLevelDesc 等级描述。 */ public void setRuleLevelDesc(String RuleLevelDesc) { this.RuleLevelDesc = RuleLevelDesc; } /** * Get 规则标签。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 * @return RuleTags 规则标签。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 */ public String [] getRuleTags() { return this.RuleTags; } /** * Set 规则标签。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 * @param RuleTags 规则标签。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 */ public void setRuleTags(String [] RuleTags) { this.RuleTags = RuleTags; } /** * Get 更新时间,格式为YYYY-MM-DD hh:mm:ss。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 * @return UpdateTime 更新时间,格式为YYYY-MM-DD hh:mm:ss。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 */ public String getUpdateTime() { return this.UpdateTime; } /** * Set 更新时间,格式为YYYY-MM-DD hh:mm:ss。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 * @param UpdateTime 更新时间,格式为YYYY-MM-DD hh:mm:ss。部分类型的规则不存在该参数。 注意:此字段可能返回 null,表示取不到有效值。 */ public void setUpdateTime(String UpdateTime) { this.UpdateTime = UpdateTime; } /** * Get 状态,取值有:
  • on:开启;
  • off:关闭。
  • 为空时对应接口Status无意义,例如仅查询规则详情时。 * @return Status 状态,取值有:
  • on:开启;
  • off:关闭。
  • 为空时对应接口Status无意义,例如仅查询规则详情时。 */ public String getStatus() { return this.Status; } /** * Set 状态,取值有:
  • on:开启;
  • off:关闭。
  • 为空时对应接口Status无意义,例如仅查询规则详情时。 * @param Status 状态,取值有:
  • on:开启;
  • off:关闭。
  • 为空时对应接口Status无意义,例如仅查询规则详情时。 */ public void setStatus(String Status) { this.Status = Status; } /** * Get 规则类型名。 * @return RuleTypeName 规则类型名。 */ public String getRuleTypeName() { return this.RuleTypeName; } /** * Set 规则类型名。 * @param RuleTypeName 规则类型名。 */ public void setRuleTypeName(String RuleTypeName) { this.RuleTypeName = RuleTypeName; } /** * Get 规则类型id。 * @return RuleTypeId 规则类型id。 */ public Long getRuleTypeId() { return this.RuleTypeId; } /** * Set 规则类型id。 * @param RuleTypeId 规则类型id。 */ public void setRuleTypeId(Long RuleTypeId) { this.RuleTypeId = RuleTypeId; } /** * Get 规则类型描述。 * @return RuleTypeDesc 规则类型描述。 */ public String getRuleTypeDesc() { return this.RuleTypeDesc; } /** * Set 规则类型描述。 * @param RuleTypeDesc 规则类型描述。 */ public void setRuleTypeDesc(String RuleTypeDesc) { this.RuleTypeDesc = RuleTypeDesc; } public WafGroupRule() { } /** * 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 WafGroupRule(WafGroupRule source) { if (source.RuleId != null) { this.RuleId = new Long(source.RuleId); } if (source.Description != null) { this.Description = new String(source.Description); } if (source.RuleLevelDesc != null) { this.RuleLevelDesc = new String(source.RuleLevelDesc); } if (source.RuleTags != null) { this.RuleTags = new String[source.RuleTags.length]; for (int i = 0; i < source.RuleTags.length; i++) { this.RuleTags[i] = new String(source.RuleTags[i]); } } if (source.UpdateTime != null) { this.UpdateTime = new String(source.UpdateTime); } if (source.Status != null) { this.Status = new String(source.Status); } if (source.RuleTypeName != null) { this.RuleTypeName = new String(source.RuleTypeName); } if (source.RuleTypeId != null) { this.RuleTypeId = new Long(source.RuleTypeId); } if (source.RuleTypeDesc != null) { this.RuleTypeDesc = new String(source.RuleTypeDesc); } } /** * 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 + "Description", this.Description); this.setParamSimple(map, prefix + "RuleLevelDesc", this.RuleLevelDesc); this.setParamArraySimple(map, prefix + "RuleTags.", this.RuleTags); this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime); this.setParamSimple(map, prefix + "Status", this.Status); this.setParamSimple(map, prefix + "RuleTypeName", this.RuleTypeName); this.setParamSimple(map, prefix + "RuleTypeId", this.RuleTypeId); this.setParamSimple(map, prefix + "RuleTypeDesc", this.RuleTypeDesc); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy