![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.tcss.v20201101.models.ModifyVulDefenceSettingRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.tcss.v20201101.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 ModifyVulDefenceSettingRequest extends AbstractModel {
/**
* Whether it is enabled. Valid values: `0` (disabled); `1` (enabled).
*/
@SerializedName("IsEnabled")
@Expose
private Long IsEnabled;
/**
* Servers to enable exploit prevention. Values: `0` (custom); `1` (all).
*/
@SerializedName("Scope")
@Expose
private Long Scope;
/**
* Specified servers with exploit prevention enabled
*/
@SerializedName("HostIDs")
@Expose
private String [] HostIDs;
/**
* Super nodes to enable exploit prevention. Values: `0` (custom); `1` (all).
*/
@SerializedName("SuperScope")
@Expose
private Long SuperScope;
/**
* List of super node IDs
*/
@SerializedName("NodeIds")
@Expose
private String [] NodeIds;
/**
* Get Whether it is enabled. Valid values: `0` (disabled); `1` (enabled).
* @return IsEnabled Whether it is enabled. Valid values: `0` (disabled); `1` (enabled).
*/
public Long getIsEnabled() {
return this.IsEnabled;
}
/**
* Set Whether it is enabled. Valid values: `0` (disabled); `1` (enabled).
* @param IsEnabled Whether it is enabled. Valid values: `0` (disabled); `1` (enabled).
*/
public void setIsEnabled(Long IsEnabled) {
this.IsEnabled = IsEnabled;
}
/**
* Get Servers to enable exploit prevention. Values: `0` (custom); `1` (all).
* @return Scope Servers to enable exploit prevention. Values: `0` (custom); `1` (all).
*/
public Long getScope() {
return this.Scope;
}
/**
* Set Servers to enable exploit prevention. Values: `0` (custom); `1` (all).
* @param Scope Servers to enable exploit prevention. Values: `0` (custom); `1` (all).
*/
public void setScope(Long Scope) {
this.Scope = Scope;
}
/**
* Get Specified servers with exploit prevention enabled
* @return HostIDs Specified servers with exploit prevention enabled
*/
public String [] getHostIDs() {
return this.HostIDs;
}
/**
* Set Specified servers with exploit prevention enabled
* @param HostIDs Specified servers with exploit prevention enabled
*/
public void setHostIDs(String [] HostIDs) {
this.HostIDs = HostIDs;
}
/**
* Get Super nodes to enable exploit prevention. Values: `0` (custom); `1` (all).
* @return SuperScope Super nodes to enable exploit prevention. Values: `0` (custom); `1` (all).
*/
public Long getSuperScope() {
return this.SuperScope;
}
/**
* Set Super nodes to enable exploit prevention. Values: `0` (custom); `1` (all).
* @param SuperScope Super nodes to enable exploit prevention. Values: `0` (custom); `1` (all).
*/
public void setSuperScope(Long SuperScope) {
this.SuperScope = SuperScope;
}
/**
* Get List of super node IDs
* @return NodeIds List of super node IDs
*/
public String [] getNodeIds() {
return this.NodeIds;
}
/**
* Set List of super node IDs
* @param NodeIds List of super node IDs
*/
public void setNodeIds(String [] NodeIds) {
this.NodeIds = NodeIds;
}
public ModifyVulDefenceSettingRequest() {
}
/**
* 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 ModifyVulDefenceSettingRequest(ModifyVulDefenceSettingRequest source) {
if (source.IsEnabled != null) {
this.IsEnabled = new Long(source.IsEnabled);
}
if (source.Scope != null) {
this.Scope = new Long(source.Scope);
}
if (source.HostIDs != null) {
this.HostIDs = new String[source.HostIDs.length];
for (int i = 0; i < source.HostIDs.length; i++) {
this.HostIDs[i] = new String(source.HostIDs[i]);
}
}
if (source.SuperScope != null) {
this.SuperScope = new Long(source.SuperScope);
}
if (source.NodeIds != null) {
this.NodeIds = new String[source.NodeIds.length];
for (int i = 0; i < source.NodeIds.length; i++) {
this.NodeIds[i] = new String(source.NodeIds[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "IsEnabled", this.IsEnabled);
this.setParamSimple(map, prefix + "Scope", this.Scope);
this.setParamArraySimple(map, prefix + "HostIDs.", this.HostIDs);
this.setParamSimple(map, prefix + "SuperScope", this.SuperScope);
this.setParamArraySimple(map, prefix + "NodeIds.", this.NodeIds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy