public class CreatePortRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
backendPort
The port of the origin server.
|
String |
frontendPort
The forwarding port.
|
String |
frontendProtocol
The type of the forwarding protocol.
|
String |
instanceId
The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs.
|
Long |
proxyEnable |
List<String> |
realServers
An array that consists of the IP addresses of origin servers.
|
| 构造器和说明 |
|---|
CreatePortRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreatePortRequest |
build(Map<String,?> map) |
String |
getBackendPort() |
String |
getFrontendPort() |
String |
getFrontendProtocol() |
String |
getInstanceId() |
Long |
getProxyEnable() |
List<String> |
getRealServers() |
CreatePortRequest |
setBackendPort(String backendPort) |
CreatePortRequest |
setFrontendPort(String frontendPort) |
CreatePortRequest |
setFrontendProtocol(String frontendProtocol) |
CreatePortRequest |
setInstanceId(String instanceId) |
CreatePortRequest |
setProxyEnable(Long proxyEnable) |
CreatePortRequest |
setRealServers(List<String> realServers) |
@NameInMap(value="BackendPort") public String backendPort
The port of the origin server. Valid values: 0 to 65535.
example:55
@NameInMap(value="FrontendPort") public String frontendPort
The forwarding port. Valid values: 0 to 65535.
This parameter is required.
example:55
@NameInMap(value="FrontendProtocol") public String frontendProtocol
The type of the forwarding protocol. Valid values:
This parameter is required.
example:tcp
@NameInMap(value="InstanceId") public String instanceId
The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs.
You can call the DescribeInstanceIds operation to query the IDs of all instances.
This parameter is required.
example:ddoscoo-cn-st21zbyq****
@NameInMap(value="ProxyEnable") public Long proxyEnable
public static CreatePortRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreatePortRequest setBackendPort(String backendPort)
public String getBackendPort()
public CreatePortRequest setFrontendPort(String frontendPort)
public String getFrontendPort()
public CreatePortRequest setFrontendProtocol(String frontendProtocol)
public String getFrontendProtocol()
public CreatePortRequest setInstanceId(String instanceId)
public String getInstanceId()
public CreatePortRequest setProxyEnable(Long proxyEnable)
public Long getProxyEnable()
public CreatePortRequest setRealServers(List<String> realServers)
Copyright © 2026. All rights reserved.