public static final class CreateForwardEntryRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateForwardEntryRequest |
build() |
CreateForwardEntryRequest.Builder |
externalIp(String externalIp)
The elastic IP address (EIP) that is used to access the Internet.
|
CreateForwardEntryRequest.Builder |
externalPort(String externalPort)
The external port or port range that is used for port forwarding.
|
CreateForwardEntryRequest.Builder |
forwardEntryName(String forwardEntryName)
The name of the DNAT entry.
|
CreateForwardEntryRequest.Builder |
healthCheckPort(Integer healthCheckPort)
The probe port.
|
CreateForwardEntryRequest.Builder |
internalIp(String internalIp)
The private IP address of the instance that uses the DNAT entry for Internet communication.
|
CreateForwardEntryRequest.Builder |
internalPort(String internalPort)
The internal port or port range that is used for port forwarding.
|
CreateForwardEntryRequest.Builder |
ipProtocol(String ipProtocol)
The protocol.
|
CreateForwardEntryRequest.Builder |
natGatewayId(String natGatewayId)
The ID of the Network Address Translation (NAT) gateway.
|
CreateForwardEntryRequest.Builder |
standbyExternalIp(String standbyExternalIp)
The secondary EIP that is used to access the Internet.
|
public CreateForwardEntryRequest.Builder externalIp(String externalIp)
public CreateForwardEntryRequest.Builder externalPort(String externalPort)
* Valid values: 1 to 65535. * To specify a port range, separate the first port and the last port with a forward slash (/), such as 10/20. * If you set ExternalPort to a port range, you must also set InternalPort to a port range, and the number of ports specified must be the same for both parameters. For example, if you set ExternalPort to 10/20, you can set InternalPort to 80/90.
public CreateForwardEntryRequest.Builder forwardEntryName(String forwardEntryName)
public CreateForwardEntryRequest.Builder healthCheckPort(Integer healthCheckPort)
public CreateForwardEntryRequest.Builder internalIp(String internalIp)
public CreateForwardEntryRequest.Builder internalPort(String internalPort)
* Valid values: 1 to 65535. * To specify a port range, separate the first port and the last port with a forward slash (/), such as 10/20.
public CreateForwardEntryRequest.Builder ipProtocol(String ipProtocol)
* **TCP**: forwards TCP packets. * **UDP**: forwards UDP packets. * **Any** (default): forwards all packets.
public CreateForwardEntryRequest.Builder natGatewayId(String natGatewayId)
public CreateForwardEntryRequest.Builder standbyExternalIp(String standbyExternalIp)
public CreateForwardEntryRequest build()
Copyright © 2024. All rights reserved.