public class DescribeEnterpriseSecurityGroupRuleRequest extends AbstractModel
| Constructor and Description | 
|---|
| DescribeEnterpriseSecurityGroupRuleRequest() | 
| DescribeEnterpriseSecurityGroupRuleRequest(DescribeEnterpriseSecurityGroupRuleRequest 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 | getDescription()Get Rule description. | 
| String | getDestContent()Get Destination example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
Wildcards are supported. | 
| String | getEnable()Get Indicates whether to enable the rules. | 
| String | getPageNo()Get Page number of the current page displayed for query by page number. | 
| String | getPageSize()Get Maximum number of entries per page displayed for query by page number. | 
| String | getPort()Get The port to apply access control rules. | 
| String | getProtocol()Get Protocol. | 
| String | getRuleAction()Get The action that Cloud Firewall performs on the traffic. | 
| String | getServiceTemplateId()Get Parameter template ID of port and protocol type; mutually exclusive with Protocol and Port | 
| String | getSourceContent()Get Source example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
Wildcards are supported. | 
| void | setDescription(String Description)Set Rule description. | 
| void | setDestContent(String DestContent)Set Destination example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
Wildcards are supported. | 
| void | setEnable(String Enable)Set Indicates whether to enable the rules. | 
| void | setPageNo(String PageNo)Set Page number of the current page displayed for query by page number. | 
| void | setPageSize(String PageSize)Set Maximum number of entries per page displayed for query by page number. | 
| void | setPort(String Port)Set The port to apply access control rules. | 
| void | setProtocol(String Protocol)Set Protocol. | 
| void | setRuleAction(String RuleAction)Set The action that Cloud Firewall performs on the traffic. | 
| void | setServiceTemplateId(String ServiceTemplateId)Set Parameter template ID of port and protocol type; mutually exclusive with Protocol and Port | 
| void | setSourceContent(String SourceContent)Set Source example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
Wildcards are supported. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic DescribeEnterpriseSecurityGroupRuleRequest()
public DescribeEnterpriseSecurityGroupRuleRequest(DescribeEnterpriseSecurityGroupRuleRequest source)
public String getPageNo()
public void setPageNo(String PageNo)
PageNo - Page number of the current page displayed for query by page number.
1 by default.public String getPageSize()
public void setPageSize(String PageSize)
PageSize - Maximum number of entries per page displayed for query by page number.
Maximum value: 50.public String getSourceContent()
public void setSourceContent(String SourceContent)
SourceContent - Source example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
Wildcards are supported.public String getDestContent()
public void setDestContent(String DestContent)
DestContent - Destination example:
net: IP/CIDR (192.168.0.2)
template: parameter template (ipm-dyodhpby)
instance: asset instance (ins-123456)
resourcegroup: asset group (/all groups/group 1/subgroup 1)
tag: resource tag ({"Key":"tag key","Value":"tag value"})
region: region (ap-gaungzhou)
Wildcards are supported.public String getDescription()
public void setDescription(String Description)
Description - Rule description. Wildcards are supported.public String getRuleAction()
public void setRuleAction(String RuleAction)
RuleAction - The action that Cloud Firewall performs on the traffic. Valid values:
accept: allow
drop: denypublic String getEnable()
public void setEnable(String Enable)
Enable - Indicates whether to enable the rules. Default: enable. Valid values:
true: enable; false: disablepublic String getPort()
public void setPort(String Port)
Port - The port to apply access control rules. Valid values:
-1/-1: all ports
80: port 80public String getProtocol()
public void setProtocol(String Protocol)
Protocol - Protocol. TCP/UDP/ICMP/ANYpublic String getServiceTemplateId()
public void setServiceTemplateId(String ServiceTemplateId)
ServiceTemplateId - Parameter template ID of port and protocol type; mutually exclusive with Protocol and PortCopyright © 2023. All rights reserved.