![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.ecm.v20190719.models.CreateSubnetRequest 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.ecm.v20190719.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 CreateSubnetRequest extends AbstractModel {
/**
* ID of the VPC instance to be manipulated, which can be obtained from the `VpcId` field in the returned value of the `DescribeVpcs` API.
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* Subnet name, which can contain up to 60 bytes.
*/
@SerializedName("SubnetName")
@Expose
private String SubnetName;
/**
* Subnet IP address range. It must be within the VPC IP address range. Subnet IP address ranges cannot overlap with each other within the same VPC.
*/
@SerializedName("CidrBlock")
@Expose
private String CidrBlock;
/**
* AZ ID of the subnet. You can select different AZs for different subnets for cross-AZ disaster recovery.
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* ECM region
*/
@SerializedName("EcmRegion")
@Expose
private String EcmRegion;
/**
* List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Get ID of the VPC instance to be manipulated, which can be obtained from the `VpcId` field in the returned value of the `DescribeVpcs` API.
* @return VpcId ID of the VPC instance to be manipulated, which can be obtained from the `VpcId` field in the returned value of the `DescribeVpcs` API.
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set ID of the VPC instance to be manipulated, which can be obtained from the `VpcId` field in the returned value of the `DescribeVpcs` API.
* @param VpcId ID of the VPC instance to be manipulated, which can be obtained from the `VpcId` field in the returned value of the `DescribeVpcs` API.
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get Subnet name, which can contain up to 60 bytes.
* @return SubnetName Subnet name, which can contain up to 60 bytes.
*/
public String getSubnetName() {
return this.SubnetName;
}
/**
* Set Subnet name, which can contain up to 60 bytes.
* @param SubnetName Subnet name, which can contain up to 60 bytes.
*/
public void setSubnetName(String SubnetName) {
this.SubnetName = SubnetName;
}
/**
* Get Subnet IP address range. It must be within the VPC IP address range. Subnet IP address ranges cannot overlap with each other within the same VPC.
* @return CidrBlock Subnet IP address range. It must be within the VPC IP address range. Subnet IP address ranges cannot overlap with each other within the same VPC.
*/
public String getCidrBlock() {
return this.CidrBlock;
}
/**
* Set Subnet IP address range. It must be within the VPC IP address range. Subnet IP address ranges cannot overlap with each other within the same VPC.
* @param CidrBlock Subnet IP address range. It must be within the VPC IP address range. Subnet IP address ranges cannot overlap with each other within the same VPC.
*/
public void setCidrBlock(String CidrBlock) {
this.CidrBlock = CidrBlock;
}
/**
* Get AZ ID of the subnet. You can select different AZs for different subnets for cross-AZ disaster recovery.
* @return Zone AZ ID of the subnet. You can select different AZs for different subnets for cross-AZ disaster recovery.
*/
public String getZone() {
return this.Zone;
}
/**
* Set AZ ID of the subnet. You can select different AZs for different subnets for cross-AZ disaster recovery.
* @param Zone AZ ID of the subnet. You can select different AZs for different subnets for cross-AZ disaster recovery.
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get ECM region
* @return EcmRegion ECM region
*/
public String getEcmRegion() {
return this.EcmRegion;
}
/**
* Set ECM region
* @param EcmRegion ECM region
*/
public void setEcmRegion(String EcmRegion) {
this.EcmRegion = EcmRegion;
}
/**
* Get List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
* @return Tags List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
* @param Tags List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
public CreateSubnetRequest() {
}
/**
* 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 CreateSubnetRequest(CreateSubnetRequest source) {
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.SubnetName != null) {
this.SubnetName = new String(source.SubnetName);
}
if (source.CidrBlock != null) {
this.CidrBlock = new String(source.CidrBlock);
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.EcmRegion != null) {
this.EcmRegion = new String(source.EcmRegion);
}
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]);
}
}
}
/**
* 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 + "SubnetName", this.SubnetName);
this.setParamSimple(map, prefix + "CidrBlock", this.CidrBlock);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "EcmRegion", this.EcmRegion);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy