public class PolicyRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| PolicyRule() | 
| PolicyRule(PolicyRule 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAction()Get 策略,ACCEPT或者DROP | 
| String | getAddressModule()Get IP地址ID或者ID地址组ID。 | 
| String | getCidrIp()Get 来源Ip或Ip段,例如192.168.0.0/16 | 
| String | getDesc()Get 描述 | 
| String | getId()Get id | 
| String | getIpProtocol()Get 网络协议,支持udp、tcp等 | 
| String | getPortRange()Get 端口 | 
| String | getServiceModule()Get 协议端口ID或者协议端口组ID。 | 
| void | setAction(String Action)Set 策略,ACCEPT或者DROP | 
| void | setAddressModule(String AddressModule)Set IP地址ID或者ID地址组ID。 | 
| void | setCidrIp(String CidrIp)Set 来源Ip或Ip段,例如192.168.0.0/16 | 
| void | setDesc(String Desc)Set 描述 | 
| void | setId(String Id)Set id | 
| void | setIpProtocol(String IpProtocol)Set 网络协议,支持udp、tcp等 | 
| void | setPortRange(String PortRange)Set 端口 | 
| void | setServiceModule(String ServiceModule)Set 协议端口ID或者协议端口组ID。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic PolicyRule()
public PolicyRule(PolicyRule source)
public String getAction()
public void setAction(String Action)
Action - 策略,ACCEPT或者DROPpublic String getCidrIp()
public void setCidrIp(String CidrIp)
CidrIp - 来源Ip或Ip段,例如192.168.0.0/16public String getPortRange()
public void setPortRange(String PortRange)
PortRange - 端口public String getIpProtocol()
public void setIpProtocol(String IpProtocol)
IpProtocol - 网络协议,支持udp、tcp等public String getServiceModule()
public void setServiceModule(String ServiceModule)
ServiceModule - 协议端口ID或者协议端口组ID。public String getAddressModule()
public void setAddressModule(String AddressModule)
AddressModule - IP地址ID或者ID地址组ID。public String getId()
public void setId(String Id)
Id - idpublic String getDesc()
public void setDesc(String Desc)
Desc - 描述Copyright © 2025. All rights reserved.