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

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

    /**
    * 端口过滤规则数组。
    */
    @SerializedName("DDoSAclRules")
    @Expose
    private DDoSAclRule [] DDoSAclRules;

    /**
    * 清空规则标识,取值有:
  • off :清空端口过滤规则列表,DDoSAclRules无需填写;
  • on :配置端口过滤规则,需填写DDoSAclRules参数。
  • */ @SerializedName("Switch") @Expose private String Switch; /** * Get 端口过滤规则数组。 * @return DDoSAclRules 端口过滤规则数组。 */ public DDoSAclRule [] getDDoSAclRules() { return this.DDoSAclRules; } /** * Set 端口过滤规则数组。 * @param DDoSAclRules 端口过滤规则数组。 */ public void setDDoSAclRules(DDoSAclRule [] DDoSAclRules) { this.DDoSAclRules = DDoSAclRules; } /** * Get 清空规则标识,取值有:
  • off :清空端口过滤规则列表,DDoSAclRules无需填写;
  • on :配置端口过滤规则,需填写DDoSAclRules参数。
  • * @return Switch 清空规则标识,取值有:
  • off :清空端口过滤规则列表,DDoSAclRules无需填写;
  • on :配置端口过滤规则,需填写DDoSAclRules参数。
  • */ public String getSwitch() { return this.Switch; } /** * Set 清空规则标识,取值有:
  • off :清空端口过滤规则列表,DDoSAclRules无需填写;
  • on :配置端口过滤规则,需填写DDoSAclRules参数。
  • * @param Switch 清空规则标识,取值有:
  • off :清空端口过滤规则列表,DDoSAclRules无需填写;
  • on :配置端口过滤规则,需填写DDoSAclRules参数。
  • */ public void setSwitch(String Switch) { this.Switch = Switch; } public DDoSAcl() { } /** * 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 DDoSAcl(DDoSAcl source) { if (source.DDoSAclRules != null) { this.DDoSAclRules = new DDoSAclRule[source.DDoSAclRules.length]; for (int i = 0; i < source.DDoSAclRules.length; i++) { this.DDoSAclRules[i] = new DDoSAclRule(source.DDoSAclRules[i]); } } if (source.Switch != null) { this.Switch = new String(source.Switch); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamArrayObj(map, prefix + "DDoSAclRules.", this.DDoSAclRules); this.setParamSimple(map, prefix + "Switch", this.Switch); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy