public class CreateNatGatewayRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateNatGatewayRequest.CreateNatGatewayRequestTag |
限定符和类型 | 字段和说明 |
---|---|
Boolean |
autoPay
Subscription Internet NAT gateways are no longer available for purchase.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the NAT gateway.
|
String |
duration
Subscription Internet NAT gateways are no longer available for purchase.
|
String |
eipBindMode
The mode in which the EIP is associated with the NAT gateway.
|
Boolean |
icmpReplyEnabled
Specifies whether to enable ICMP retrieval.
|
String |
instanceChargeType
The billing method of the NAT gateway.
|
String |
internetChargeType
The metering method of the NAT gateway.
|
String |
name
The name of the NAT gateway.
|
String |
natType
The type of NAT gateway.
|
String |
networkType
The network type of the NAT gateway.
|
String |
ownerAccount |
Long |
ownerId |
String |
pricingCycle
Subscription Internet NAT gateways are no longer available for purchase.
|
String |
regionId
The region ID of the NAT gateway.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Boolean |
securityProtectionEnabled
已过时。
|
String |
spec
Subscription Internet NAT gateways are no longer available for purchase.
|
List<CreateNatGatewayRequest.CreateNatGatewayRequestTag> |
tag
The tags.
|
String |
vpcId
The ID of the VPC where you want to create the NAT gateway.
|
String |
vSwitchId
The ID of the vSwitch to which the NAT gateway is attached.
|
构造器和说明 |
---|
CreateNatGatewayRequest() |
@NameInMap(value="AutoPay") public Boolean autoPay
Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.
example:Invalid parameter.
@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.
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="Description") public String description
The description of the NAT gateway.
You can leave this parameter empty or enter a description. If you enter a description, the description must be 2 to 256 characters in length and cannot start with http://
or https://
.
testnat
@NameInMap(value="Duration") public String duration
Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.
example:Invalid parameter.
@NameInMap(value="EipBindMode") public String eipBindMode
The mode in which the EIP is associated with the NAT gateway. Valid values:
MULTI_BINDED (default): Multi-EIP-to-ENI mode.
NAT: NAT mode. IPv4 gateways are supported in this mode.
**
Note If a NAT gateway is associated with an EIP in NAT mode, the EIP occupies one private IP address in the vSwitch. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the NAT gateway fails to be associated with the EIP. In NAT mode, a maximum number of 50 EIPs can be associated with each NAT gateway.
MULTI_BINDED
@NameInMap(value="IcmpReplyEnabled") public Boolean icmpReplyEnabled
Specifies whether to enable ICMP retrieval. Valid values:
false
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the NAT gateway.
Set the value to PostPaid (pay-as-you-go), which is the default value.
For more information, see Internet NAT gateway billing and VPC NAT gateway billing.
example:PostPaid
@NameInMap(value="InternetChargeType") public String internetChargeType
The metering method of the NAT gateway. Set the value to PayByLcu, which specifies the pay-by-CU metering method.
example:PayByLcu
@NameInMap(value="Name") public String name
The name of the NAT gateway.
The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
If this parameter is not set, the system assigns a default name to the NAT gateway.
example:fortest
@NameInMap(value="NatType") public String natType
The type of NAT gateway. Set the value to Enhanced, which specifies enhanced NAT gateway.
example:Enhanced
@NameInMap(value="NetworkType") public String networkType
The network type of the NAT gateway. Valid values:
internet
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PricingCycle") public String pricingCycle
Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.
example:Invalid parameter.
@NameInMap(value="RegionId") public String regionId
The region ID of the NAT gateway.
You can call the DescribeRegions operation to obtain the region ID.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityProtectionEnabled") @Deprecated public Boolean securityProtectionEnabled
Specifies whether to enable the firewall feature. Valid values:
false
@NameInMap(value="Spec") public String spec
Subscription Internet NAT gateways are no longer available for purchase. Ignore this parameter.
example:Invalid parameter.
@NameInMap(value="Tag") public List<CreateNatGatewayRequest.CreateNatGatewayRequestTag> tag
The tags.
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch to which the NAT gateway is attached.
When you create a NAT gateway, you must specify a vSwitch for the NAT gateway. Then, the system assigns an idle private IP address from the vSwitch to the NAT gateway.
example:You can call the ListEnhanhcedNatGatewayAvailableZones operation to query zones that support NAT gateways. You can call the DescribeVSwitches operation to query idle IP addresses in a vSwitch.
vsw-bp1e3se98n9fq8hle****
@NameInMap(value="VpcId") public String vpcId
The ID of the VPC where you want to create the NAT gateway.
This parameter is required.
example:vpc-bp1di7uewzmtvfuq8****
public static CreateNatGatewayRequest build(Map<String,?> map) throws Exception
Exception
public CreateNatGatewayRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public CreateNatGatewayRequest setClientToken(String clientToken)
public String getClientToken()
public CreateNatGatewayRequest setDescription(String description)
public String getDescription()
public CreateNatGatewayRequest setDuration(String duration)
public String getDuration()
public CreateNatGatewayRequest setEipBindMode(String eipBindMode)
public String getEipBindMode()
public CreateNatGatewayRequest setIcmpReplyEnabled(Boolean icmpReplyEnabled)
public Boolean getIcmpReplyEnabled()
public CreateNatGatewayRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateNatGatewayRequest setInternetChargeType(String internetChargeType)
public String getInternetChargeType()
public CreateNatGatewayRequest setName(String name)
public String getName()
public CreateNatGatewayRequest setNatType(String natType)
public String getNatType()
public CreateNatGatewayRequest setNetworkType(String networkType)
public String getNetworkType()
public CreateNatGatewayRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateNatGatewayRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateNatGatewayRequest setPricingCycle(String pricingCycle)
public String getPricingCycle()
public CreateNatGatewayRequest setRegionId(String regionId)
public String getRegionId()
public CreateNatGatewayRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateNatGatewayRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateNatGatewayRequest setSecurityProtectionEnabled(Boolean securityProtectionEnabled)
public Boolean getSecurityProtectionEnabled()
public CreateNatGatewayRequest setSpec(String spec)
public String getSpec()
public CreateNatGatewayRequest setTag(List<CreateNatGatewayRequest.CreateNatGatewayRequestTag> tag)
public List<CreateNatGatewayRequest.CreateNatGatewayRequestTag> getTag()
public CreateNatGatewayRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateNatGatewayRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2024. All rights reserved.