public static final class CreateNatIpRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNatIpRequest |
build() |
CreateNatIpRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateNatIpRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
CreateNatIpRequest.Builder |
natGatewayId(String natGatewayId)
The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
|
CreateNatIpRequest.Builder |
natIp(String natIp)
The NAT IP address that you want to create.
|
CreateNatIpRequest.Builder |
natIpCidr(String natIpCidr)
The CIDR block to which the NAT IP address belongs.
|
CreateNatIpRequest.Builder |
natIpDescription(String natIpDescription)
The description of the NAT IP address.
|
CreateNatIpRequest.Builder |
natIpName(String natIpName)
The name of the NAT IP address.
|
CreateNatIpRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateNatIpRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateNatIpRequest.Builder |
regionId(String regionId)
The region ID of the NAT gateway to which the NAT IP address that you want to create belongs.
|
CreateNatIpRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateNatIpRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
public CreateNatIpRequest.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 CreateNatIpRequest.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 CreateNatIpRequest.Builder natGatewayId(String natGatewayId)
public CreateNatIpRequest.Builder natIp(String natIp)
If you do not specify an IP address, the system randomly allocates an IP address from the specified CIDR block.
public CreateNatIpRequest.Builder natIpCidr(String natIpCidr)
public CreateNatIpRequest.Builder natIpDescription(String natIpDescription)
The description must be 2 to 256 characters in length and start with a letter. The description cannot start with `http://` or `https://`.
public CreateNatIpRequest.Builder natIpName(String natIpName)
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 CreateNatIpRequest.Builder ownerAccount(String ownerAccount)
public CreateNatIpRequest.Builder ownerId(Long ownerId)
public CreateNatIpRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent list of regions.
public CreateNatIpRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateNatIpRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateNatIpRequest build()
Copyright © 2024. All rights reserved.