public static final class CreatePortRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreatePortRequest.Builder |
backendPort(String backendPort)
The port of the origin server.
|
CreatePortRequest |
build() |
CreatePortRequest.Builder |
frontendPort(String frontendPort)
The forwarding port.
|
CreatePortRequest.Builder |
frontendProtocol(String frontendProtocol)
The type of the forwarding protocol.
|
CreatePortRequest.Builder |
instanceId(String instanceId)
The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs.
|
CreatePortRequest.Builder |
proxyEnable(Long proxyEnable)
ProxyEnable.
|
CreatePortRequest.Builder |
realServers(List<String> realServers)
An array that consists of the IP addresses of origin servers.
|
CreatePortRequest.Builder |
regionId(String regionId)
RegionId.
|
public CreatePortRequest.Builder regionId(String regionId)
public CreatePortRequest.Builder backendPort(String backendPort)
The port of the origin server. Valid values: 0 to 65535.
example:55
public CreatePortRequest.Builder frontendPort(String frontendPort)
The forwarding port. Valid values: 0 to 65535.
This parameter is required.
example:55
public CreatePortRequest.Builder frontendProtocol(String frontendProtocol)
The type of the forwarding protocol. Valid values:
This parameter is required.
example:tcp
public CreatePortRequest.Builder instanceId(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****
public CreatePortRequest.Builder proxyEnable(Long proxyEnable)
public CreatePortRequest.Builder realServers(List<String> realServers)
An array that consists of the IP addresses of origin servers.
This parameter is required.
public CreatePortRequest build()
Copyright © 2026. All rights reserved.