public static final class CreateVpcRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateVpcRequest |
build() |
CreateVpcRequest.Builder |
cidrBlock(String cidrBlock)
The CIDR block of the VPC.
|
CreateVpcRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateVpcRequest.Builder |
description(String description)
The description of the VPC.
|
CreateVpcRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform a dry run, without performing the actual request.
|
CreateVpcRequest.Builder |
enableIpv6(Boolean enableIpv6)
Specifies whether to enable IPv6.
|
CreateVpcRequest.Builder |
ipv4CidrMask(Integer ipv4CidrMask)
Ipv4CidrMask.
|
CreateVpcRequest.Builder |
ipv4IpamPoolId(String ipv4IpamPoolId)
The ID of the IP Address Manager (IPAM) pool of the IPv4 type.
|
CreateVpcRequest.Builder |
ipv6CidrBlock(String ipv6CidrBlock)
The IPv6 CIDR block of the VPC.
|
CreateVpcRequest.Builder |
ipv6Isp(String ipv6Isp)
The type of the IPv6 CIDR block of the VPC.
|
CreateVpcRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateVpcRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateVpcRequest.Builder |
regionId(String regionId)
The ID of the region to which the VPC belongs.
|
CreateVpcRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
CreateVpcRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateVpcRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateVpcRequest.Builder |
tag(List<CreateVpcRequest.Tag> tag)
The tag of the resource.
|
CreateVpcRequest.Builder |
userCidr(String userCidr)
The user CIDR block.
|
CreateVpcRequest.Builder |
vpcName(String vpcName)
The name of the VPC.
|
public CreateVpcRequest.Builder cidrBlock(String cidrBlock)
* You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length. * You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
public CreateVpcRequest.Builder clientToken(String clientToken)
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. > 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.
public CreateVpcRequest.Builder description(String description)
The description must be 1 to 256 characters in length and cannot start with `http://` or `https://`.
public CreateVpcRequest.Builder dryRun(Boolean dryRun)
* **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
public CreateVpcRequest.Builder enableIpv6(Boolean enableIpv6)
* **false** (default) * **true**
public CreateVpcRequest.Builder ipv4CidrMask(Integer ipv4CidrMask)
public CreateVpcRequest.Builder ipv4IpamPoolId(String ipv4IpamPoolId)
public CreateVpcRequest.Builder ipv6CidrBlock(String ipv6CidrBlock)
public CreateVpcRequest.Builder ipv6Isp(String ipv6Isp)
* **BGP** (default) * **ChinaMobile** * **ChinaUnicom** * **ChinaTelecom** > If you are allowed to use single-ISP bandwidth, you can set the value to **ChinaTelecom**, **ChinaUnicom**, or **ChinaMobile**.
public CreateVpcRequest.Builder ownerAccount(String ownerAccount)
public CreateVpcRequest.Builder ownerId(Long ownerId)
public CreateVpcRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateVpcRequest.Builder resourceGroupId(String resourceGroupId)
For more information about resource groups, see [What is a resource group?](~~94475~~)
public CreateVpcRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateVpcRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateVpcRequest.Builder tag(List<CreateVpcRequest.Tag> tag)
public CreateVpcRequest.Builder userCidr(String userCidr)
For more information about user CIDR blocks, see the `What is a user CIDR block?` section in [VPC FAQ](~~185311~~).
public CreateVpcRequest.Builder vpcName(String vpcName)
The name must be 1 to 128 characters in length and cannot start with `http://` or `https://`.
public CreateVpcRequest build()
Copyright © 2024. All rights reserved.