com.tencentcloudapi.vpc.v20170312.models.ModifyVpcAttributeRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Tencent Cloud Open 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.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyVpcAttributeRequest extends AbstractModel{
/**
* VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* 私有网络名称,可任意命名,但不得超过60个字符。
*/
@SerializedName("VpcName")
@Expose
private String VpcName;
/**
* 是否开启组播。true: 开启, false: 关闭。
*/
@SerializedName("EnableMulticast")
@Expose
private String EnableMulticast;
/**
* DNS地址,最多支持4个,第1个默认为主,其余为备
*/
@SerializedName("DnsServers")
@Expose
private String [] DnsServers;
/**
* 域名
*/
@SerializedName("DomainName")
@Expose
private String DomainName;
/**
* Get VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。
* @return VpcId VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。
* @param VpcId VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get 私有网络名称,可任意命名,但不得超过60个字符。
* @return VpcName 私有网络名称,可任意命名,但不得超过60个字符。
*/
public String getVpcName() {
return this.VpcName;
}
/**
* Set 私有网络名称,可任意命名,但不得超过60个字符。
* @param VpcName 私有网络名称,可任意命名,但不得超过60个字符。
*/
public void setVpcName(String VpcName) {
this.VpcName = VpcName;
}
/**
* Get 是否开启组播。true: 开启, false: 关闭。
* @return EnableMulticast 是否开启组播。true: 开启, false: 关闭。
*/
public String getEnableMulticast() {
return this.EnableMulticast;
}
/**
* Set 是否开启组播。true: 开启, false: 关闭。
* @param EnableMulticast 是否开启组播。true: 开启, false: 关闭。
*/
public void setEnableMulticast(String EnableMulticast) {
this.EnableMulticast = EnableMulticast;
}
/**
* Get DNS地址,最多支持4个,第1个默认为主,其余为备
* @return DnsServers DNS地址,最多支持4个,第1个默认为主,其余为备
*/
public String [] getDnsServers() {
return this.DnsServers;
}
/**
* Set DNS地址,最多支持4个,第1个默认为主,其余为备
* @param DnsServers DNS地址,最多支持4个,第1个默认为主,其余为备
*/
public void setDnsServers(String [] DnsServers) {
this.DnsServers = DnsServers;
}
/**
* Get 域名
* @return DomainName 域名
*/
public String getDomainName() {
return this.DomainName;
}
/**
* Set 域名
* @param DomainName 域名
*/
public void setDomainName(String DomainName) {
this.DomainName = DomainName;
}
public ModifyVpcAttributeRequest() {
}
/**
* 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 ModifyVpcAttributeRequest(ModifyVpcAttributeRequest source) {
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.VpcName != null) {
this.VpcName = new String(source.VpcName);
}
if (source.EnableMulticast != null) {
this.EnableMulticast = new String(source.EnableMulticast);
}
if (source.DnsServers != null) {
this.DnsServers = new String[source.DnsServers.length];
for (int i = 0; i < source.DnsServers.length; i++) {
this.DnsServers[i] = new String(source.DnsServers[i]);
}
}
if (source.DomainName != null) {
this.DomainName = new String(source.DomainName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "VpcName", this.VpcName);
this.setParamSimple(map, prefix + "EnableMulticast", this.EnableMulticast);
this.setParamArraySimple(map, prefix + "DnsServers.", this.DnsServers);
this.setParamSimple(map, prefix + "DomainName", this.DomainName);
}
}