public class CreateSubnetRequest extends AbstractModel
Constructor and Description |
---|
CreateSubnetRequest() |
CreateSubnetRequest(CreateSubnetRequest source)
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getCidrBlock()
Get Subnet IP address range.
|
String |
getEcmRegion()
Get ECM region
|
String |
getSubnetName()
Get Subnet name, which can contain up to 60 bytes.
|
Tag[] |
getTags()
Get List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
String |
getVpcId()
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.
|
String |
getZone()
Get AZ ID of the subnet.
|
void |
setCidrBlock(String CidrBlock)
Set Subnet IP address range.
|
void |
setEcmRegion(String EcmRegion)
Set ECM region
|
void |
setSubnetName(String SubnetName)
Set Subnet name, which can contain up to 60 bytes.
|
void |
setTags(Tag[] Tags)
Set List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].
|
void |
setVpcId(String 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.
|
void |
setZone(String Zone)
Set AZ ID of the subnet.
|
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 CreateSubnetRequest()
public CreateSubnetRequest(CreateSubnetRequest source)
public String getVpcId()
public void setVpcId(String VpcId)
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 getSubnetName()
public void setSubnetName(String SubnetName)
SubnetName
- Subnet name, which can contain up to 60 bytes.public String getCidrBlock()
public void setCidrBlock(String CidrBlock)
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 getZone()
public void setZone(String Zone)
Zone
- AZ ID of the subnet. You can select different AZs for different subnets for cross-AZ disaster recovery.public String getEcmRegion()
public void setEcmRegion(String EcmRegion)
EcmRegion
- ECM regionpublic Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of bound tags, such as [{"Key": "city", "Value": "shanghai"}].Copyright © 2023. All rights reserved.