public static final class CreateVSwitchRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateVSwitchRequest |
build() |
CreateVSwitchRequest.Builder |
cidrBlock(String cidrBlock)
The CIDR block of the vSwitch.
|
CreateVSwitchRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateVSwitchRequest.Builder |
description(String description)
The description of the vSwitch.
|
CreateVSwitchRequest.Builder |
ipv6CidrBlock(Integer ipv6CidrBlock)
The last eight bits of the IPv6 CIDR block of the vSwitch.
|
CreateVSwitchRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateVSwitchRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateVSwitchRequest.Builder |
regionId(String regionId)
The region ID of the vSwitch.
|
CreateVSwitchRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateVSwitchRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateVSwitchRequest.Builder |
tag(List<CreateVSwitchRequest.Tag> tag)
The tag of the resource.
|
CreateVSwitchRequest.Builder |
vpcId(String vpcId)
The ID of the VPC where you want to create the vSwitch.
|
CreateVSwitchRequest.Builder |
vpcIpv6CidrBlock(String vpcIpv6CidrBlock)
The IPv6 CIDR block of the VPC.
|
CreateVSwitchRequest.Builder |
vSwitchName(String vSwitchName)
The name of the vSwitch.
|
CreateVSwitchRequest.Builder |
zoneId(String zoneId)
The zone ID of the vSwitch.
|
public CreateVSwitchRequest.Builder cidrBlock(String cidrBlock)
* The subnet mask of the CIDR block must be 16 to 29 bits in length. * The CIDR block of the vSwitch must fall within the CIDR block of the VPC to which the vSwitch belongs. * The CIDR block of a vSwitch cannot be the same as the destination CIDR block in a route entry of the VPC. However, it can be a subset of the destination CIDR block.
public CreateVSwitchRequest.Builder clientToken(String clientToken)
You can use the client to generate the value, but you must make sure that it is unique among all requests. The token can contain only ASCII characters. > If you do not specify this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** may be different for each API request.
public CreateVSwitchRequest.Builder description(String description)
The description must be 1 to 256 characters in length and cannot start with `http://` or `https://`.
public CreateVSwitchRequest.Builder ipv6CidrBlock(Integer ipv6CidrBlock)
public CreateVSwitchRequest.Builder ownerAccount(String ownerAccount)
public CreateVSwitchRequest.Builder ownerId(Long ownerId)
public CreateVSwitchRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateVSwitchRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateVSwitchRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateVSwitchRequest.Builder tag(List<CreateVSwitchRequest.Tag> tag)
public CreateVSwitchRequest.Builder vSwitchName(String vSwitchName)
The name must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
public CreateVSwitchRequest.Builder vpcId(String vpcId)
public CreateVSwitchRequest.Builder vpcIpv6CidrBlock(String vpcIpv6CidrBlock)
public CreateVSwitchRequest.Builder zoneId(String zoneId)
You can call the [DescribeZones](~~36064~~) operation to query the most recent zone list.
public CreateVSwitchRequest build()
Copyright © 2024. All rights reserved.