public static final class DescribeControlPolicyResponseBody.Policys.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeControlPolicyResponseBody.Policys.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
DescribeControlPolicyResponseBody.Policys.Builder |
aclUuid(String aclUuid)
The unique ID of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
applicationId(String applicationId)
The application ID in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
applicationName(String applicationName)
The type of the application that the access control policy supports.
|
DescribeControlPolicyResponseBody.Policys.Builder |
applicationNameList(List<String> applicationNameList)
The names of applications.
|
DescribeControlPolicyResponseBody.Policys |
build() |
DescribeControlPolicyResponseBody.Policys.Builder |
createTime(Long createTime)
The time at which the access control policy was created.
|
DescribeControlPolicyResponseBody.Policys.Builder |
description(String description)
The description of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destination(String destination)
The destination address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destinationGroupCidrs(List<String> destinationGroupCidrs)
The CIDR blocks in the destination address book.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destinationGroupType(String destinationGroupType)
The type of the destination address book in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPortGroupPorts(List<String> destPortGroupPorts)
The ports in the destination port address book.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
direction(String direction)
The direction of the traffic to which the access control policy applies.
|
DescribeControlPolicyResponseBody.Policys.Builder |
dnsResult(String dnsResult)
The DNS resolution result.
|
DescribeControlPolicyResponseBody.Policys.Builder |
dnsResultTime(Long dnsResultTime)
The timestamp of the DNS resolution result.
|
DescribeControlPolicyResponseBody.Policys.Builder |
hitLastTime(Long hitLastTime)
The timestamp when the access control policy was last hit.
|
DescribeControlPolicyResponseBody.Policys.Builder |
hitTimes(Long hitTimes)
The number of hits for the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
ipVersion(Integer ipVersion)
The IP version of the address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
modifyTime(Long modifyTime)
The time at which the access control policy was modified.
|
DescribeControlPolicyResponseBody.Policys.Builder |
order(Integer order)
The priority of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
proto(String proto)
The type of the protocol in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
release(String release)
Indicates whether the access control policy is enabled.
|
DescribeControlPolicyResponseBody.Policys.Builder |
source(String source)
The source address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
sourceGroupCidrs(List<String> sourceGroupCidrs)
The CIDR blocks in the source address book.
|
DescribeControlPolicyResponseBody.Policys.Builder |
sourceGroupType(String sourceGroupType)
The type of the source address book in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
spreadCnt(Integer spreadCnt)
The total quota consumed by the returned access control policies, which is the sum of the quota consumed by each policy.
|
public DescribeControlPolicyResponseBody.Policys.Builder aclAction(String aclAction)
* **accept**: allows the traffic. * **drop**: denies the traffic. * **log**: monitors the traffic.
public DescribeControlPolicyResponseBody.Policys.Builder aclUuid(String aclUuid)
public DescribeControlPolicyResponseBody.Policys.Builder applicationId(String applicationId)
public DescribeControlPolicyResponseBody.Policys.Builder applicationName(String applicationName)
* **FTP** * **HTTP** * **HTTPS** * **Memcache** * **MongoDB** * **MQTT** * **MySQL** * **RDP** * **Redis** * **SMTP** * **SMTPS** * **SSH** * **SSL** * **VNC** * **ANY**: all types of applications
public DescribeControlPolicyResponseBody.Policys.Builder applicationNameList(List<String> applicationNameList)
public DescribeControlPolicyResponseBody.Policys.Builder createTime(Long createTime)
public DescribeControlPolicyResponseBody.Policys.Builder description(String description)
public DescribeControlPolicyResponseBody.Policys.Builder destPort(String destPort)
public DescribeControlPolicyResponseBody.Policys.Builder destPortGroup(String destPortGroup)
public DescribeControlPolicyResponseBody.Policys.Builder destPortGroupPorts(List<String> destPortGroupPorts)
public DescribeControlPolicyResponseBody.Policys.Builder destPortType(String destPortType)
* **port**: port * **group**: port address book
public DescribeControlPolicyResponseBody.Policys.Builder destination(String destination)
* If **DestinationType** is set to **net**, the value of Destination is a CIDR block. Example: 192.0.XX.XX/24. * If **DestinationType** is set to **domain**, the value of Destination is a domain name. Example: aliyuncs.com. * If **DestinationType** is set to **group**, the value of Destination is the name of an address book. Example: db_group. * If **DestinationType** is set to **location**, the value of Destination is a location. For more information about location codes, see [AddControlPolicy](~~138867~~). Example: \["BJ11", "ZB"].
public DescribeControlPolicyResponseBody.Policys.Builder destinationGroupCidrs(List<String> destinationGroupCidrs)
public DescribeControlPolicyResponseBody.Policys.Builder destinationGroupType(String destinationGroupType)
* **ip**: an address book that includes one or more IP addresses * **tag**: an ECS tag-based address book that includes the IP addresses of the ECS instances with one or more specific tags * **domain**: an address book that includes one or more domain names * **threat**: an address book that includes one or more malicious IP addresses or domain names * **backsrc**: an address book that includes one or more back-to-origin addresses of Anti-DDoS Pro or Anti-DDoS Premium instances or WAF instances
public DescribeControlPolicyResponseBody.Policys.Builder destinationType(String destinationType)
* **net**: destination CIDR block * **group**: destination address book * **domain**: destination domain name * **location**: destination location
public DescribeControlPolicyResponseBody.Policys.Builder direction(String direction)
* **in**: inbound traffic * **out**: outbound traffic
public DescribeControlPolicyResponseBody.Policys.Builder dnsResult(String dnsResult)
public DescribeControlPolicyResponseBody.Policys.Builder dnsResultTime(Long dnsResultTime)
public DescribeControlPolicyResponseBody.Policys.Builder hitLastTime(Long hitLastTime)
public DescribeControlPolicyResponseBody.Policys.Builder hitTimes(Long hitTimes)
public DescribeControlPolicyResponseBody.Policys.Builder ipVersion(Integer ipVersion)
* **4**: IPv4 * **6**: IPv6
public DescribeControlPolicyResponseBody.Policys.Builder modifyTime(Long modifyTime)
public DescribeControlPolicyResponseBody.Policys.Builder order(Integer order)
The priority value starts from 1. A small priority value indicates a high priority.
public DescribeControlPolicyResponseBody.Policys.Builder proto(String proto)
* **ANY** * **TCP** * **UDP** * **ICMP**
public DescribeControlPolicyResponseBody.Policys.Builder release(String release)
* **true**: The access control policy is enabled. * **false**: The access control policy is disabled.
public DescribeControlPolicyResponseBody.Policys.Builder source(String source)
* If **SourceType** is set to `net`, the value of Source is a CIDR block. Example: 192.0.XX.XX/24. * If **SourceType** is set to `group`, the value of Source is the name of an address book. Example: db_group. * If **SourceType** is set to `location`, the value of Source is a location. For more information about location codes, see [AddControlPolicy](~~138867~~). Example: \["BJ11", "ZB"].
public DescribeControlPolicyResponseBody.Policys.Builder sourceGroupCidrs(List<String> sourceGroupCidrs)
public DescribeControlPolicyResponseBody.Policys.Builder sourceGroupType(String sourceGroupType)
* **ip**: an address book that includes one or more IP addresses * **tag**: an Elastic Compute Service (ECS) tag-based address book that includes the IP addresses of the ECS instances with one or more specific tags * **domain**: an address book that includes one or more domain names * **threat**: an address book that includes one or more malicious IP addresses or domain names * **backsrc**: an address book that includes one or more back-to-origin addresses of Anti-DDoS Pro or Anti-DDoS Premium instances or Web Application Firewall (WAF) instances
public DescribeControlPolicyResponseBody.Policys.Builder sourceType(String sourceType)
* **net**: source CIDR block * **group**: source address book * **location**: source location
public DescribeControlPolicyResponseBody.Policys.Builder spreadCnt(Integer spreadCnt)
Quota that is consumed by an access control policy = Number of source CIDR blocks × Number of destination CIDR blocks, destination locations, or IP addresses that are resolved from destination domain names × Number of applications × Number of ports.
public DescribeControlPolicyResponseBody.Policys build()
Copyright © 2023. All rights reserved.