public static final class CreateNetworkRulesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNetworkRulesRequest |
build() |
CreateNetworkRulesRequest.Builder |
networkRules(String networkRules)
The details of the port forwarding rule.
|
CreateNetworkRulesRequest.Builder |
regionId(String regionId)
RegionId.
|
public CreateNetworkRulesRequest.Builder regionId(String regionId)
public CreateNetworkRulesRequest.Builder networkRules(String networkRules)
* **InstanceId**: the ID of the instance. This field is required and must be of the STRING type. * **Protocol**: the forwarding protocol. This field is required and must be of the STRING type. Valid values: **tcp** and **udp**. * **FrontendPort**: the forwarding port. This field is required and must be of the INTEGER type. * **BackendPort**: the port of the origin server. This field is required and must be of the INTEGER type. * **RealServers**: the IP addresses of the origin server. This field is required and must be a JSON array. You can specify up to 20 IP addresses.
public CreateNetworkRulesRequest build()
Copyright © 2023. All rights reserved.