public class CreateSubnetRequest extends AbstractModel
Constructor and Description |
---|
CreateSubnetRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getCidrBlock()
Get The subnet IP address range.
|
String |
getSubnetName()
Get The subnet name.
|
Tag[] |
getTags()
Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
String |
getVpcId()
Get The ID of the VPC instance to be operated on.
|
String |
getZone()
Get The ID of the availability zone in which the subnet resides.
|
void |
setCidrBlock(String CidrBlock)
Set The subnet IP address range.
|
void |
setSubnetName(String SubnetName)
Set The subnet name.
|
void |
setTags(Tag[] Tags)
Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
void |
setVpcId(String VpcId)
Set The ID of the VPC instance to be operated on.
|
void |
setZone(String Zone)
Set The ID of the availability zone in which the subnet resides.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- The ID of the VPC instance to be operated on. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.public String getSubnetName()
public void setSubnetName(String SubnetName)
SubnetName
- The subnet name. The maximum length is 60 bytes.public String getCidrBlock()
public void setCidrBlock(String CidrBlock)
CidrBlock
- The 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 getZone()
public void setZone(String Zone)
Zone
- The ID of the availability zone in which the subnet resides. You can set up disaster recovery across availability zones by choosing different availability zones for different subnets.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Bound tags, such as [{"Key": "city", "Value": "shanghai"}].Copyright © 2020. All rights reserved.