| Package | Description | 
|---|---|
| com.tencentcloudapi.waf.v20180125.models | 
| Modifier and Type | Method and Description | 
|---|---|
| PortItem[] | AddSpartaProtectionRequest. getPorts()Get Service port list configuration
NginxServerId: fill in '0' in this function
Port: listening port number
Protocol: port protocol
UpstreamPort: same as Port
UpstreamProtocol: same as Protocol | 
| PortItem[] | DescribeSpartaProtectionInfoResponse. getPorts()Get Port information | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AddSpartaProtectionRequest. setPorts(PortItem[] Ports)Set Service port list configuration
NginxServerId: fill in '0' in this function
Port: listening port number
Protocol: port protocol
UpstreamPort: same as Port
UpstreamProtocol: same as Protocol | 
| void | DescribeSpartaProtectionInfoResponse. setPorts(PortItem[] Ports)Set Port information | 
| Constructor and Description | 
|---|
| PortItem(PortItem source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
Copyright © 2025. All rights reserved.