com.tencentcloudapi.lighthouse.v20200324.models.DeleteFirewallRulesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-lighthouse Show documentation
Show all versions of tencentcloud-sdk-java-lighthouse Show documentation
Tencent Cloud Open API SDK for Java
The newest version!
/*
* 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.lighthouse.v20200324.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DeleteFirewallRulesRequest extends AbstractModel {
/**
* 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/1207/47573) 接口返回值中的 InstanceId 获取。
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 防火墙规则列表。
*/
@SerializedName("FirewallRules")
@Expose
private FirewallRule [] FirewallRules;
/**
* 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
*/
@SerializedName("FirewallVersion")
@Expose
private Long FirewallVersion;
/**
* Get 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/1207/47573) 接口返回值中的 InstanceId 获取。
* @return InstanceId 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/1207/47573) 接口返回值中的 InstanceId 获取。
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/1207/47573) 接口返回值中的 InstanceId 获取。
* @param InstanceId 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/1207/47573) 接口返回值中的 InstanceId 获取。
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 防火墙规则列表。
* @return FirewallRules 防火墙规则列表。
*/
public FirewallRule [] getFirewallRules() {
return this.FirewallRules;
}
/**
* Set 防火墙规则列表。
* @param FirewallRules 防火墙规则列表。
*/
public void setFirewallRules(FirewallRule [] FirewallRules) {
this.FirewallRules = FirewallRules;
}
/**
* Get 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
* @return FirewallVersion 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
*/
public Long getFirewallVersion() {
return this.FirewallVersion;
}
/**
* Set 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
* @param FirewallVersion 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
*/
public void setFirewallVersion(Long FirewallVersion) {
this.FirewallVersion = FirewallVersion;
}
public DeleteFirewallRulesRequest() {
}
/**
* 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 DeleteFirewallRulesRequest(DeleteFirewallRulesRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.FirewallRules != null) {
this.FirewallRules = new FirewallRule[source.FirewallRules.length];
for (int i = 0; i < source.FirewallRules.length; i++) {
this.FirewallRules[i] = new FirewallRule(source.FirewallRules[i]);
}
}
if (source.FirewallVersion != null) {
this.FirewallVersion = new Long(source.FirewallVersion);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamArrayObj(map, prefix + "FirewallRules.", this.FirewallRules);
this.setParamSimple(map, prefix + "FirewallVersion", this.FirewallVersion);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy