public static final class ModifyForwardEntryRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyForwardEntryRequest |
build() |
ModifyForwardEntryRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
ModifyForwardEntryRequest.Builder |
externalIp(String externalIp)
* When you modify DNAT entries of Internet NAT gateways, this parameter specifies the elastic IP addresses (EIPs) that are used to access the Internet.
|
ModifyForwardEntryRequest.Builder |
externalPort(String externalPort)
* The external port that is used to forward traffic when you modify DNAT entries of Internet NAT gateways.
|
ModifyForwardEntryRequest.Builder |
forwardEntryId(String forwardEntryId)
The ID of the DNAT entry.
|
ModifyForwardEntryRequest.Builder |
forwardEntryName(String forwardEntryName)
The new name of the DNAT entry.
|
ModifyForwardEntryRequest.Builder |
forwardTableId(String forwardTableId)
The ID of the DNAT table to which the DNAT entry belongs.
|
ModifyForwardEntryRequest.Builder |
internalIp(String internalIp)
* The private IP address of the ECS instance that uses DNAT entries to communicate with the Internet when you modify DNAT entries of Internet NAT gateways.
|
ModifyForwardEntryRequest.Builder |
internalPort(String internalPort)
* The internal port or port range that is used to forward traffic when you modify DNAT entries of Internet NAT gateways.
|
ModifyForwardEntryRequest.Builder |
ipProtocol(String ipProtocol)
The protocol.
|
ModifyForwardEntryRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyForwardEntryRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyForwardEntryRequest.Builder |
portBreak(Boolean portBreak)
Specifies whether to remove limits on the port range.
|
ModifyForwardEntryRequest.Builder |
regionId(String regionId)
The region ID of the NAT gateway.
|
ModifyForwardEntryRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyForwardEntryRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
public ModifyForwardEntryRequest.Builder clientToken(String clientToken)
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. > 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.
public ModifyForwardEntryRequest.Builder externalIp(String externalIp)
* When you modify DNAT entries of Virtual Private Cloud (VPC) NAT gateways, this parameter specifies the NAT IP addresses that are accessed by external networks.
public ModifyForwardEntryRequest.Builder externalPort(String externalPort)
* Valid values: **1** to **65535**. * If you want to modify the port range, separate port numbers with a forward slash (/), such as `10/20`. * If you need to modify **ExternalPort** and **InternalPort** at the same time, and **ExternalPort** specifies a port range, make sure that **InternalPort** also specifies a port range, and both ranges specify the same number of ports. For example, you can set **ExternalPort** to `10/20` and **InternalPort** to `80/90`. * The port that is accessed by external networks when you modify DNAT entries of VPC NAT gateways. Valid values: **1** to **65535**.
public ModifyForwardEntryRequest.Builder forwardEntryId(String forwardEntryId)
public ModifyForwardEntryRequest.Builder forwardEntryName(String forwardEntryName)
The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`.
public ModifyForwardEntryRequest.Builder forwardTableId(String forwardTableId)
public ModifyForwardEntryRequest.Builder internalIp(String internalIp)
* The private IP address that uses DNAT entries to communicate when you modify DNAT entries of VPC NAT gateways.
public ModifyForwardEntryRequest.Builder internalPort(String internalPort)
* The port of the destination ECS instance to be mapped when you modify DNAT entries of VPC NAT gateways. Valid values: **1** to **65535**.
public ModifyForwardEntryRequest.Builder ipProtocol(String ipProtocol)
* **TCP** * **UDP** * **Any**
public ModifyForwardEntryRequest.Builder ownerAccount(String ownerAccount)
public ModifyForwardEntryRequest.Builder ownerId(Long ownerId)
public ModifyForwardEntryRequest.Builder portBreak(Boolean portBreak)
* **true** * **false** If an SNAT entry and a DNAT entry use the same public IP address, and you want to specify a port number greater than `1024`, set `PortBreak` to `true`.
public ModifyForwardEntryRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public ModifyForwardEntryRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyForwardEntryRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyForwardEntryRequest build()
Copyright © 2024. All rights reserved.