public class CreateNetworkRulesRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
networkRules
The details of the port forwarding rule.
|
| 构造器和说明 |
|---|
CreateNetworkRulesRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateNetworkRulesRequest |
build(Map<String,?> map) |
String |
getNetworkRules() |
CreateNetworkRulesRequest |
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:
This parameter is required.
example:[{"InstanceId":"ddoscoo-cn-mp91j1ao****","Protocol":"tcp","FrontendPort":8080,"BackendPort":8080,"RealServers":["1.1.1.1","2.2.2.2"]}]
public static CreateNetworkRulesRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateNetworkRulesRequest setNetworkRules(String networkRules)
public String getNetworkRules()
Copyright © 2026. All rights reserved.