public static final class CreateNatIpCidrRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNatIpCidrRequest |
build() |
CreateNatIpCidrRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateNatIpCidrRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
CreateNatIpCidrRequest.Builder |
natGatewayId(String natGatewayId)
The ID of the Virtual Private Cloud (VPC) NAT gateway with which you want to associate the CIDR block.
|
CreateNatIpCidrRequest.Builder |
natIpCidr(String natIpCidr)
The NAT CIDR block that you want to associate with the NAT gateway.
|
CreateNatIpCidrRequest.Builder |
natIpCidrDescription(String natIpCidrDescription)
The description of the NAT CIDR block.
|
CreateNatIpCidrRequest.Builder |
natIpCidrName(String natIpCidrName)
The name of the CIDR block.
|
CreateNatIpCidrRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateNatIpCidrRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateNatIpCidrRequest.Builder |
regionId(String regionId)
The region ID of the NAT gateway with which you want to associate the CIDR block.
|
CreateNatIpCidrRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateNatIpCidrRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
public CreateNatIpCidrRequest.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 client 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 CreateNatIpCidrRequest.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 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 CreateNatIpCidrRequest.Builder natGatewayId(String natGatewayId)
public CreateNatIpCidrRequest.Builder natIpCidr(String natIpCidr)
The new CIDR block must meet the following conditions: * The NAT CIDR block must fall within 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or their subnets. * The subnet mask must be 16 to 32 bits in length. * The NAT CIDR block cannot overlap with the private CIDR block of the VPC to which the NAT gateway belongs. If you want to use other IP addresses from the private CIDR block of the VPC to provide NAT services, create a vSwitch and attach the vSwitch to another VPC NAT gateway. * If you want to use public IP addresses to provide NAT services, make sure that the public IP addresses fall within a customer CIDR block of the VPC to which the VPC NAT gateway belongs. For more information, see [What is customer CIDR block?](~~185311~~).
public CreateNatIpCidrRequest.Builder natIpCidrDescription(String natIpCidrDescription)
The description must be 2 to 256 characters in length and start with a letter. The description cannot start with `http://` or `https://`.
public CreateNatIpCidrRequest.Builder natIpCidrName(String natIpCidrName)
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with `http://` or `https://`.
public CreateNatIpCidrRequest.Builder ownerAccount(String ownerAccount)
public CreateNatIpCidrRequest.Builder ownerId(Long ownerId)
public CreateNatIpCidrRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateNatIpCidrRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateNatIpCidrRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateNatIpCidrRequest build()
Copyright © 2024. All rights reserved.