public class ConfigNetworkRulesRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
networkRules
The details of the port forwarding rule.
|
| 构造器和说明 |
|---|
ConfigNetworkRulesRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigNetworkRulesRequest |
build(Map<String,?> map) |
String |
getNetworkRules() |
ConfigNetworkRulesRequest |
setNetworkRules(String networkRules) |
@NameInMap(value="NetworkRules") public String networkRules
The details of the port forwarding rule. This parameter is a JSON string. The string contains the following fields:
You can modify only the value of RealServers when you modify a port forwarding rule.
This parameter is required.
example:[{"InstanceId":"ddoscoo-cn-mp91j1ao****","Protocol":"tcp","FrontendPort":8080,"BackendPort":8080,"RealServers":["1.1.1.1","2.2.2.2","3.3.3.3"]}]
public static ConfigNetworkRulesRequest build(Map<String,?> map) throws Exception
Exceptionpublic ConfigNetworkRulesRequest setNetworkRules(String networkRules)
public String getNetworkRules()
Copyright © 2026. All rights reserved.