public static final class CreateVSwitchCidrReservationRequest.Builder extends Object
public CreateVSwitchCidrReservationRequest.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 CreateVSwitchCidrReservationRequest.Builder dryRun(Boolean dryRun)
* **true**: performs only a dry run, without performing the actual request. 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 message 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 CreateVSwitchCidrReservationRequest.Builder ipVersion(String ipVersion)
* **IPv4** (default) * **IPv6**
public CreateVSwitchCidrReservationRequest.Builder ownerAccount(String ownerAccount)
public CreateVSwitchCidrReservationRequest.Builder ownerId(Long ownerId)
public CreateVSwitchCidrReservationRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateVSwitchCidrReservationRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateVSwitchCidrReservationRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateVSwitchCidrReservationRequest.Builder tag(List<CreateVSwitchCidrReservationRequest.Tag> tag)
public CreateVSwitchCidrReservationRequest.Builder vSwitchCidrReservationCidr(String vSwitchCidrReservationCidr)
* When **IpVersion** is set to **IPv4**, the reserved CIDR block must be a proper subset of the IPv4 CIDR block of the vSwitch and the subnet mask length of the reserved CIDR block cannot be greater than 28. * When **IpVersion** is set to **IPv6**, the reserved CIDR block must be a proper subset of the IPv6 CIDR block of the vSwitch and the subnet mask length of the reserved CIDR block cannot be greater than 80. > You must specify one of **VSwitchCidrReservationMask** and **VSwitchCidrReservationCidr**.
public CreateVSwitchCidrReservationRequest.Builder vSwitchCidrReservationDescription(String vSwitchCidrReservationDescription)
The description must be 2 to 256 characters in length. It must start with a letter and cannot start with `http://` or `https://`.
public CreateVSwitchCidrReservationRequest.Builder vSwitchCidrReservationMask(String vSwitchCidrReservationMask)
* When **IpVersion** is set to **IPv4**, the subnet mask length of the CIDR block must be greater than the IPv4 subnet mask length of the vSwitch and cannot be greater than 28. * When **IpVersion** is set to **IPv6**, the subnet mask length of the CIDR block must be greater than the IPv6 subnet mask length of the vSwitch and cannot be greater than 80. > You must specify one of **VSwitchCidrReservationMask** and **VSwitchCidrReservationCidr**.
public CreateVSwitchCidrReservationRequest.Builder vSwitchCidrReservationName(String vSwitchCidrReservationName)
The name must be 2 to 128 characters in length and can contain digits, underscores (\_), and hyphens (-). It must start with a letter.
public CreateVSwitchCidrReservationRequest.Builder vSwitchCidrReservationType(String vSwitchCidrReservationType)
> When a user or a cloud service allocates a CIDR block to an elastic network interface (ENI), the CIDR block must be allocated from the reserved CIDR block. If the reserved CIDR block is exhausted, an error is returned.
public CreateVSwitchCidrReservationRequest.Builder vSwitchId(String vSwitchId)
public CreateVSwitchCidrReservationRequest build()
Copyright © 2024. All rights reserved.