public class AddAcRuleRequest extends AbstractModel
| Constructor and Description | 
|---|
| AddAcRuleRequest() | 
| AddAcRuleRequest(AddAcRuleRequest 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 | getApplicationName()Get The Layer 7 protocol. | 
| String | getDescription()Get The description of access control rules. | 
| String | getDestContent()Get The destination address in the access control policy. | 
| String | getDestType()Get The type of destination address in access control rules. | 
| String | getDirection()Get The traffic direction for access control rules. | 
| String | getEnable()Get Indicates whether to enable the rules. | 
| String | getOrderIndex()Get -1: lowest priority; 1: highest priority | 
| String | getPort()Get The port to apply access control rules. | 
| String | getProtocol()Get The protocol type of traffic in access control rules. | 
| String | getRuleAction()Get The action that Cloud Firewall performs on the traffic. | 
| String | getSourceContent()Get The source address in the access control policy. | 
| String | getSourceType()Get The type of source address in access control rules. | 
| void | setApplicationName(String ApplicationName)Set The Layer 7 protocol. | 
| void | setDescription(String Description)Set The description of access control rules. | 
| void | setDestContent(String DestContent)Set The destination address in the access control policy. | 
| void | setDestType(String DestType)Set The type of destination address in access control rules. | 
| void | setDirection(String Direction)Set The traffic direction for access control rules. | 
| void | setEnable(String Enable)Set Indicates whether to enable the rules. | 
| void | setOrderIndex(String OrderIndex)Set -1: lowest priority; 1: highest priority | 
| void | setPort(String Port)Set The port to apply access control rules. | 
| void | setProtocol(String Protocol)Set The protocol type of traffic in access control rules. | 
| void | setRuleAction(String RuleAction)Set The action that Cloud Firewall performs on the traffic. | 
| void | setSourceContent(String SourceContent)Set The source address in the access control policy. | 
| void | setSourceType(String SourceType)Set The type of source address in access control rules. | 
| 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 AddAcRuleRequest()
public AddAcRuleRequest(AddAcRuleRequest source)
public String getOrderIndex()
public void setOrderIndex(String OrderIndex)
OrderIndex - -1: lowest priority; 1: highest prioritypublic String getRuleAction()
public void setRuleAction(String RuleAction)
RuleAction - The action that Cloud Firewall performs on the traffic. Valid values:
accept: allow
drop: deny
log: observepublic String getDirection()
public void setDirection(String Direction)
Direction - The traffic direction for access control rules. Valid values:
in: incoming traffic access control
out: outgoing traffic access controlpublic String getDescription()
public void setDescription(String Description)
Description - The description of access control rules.public String getSourceType()
public void setSourceType(String SourceType)
SourceType - The type of source address in access control rules. Valid values:
net: source IP or range (IP or CIDR)
location: source region
template: CFW address template
instance: instance ID
vendor: Cloud vendorpublic String getSourceContent()
public void setSourceContent(String SourceContent)
SourceContent - The source address in the access control policy. 
When `SourceType` is `net`, `SourceContent` is the source IP or CIDR block.
For example: 1.1.1.0/24
When `SourceType` is `template`, `SourceContent` must be the source address template ID.
When `SourceType` is `location`, `SourceContent` is the source region. 
For example, ["BJ11", "ZB"]
When `SourceType` is `instance`, `SourceContent` is the public IP of the instance.
For example, ins-xxxxx
When `SourceType` is `vendor`, `SourceContent` is the cloud service provider.
Values: `aws`, `huawei`, `tencent`, `aliyun`, `azure` and `all`.public String getDestType()
public void setDestType(String DestType)
DestType - The type of destination address in access control rules. Valid values:
net: destination IP or range (IP or CIDR)
location: source region
template: CFW address template
instance: instance ID
vendor: Cloud vendor
domain: Domain name or IP.public String getDestContent()
public void setDestContent(String DestContent)
DestContent - The destination address in the access control policy. 
When `DestType` is `net`, `DestContent` is the destination IP or CIDR block.
For example: 1.1.1.0/24
When `DestType` is `template`, `DestContent` is the destination address template ID.
When `DestType` is `location`, `DestContent` is the destination region. 
For example, ["BJ11", "ZB"]
When `DestType` is `instance`, `DestContent` is the public IP of the instance.
For example, ins-xxxxx
When `DestType` is `domain`, `DestContent` is the domain name associated with the instance.
For example, *.qq.com
When `DestType`, `DestContent` is the selected cloud service provider.
Values: `aws`, `huawei`, `tencent`, `aliyun`, `azure` and `all`.public String getPort()
public void setPort(String Port)
Port - The port to apply access control rules. Valid values:
-1/-1: all ports
80,443: 80 or 443public String getProtocol()
public void setProtocol(String Protocol)
Protocol - The protocol type of traffic in access control rules. Valid value: TCP. Only TCP is supported for edge firewall rules. If this parameter is not specified, it defaults to TCP.public String getApplicationName()
public void setApplicationName(String ApplicationName)
ApplicationName - The Layer 7 protocol. Valid values:
HTTP/HTTPS
TLS/SSLpublic String getEnable()
public void setEnable(String Enable)
Enable - Indicates whether to enable the rules. Default: enable. Valid values:
true: enable; false: disableCopyright © 2023. All rights reserved.