public class CreateNatIpRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
String |
natGatewayId
The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
|
String |
natIp
The NAT IP address that you want to create.
|
String |
natIpCidr
The CIDR block to which the NAT IP address belongs.
|
String |
natIpDescription
The description of the NAT IP address.
|
String |
natIpName
The name of the NAT IP address.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the NAT gateway to which the NAT IP address that you want to create belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
CreateNatIpRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
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.
example: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.
5A2CFF0E-5718-45B5-9D4D-70B3FF3898
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
DryRunOperation
error code is returned.false
@NameInMap(value="NatGatewayId") public String natGatewayId
The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
This parameter is required.
example:ngw-gw8v16wgvtq26vh59****
@NameInMap(value="NatIp") public String natIp
The NAT IP address that you want to create.
If you do not specify an IP address, the system randomly allocates an IP address from the specified CIDR block.
example:192.168.0.34
@NameInMap(value="NatIpCidr") public String natIpCidr
The CIDR block to which the NAT IP address belongs.
This parameter is required.
example:192.168.0.0/24
@NameInMap(value="NatIpDescription") public String natIpDescription
The description of the NAT IP address.
The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http://
or https://
.
test
@NameInMap(value="NatIpName") public String natIpName
The name of the NAT IP address.
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://
.
newnatip
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the NAT gateway to which the NAT IP address that you want to create belongs.
You can call the DescribeRegions operation to query the most recent list of regions.
This parameter is required.
example:eu-central-1
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static CreateNatIpRequest build(Map<String,?> map) throws Exception
Exception
public CreateNatIpRequest setClientToken(String clientToken)
public String getClientToken()
public CreateNatIpRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateNatIpRequest setNatGatewayId(String natGatewayId)
public String getNatGatewayId()
public CreateNatIpRequest setNatIp(String natIp)
public String getNatIp()
public CreateNatIpRequest setNatIpCidr(String natIpCidr)
public String getNatIpCidr()
public CreateNatIpRequest setNatIpDescription(String natIpDescription)
public String getNatIpDescription()
public CreateNatIpRequest setNatIpName(String natIpName)
public String getNatIpName()
public CreateNatIpRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateNatIpRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateNatIpRequest setRegionId(String regionId)
public String getRegionId()
public CreateNatIpRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateNatIpRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.