public class CreateForwardEntryRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
externalIp
The EIP that can be accessed over the Internet when you configure a DNAT entry for an Internet NAT gateway.
|
String |
externalPort
The external port range that is used for port forwarding when you configure a DNAT entry for an Internet NAT gateway.
|
String |
forwardEntryName
The name of the DNAT entry.
|
String |
forwardTableId
The ID of the DNAT table.
|
String |
internalIp
The private IP address of the ECS instance that needs to communicate with the Internet when you configure a DNAT entry for an Internet NAT gateway.
|
String |
internalPort
The internal port or port range that is used for port forwarding when you configure a DNAT entry for an Internet NAT gateway.
|
String |
ipProtocol
The protocol.
|
String |
ownerAccount |
Long |
ownerId |
Boolean |
portBreak
Specifies whether to remove limits on the port range.
|
String |
regionId
The region ID of the NAT gateway.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
CreateForwardEntryRequest() |
@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 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.
0c593ea1-3bea-11e9-b96b-88e9fe6****
@NameInMap(value="ExternalIp") public String externalIp
This parameter is required.
example:116.28.XX.XX
@NameInMap(value="ExternalPort") public String externalPort
The external port range that is used for port forwarding when you configure a DNAT entry for an Internet NAT gateway.
10/20
.10/20
, you can set InternalPort to 80/90
.The port that can be accessed by external networks when you configure a DNAT entry for a VPC NAT gateway. Valid values: 1 to 65535.
This parameter is required.
example:8080
@NameInMap(value="ForwardEntryName") public String forwardEntryName
The name of the DNAT entry.
The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http://
or https://
.
ForwardEntry-1
@NameInMap(value="ForwardTableId") public String forwardTableId
The ID of the DNAT table.
This parameter is required.
example:ftb-bp1mbjubq34hlcqpa****
@NameInMap(value="InternalIp") public String internalIp
The private IP address of the ECS instance that needs to communicate with the Internet when you configure a DNAT entry for an Internet NAT gateway. The private IP address must meet the following requirements:
The private IP address that uses DNAT when you add a DNAT entry to a VPC NAT gateway.
This parameter is required.
example:192.168.XX.XX
@NameInMap(value="InternalPort") public String internalPort
This parameter is required.
example:80
@NameInMap(value="IpProtocol") public String ipProtocol
The protocol. Valid values:
This parameter is required.
example:TCP
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PortBreak") public Boolean portBreak
Specifies whether to remove limits on the port range. Valid values:
example:If a DNAT entry and an SNAT entry have the same public IP address, ou must specify a port that is larger that 1024, and set PortBreak to true.
false
@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
public static CreateForwardEntryRequest build(Map<String,?> map) throws Exception
Exception
public CreateForwardEntryRequest setClientToken(String clientToken)
public String getClientToken()
public CreateForwardEntryRequest setExternalIp(String externalIp)
public String getExternalIp()
public CreateForwardEntryRequest setExternalPort(String externalPort)
public String getExternalPort()
public CreateForwardEntryRequest setForwardEntryName(String forwardEntryName)
public String getForwardEntryName()
public CreateForwardEntryRequest setForwardTableId(String forwardTableId)
public String getForwardTableId()
public CreateForwardEntryRequest setInternalIp(String internalIp)
public String getInternalIp()
public CreateForwardEntryRequest setInternalPort(String internalPort)
public String getInternalPort()
public CreateForwardEntryRequest setIpProtocol(String ipProtocol)
public String getIpProtocol()
public CreateForwardEntryRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateForwardEntryRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateForwardEntryRequest setPortBreak(Boolean portBreak)
public Boolean getPortBreak()
public CreateForwardEntryRequest setRegionId(String regionId)
public String getRegionId()
public CreateForwardEntryRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateForwardEntryRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.