com.tencentcloudapi.ecm.v20190719.models.CreateVpcRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-ecm Show documentation
Show all versions of tencentcloud-sdk-java-ecm 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.ecm.v20190719.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateVpcRequest extends AbstractModel{
/**
* vpc名称,最大长度不能超过60个字节。
*/
@SerializedName("VpcName")
@Expose
private String VpcName;
/**
* vpc的cidr,只能为10.*.0.0/16,172.[16-31].0.0/16,192.168.0.0/16这三个内网网段内。
*/
@SerializedName("CidrBlock")
@Expose
private String CidrBlock;
/**
* ECM 地域
*/
@SerializedName("EcmRegion")
@Expose
private String EcmRegion;
/**
* 是否开启组播。true: 开启, false: 不开启。暂不支持
*/
@SerializedName("EnableMulticast")
@Expose
private String EnableMulticast;
/**
* DNS地址,最多支持4个,暂不支持
*/
@SerializedName("DnsServers")
@Expose
private String [] DnsServers;
/**
* 域名,暂不支持
*/
@SerializedName("DomainName")
@Expose
private String DomainName;
/**
* 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* 描述信息
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* Get vpc名称,最大长度不能超过60个字节。
* @return VpcName vpc名称,最大长度不能超过60个字节。
*/
public String getVpcName() {
return this.VpcName;
}
/**
* Set vpc名称,最大长度不能超过60个字节。
* @param VpcName vpc名称,最大长度不能超过60个字节。
*/
public void setVpcName(String VpcName) {
this.VpcName = VpcName;
}
/**
* Get vpc的cidr,只能为10.*.0.0/16,172.[16-31].0.0/16,192.168.0.0/16这三个内网网段内。
* @return CidrBlock vpc的cidr,只能为10.*.0.0/16,172.[16-31].0.0/16,192.168.0.0/16这三个内网网段内。
*/
public String getCidrBlock() {
return this.CidrBlock;
}
/**
* Set vpc的cidr,只能为10.*.0.0/16,172.[16-31].0.0/16,192.168.0.0/16这三个内网网段内。
* @param CidrBlock vpc的cidr,只能为10.*.0.0/16,172.[16-31].0.0/16,192.168.0.0/16这三个内网网段内。
*/
public void setCidrBlock(String CidrBlock) {
this.CidrBlock = CidrBlock;
}
/**
* Get ECM 地域
* @return EcmRegion ECM 地域
*/
public String getEcmRegion() {
return this.EcmRegion;
}
/**
* Set ECM 地域
* @param EcmRegion ECM 地域
*/
public void setEcmRegion(String EcmRegion) {
this.EcmRegion = EcmRegion;
}
/**
* 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个,暂不支持
* @return DnsServers DNS地址,最多支持4个,暂不支持
*/
public String [] getDnsServers() {
return this.DnsServers;
}
/**
* Set DNS地址,最多支持4个,暂不支持
* @param DnsServers DNS地址,最多支持4个,暂不支持
*/
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;
}
/**
* Get 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
* @return Tags 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
* @param Tags 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get 描述信息
* @return Description 描述信息
*/
public String getDescription() {
return this.Description;
}
/**
* Set 描述信息
* @param Description 描述信息
*/
public void setDescription(String Description) {
this.Description = Description;
}
public CreateVpcRequest() {
}
/**
* 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 CreateVpcRequest(CreateVpcRequest source) {
if (source.VpcName != null) {
this.VpcName = new String(source.VpcName);
}
if (source.CidrBlock != null) {
this.CidrBlock = new String(source.CidrBlock);
}
if (source.EcmRegion != null) {
this.EcmRegion = new String(source.EcmRegion);
}
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);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "VpcName", this.VpcName);
this.setParamSimple(map, prefix + "CidrBlock", this.CidrBlock);
this.setParamSimple(map, prefix + "EcmRegion", this.EcmRegion);
this.setParamSimple(map, prefix + "EnableMulticast", this.EnableMulticast);
this.setParamArraySimple(map, prefix + "DnsServers.", this.DnsServers);
this.setParamSimple(map, prefix + "DomainName", this.DomainName);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "Description", this.Description);
}
}