public class CreateSnatEntryRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Integer |
eipAffinity
Specifies whether to enable EIP affinity.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the NAT gateway.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
snatEntryName
The name of the SNAT entry.
|
String |
snatIp
The EIPs in the SNAT entry when you add an SNAT entry to an Internet NAT gateway.
|
String |
snatTableId
The ID of the SNAT table.
|
String |
sourceCIDR
You can specify the CIDR block of a VPC, a vSwitch, or an ECS instance or enter a custom CIDR block.
|
String |
sourceVSwitchId
The ID of the vSwitch.
|
构造器和说明 |
---|
CreateSnatEntryRequest() |
@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.
**
Description 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.
example:02fb3da4-130e-11e9-8e44****
@NameInMap(value="EipAffinity") public Integer eipAffinity
Specifies whether to enable EIP affinity. Valid values:
**
Description After you enable EIP affinity, if multiple EIPs are associated with an SNAT entry, each client uses one EIP to access the Internet. If EIP affinity is disabled, each client uses a random EIP to access the Internet.
example:1
@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.
You can call the DescribeRegions operation to query the most recent region list.
Valid values:
ap-northeast-2-pop
:
ap-northeast-2-pop
.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SnatEntryName") public String snatEntryName
The name of the SNAT entry.
The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http://
or https://
.
SnatEntry-1
@NameInMap(value="SnatIp") public String snatIp
If you specify multiple EIPs in the SNAT IP address pool, the service connection is allocated to multiple EIPs by using the hashing algorithm. The traffic of each EIP may be different. Therefore, we recommend that you associate the EIPs with an Internet Shared Bandwidth instance to prevent service interruptions caused by bandwidth exhaustion.
This parameter is required.
example:47.98.XX.XX
@NameInMap(value="SnatTableId") public String snatTableId
The ID of the SNAT table.
This parameter is required.
example:stb-bp190wu8io1vgev****
@NameInMap(value="SourceCIDR") public String sourceCIDR
You can specify the CIDR block of a VPC, a vSwitch, or an ECS instance or enter a custom CIDR block.
You can specify an SNAT entry in the following ways:
When you add an SNAT entry to an Internet NAT gateway, if SnatIp is set to an EIP, the ECS instance uses the specified EIP to access the Internet.
If SnatIp is set to multiple EIPs, the ECS instance randomly selects an EIP specified in the SnatIp parameter to access the Internet.
You cannot specify this parameter and SourceVSwtichId at the same time. If SourceVSwitchId is specified, you cannot specify SourceCIDR. If SourceCIDR is specified, you cannot specify SourceVSwitchId.
example:10.1.1.0/24
@NameInMap(value="SourceVSwitchId") public String sourceVSwitchId
The ID of the vSwitch.
vsw-bp1nhx2s9ui5o****
public static CreateSnatEntryRequest build(Map<String,?> map) throws Exception
Exception
public CreateSnatEntryRequest setClientToken(String clientToken)
public String getClientToken()
public CreateSnatEntryRequest setEipAffinity(Integer eipAffinity)
public Integer getEipAffinity()
public CreateSnatEntryRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateSnatEntryRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSnatEntryRequest setRegionId(String regionId)
public String getRegionId()
public CreateSnatEntryRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateSnatEntryRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateSnatEntryRequest setSnatEntryName(String snatEntryName)
public String getSnatEntryName()
public CreateSnatEntryRequest setSnatIp(String snatIp)
public String getSnatIp()
public CreateSnatEntryRequest setSnatTableId(String snatTableId)
public String getSnatTableId()
public CreateSnatEntryRequest setSourceCIDR(String sourceCIDR)
public String getSourceCIDR()
public CreateSnatEntryRequest setSourceVSwitchId(String sourceVSwitchId)
public String getSourceVSwitchId()
Copyright © 2024. All rights reserved.