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 Policy, which can be `ACCEPT` or `DROP` 
 | 
String | 
getAddressModule()
Get IP address ID or IP address group ID. 
 | 
String | 
getCidrIp()
Get Source IP or source IP range, such as 192.168.0.0/16 
 | 
String | 
getDesc()
Get Description 
 | 
String | 
getId()
Get id 
 | 
String | 
getIpProtocol()
Get Network protocol, such as UDP and TCP 
 | 
String | 
getPortRange()
Get Port 
 | 
String | 
getServiceModule()
Get Protocol port ID or protocol port group ID. 
 | 
void | 
setAction(String Action)
Set Policy, which can be `ACCEPT` or `DROP` 
 | 
void | 
setAddressModule(String AddressModule)
Set IP address ID or IP address group ID. 
 | 
void | 
setCidrIp(String CidrIp)
Set Source IP or source IP range, such as 192.168.0.0/16 
 | 
void | 
setDesc(String Desc)
Set Description 
 | 
void | 
setId(String Id)
Set id 
 | 
void | 
setIpProtocol(String IpProtocol)
Set Network protocol, such as UDP and TCP 
 | 
void | 
setPortRange(String PortRange)
Set Port 
 | 
void | 
setServiceModule(String ServiceModule)
Set Protocol port ID or protocol port group 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 - Policy, which can be `ACCEPT` or `DROP`public String getCidrIp()
public void setCidrIp(String CidrIp)
CidrIp - Source IP or source IP range, such as 192.168.0.0/16public String getPortRange()
public void setPortRange(String PortRange)
PortRange - Portpublic String getIpProtocol()
public void setIpProtocol(String IpProtocol)
IpProtocol - Network protocol, such as UDP and TCPpublic String getServiceModule()
public void setServiceModule(String ServiceModule)
ServiceModule - Protocol port ID or protocol port group ID.public String getAddressModule()
public void setAddressModule(String AddressModule)
AddressModule - IP address ID or IP address group ID.public String getId()
public void setId(String Id)
Id - idpublic String getDesc()
public void setDesc(String Desc)
Desc - DescriptionCopyright © 2025. All rights reserved.