public class CreateVpcRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateVpcRequest.CreateVpcRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
cidrBlock
The CIDR block of the VPC.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the VPC.
|
Boolean |
dryRun
Specifies whether to perform a dry run, without performing the actual request.
|
Boolean |
enableIpv6
Specifies whether to enable IPv6.
|
Integer |
ipv4CidrMask |
String |
ipv4IpamPoolId
The ID of the IP Address Manager (IPAM) pool of the IPv4 type.
|
String |
ipv6CidrBlock
The IPv6 CIDR block of the VPC.
|
String |
ipv6Isp
The type of the IPv6 CIDR block of the VPC.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The ID of the region to which the VPC belongs.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<CreateVpcRequest.CreateVpcRequestTag> |
tag
The tag of the resource.
|
String |
userCidr
The user CIDR block.
|
String |
vpcName
The name of the VPC.
|
构造器和说明 |
---|
CreateVpcRequest() |
@NameInMap(value="CidrBlock") public String cidrBlock
The CIDR block of the VPC.
172.16.0.0/12
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
example:If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the VPC.
The description must be 1 to 256 characters in length and cannot start with http://
or https://
.
This is my first Vpc
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform a dry run, without performing the actual request. Valid values:
DryRunOperation
error code is returned.false
@NameInMap(value="EnableIpv6") public Boolean enableIpv6
Specifies whether to enable IPv6. Valid values:
false
@NameInMap(value="Ipv4CidrMask") public Integer ipv4CidrMask
@NameInMap(value="Ipv4IpamPoolId") public String ipv4IpamPoolId
The ID of the IP Address Manager (IPAM) pool of the IPv4 type.
example:ipam-pool-sycmt3p2a9v63i****
@NameInMap(value="Ipv6CidrBlock") public String ipv6CidrBlock
The IPv6 CIDR block of the VPC.
example:2408:XXXX:0:6a::/56
@NameInMap(value="Ipv6Isp") public String ipv6Isp
The type of the IPv6 CIDR block of the VPC. Valid values:
example:If you are allowed to use single-ISP bandwidth, you can set the value to ChinaTelecom, ChinaUnicom, or ChinaMobile.
BGP
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region to which the VPC belongs.
You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
For more information about resource groups, see What is a resource group?
example:rg-acfmxazb4ph6aiy****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<CreateVpcRequest.CreateVpcRequestTag> tag
The tag of the resource.
@NameInMap(value="UserCidr") public String userCidr
The user CIDR block. Separate user CIDR blocks with commas (,). You can specify up to three user CIDR blocks.
For more information about user CIDR blocks, see the What is a user CIDR block?
section in VPC FAQ.
192.168.0.0/12
@NameInMap(value="VpcName") public String vpcName
The name of the VPC.
The name must be 1 to 128 characters in length and cannot start with http://
or https://
.
abc
public static CreateVpcRequest build(Map<String,?> map) throws Exception
Exception
public CreateVpcRequest setCidrBlock(String cidrBlock)
public String getCidrBlock()
public CreateVpcRequest setClientToken(String clientToken)
public String getClientToken()
public CreateVpcRequest setDescription(String description)
public String getDescription()
public CreateVpcRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateVpcRequest setEnableIpv6(Boolean enableIpv6)
public Boolean getEnableIpv6()
public CreateVpcRequest setIpv4CidrMask(Integer ipv4CidrMask)
public Integer getIpv4CidrMask()
public CreateVpcRequest setIpv4IpamPoolId(String ipv4IpamPoolId)
public String getIpv4IpamPoolId()
public CreateVpcRequest setIpv6CidrBlock(String ipv6CidrBlock)
public String getIpv6CidrBlock()
public CreateVpcRequest setIpv6Isp(String ipv6Isp)
public String getIpv6Isp()
public CreateVpcRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateVpcRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateVpcRequest setRegionId(String regionId)
public String getRegionId()
public CreateVpcRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateVpcRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateVpcRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateVpcRequest setTag(List<CreateVpcRequest.CreateVpcRequestTag> tag)
public List<CreateVpcRequest.CreateVpcRequestTag> getTag()
public CreateVpcRequest setUserCidr(String userCidr)
public String getUserCidr()
public CreateVpcRequest setVpcName(String vpcName)
public String getVpcName()
Copyright © 2024. All rights reserved.