public static final class AddControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
AddControlPolicyRequest.Builder |
applicationName(String applicationName)
The application type supported by the access control policy.
|
AddControlPolicyRequest.Builder |
applicationNameList(List<String> applicationNameList)
The application types supported by the access control policy.
|
AddControlPolicyRequest |
build() |
AddControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
AddControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
AddControlPolicyRequest.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
AddControlPolicyRequest.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
AddControlPolicyRequest.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
AddControlPolicyRequest.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
AddControlPolicyRequest.Builder |
direction(String direction)
The direction of the traffic to which the access control policy applies.
|
AddControlPolicyRequest.Builder |
ipVersion(String ipVersion)
The IP version supported by the access control policy.
|
AddControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
AddControlPolicyRequest.Builder |
newOrder(String newOrder)
The priority of the access control policy.
|
AddControlPolicyRequest.Builder |
proto(String proto)
The protocol type supported by the access control policy.
|
AddControlPolicyRequest.Builder |
release(String release)
Specifies whether to enable the access control policy.
|
AddControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
AddControlPolicyRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
AddControlPolicyRequest.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
public AddControlPolicyRequest.Builder aclAction(String aclAction)
* **accept**: allows the traffic. * **drop**: denies the traffic. * **log**: monitors the traffic.
public AddControlPolicyRequest.Builder applicationName(String applicationName)
* **FTP** * **HTTP** * **HTTPS** * **Memcache** * **MongoDB** * **MQTT** * **MySQL** * **RDP** * **Redis** * **SMTP** * **SMTPS** * **SSH** * **SSL_No_Cert** * **SSL** * **VNC** * **ANY** > The value of this parameter is based on the value of Proto. If Proto is set to TCP, you can set ApplicationName to any valid value. If Proto is set to UDP, ICMP, or ANY, you can set ApplicationName only to ANY. You must specify at least one of the ApplicationNameList and ApplicationName parameters.
public AddControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
public AddControlPolicyRequest.Builder description(String description)
public AddControlPolicyRequest.Builder destPort(String destPort)
* If Proto is set to ICMP, DestPort is automatically left empty. > If Proto is set to ICMP, access control does not take effect on the destination port. * If Proto is set to TCP, UDP, or ANY and DestPortType is set to group, DestPort is empty. > If DestPortType is set to group, you do not need to specify the destination port number. All ports on which the access control policy takes effect are included in the destination port address book. * If Proto is set to TCP, UDP, or ANY and DestPortType is set to port, the value of DestPort is the destination port number.
public AddControlPolicyRequest.Builder destPortGroup(String destPortGroup)
> If DestPortType is set to group, you must specify the name of the destination port address book.
public AddControlPolicyRequest.Builder destPortType(String destPortType)
Valid values: * **port**: port * **group**: port address book
public AddControlPolicyRequest.Builder destination(String destination)
Valid values: * If DestinationType is set to net, the value of this parameter is a CIDR block. Example: 1.2.XX.XX/24 * If DestinationType is set to group, the value of this parameter is an address book name. Example: db_group * If DestinationType is set to domain, the value of this parameter is a domain name. Example: \*.aliyuncs.com * If DestinationType is set to location, the value of this parameter is a location. Example: \["BJ11", "ZB"]
public AddControlPolicyRequest.Builder destinationType(String destinationType)
* **net**: CIDR block * **group**: address book * **domain**: domain name * **location**: location
public AddControlPolicyRequest.Builder direction(String direction)
* **in**: inbound traffic * **out**: outbound traffic
public AddControlPolicyRequest.Builder ipVersion(String ipVersion)
Valid values: * **4**: IPv4 * **6**: IPv6
public AddControlPolicyRequest.Builder lang(String lang)
* **zh**: Chinese (default) * **en**: English
public AddControlPolicyRequest.Builder newOrder(String newOrder)
public AddControlPolicyRequest.Builder proto(String proto)
* **ANY** * **TCP** * **UDP** * **ICMP**
public AddControlPolicyRequest.Builder release(String release)
* **true**: enables the access control policy. * **false**: disables the access control policy.
public AddControlPolicyRequest.Builder source(String source)
* If SourceType is set to net, the value of this parameter is a CIDR block. Example: 1.1.XX.XX/24 * If SourceType is set to group, the value of this parameter is an address book name. Example: db_group * If SourceType is set to location, the value of this parameter is a location. Example: \["BJ11", "ZB"]
public AddControlPolicyRequest.Builder sourceIp(String sourceIp)
public AddControlPolicyRequest.Builder sourceType(String sourceType)
* **net**: CIDR block * **group**: address book * **location**: location
public AddControlPolicyRequest build()
Copyright © 2023. All rights reserved.