public static final class ModifyControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
ModifyControlPolicyRequest.Builder |
aclUuid(String aclUuid)
The ID of the access control policy.
|
ModifyControlPolicyRequest.Builder |
applicationName(String applicationName)
The type of the application that the access control policy supports.
|
ModifyControlPolicyRequest.Builder |
applicationNameList(List<String> applicationNameList)
The application names.
|
ModifyControlPolicyRequest |
build() |
ModifyControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
ModifyControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
ModifyControlPolicyRequest.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
ModifyControlPolicyRequest.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
ModifyControlPolicyRequest.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
ModifyControlPolicyRequest.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
ModifyControlPolicyRequest.Builder |
direction(String direction)
The direction of the traffic to which the access control policy applies.
|
ModifyControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
ModifyControlPolicyRequest.Builder |
proto(String proto)
The type of the protocol in the access control policy.
|
ModifyControlPolicyRequest.Builder |
release(String release)
The status of the access control policy.
|
ModifyControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
ModifyControlPolicyRequest.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
public ModifyControlPolicyRequest.Builder aclAction(String aclAction)
* **accept**: allows the traffic. * **drop**: denies the traffic. * **log**: monitors the traffic.
public ModifyControlPolicyRequest.Builder aclUuid(String aclUuid)
> If you want to modify the configurations of an access control policy, you must provide the ID of the policy. You can call the [DescribeControlPolicy](~~138866~~) operation to query the ID.
public ModifyControlPolicyRequest.Builder applicationName(String applicationName)
* **ANY** * **HTTP** * **HTTPS** * **MySQL** * **SMTP** * **SMTPS** * **RDP** * **VNC** * **SSH** * **Redis** * **MQTT** * **MongoDB** * **Memcache** * **SSL** > The value **ANY** indicates all types of applications.
public ModifyControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
public ModifyControlPolicyRequest.Builder description(String description)
public ModifyControlPolicyRequest.Builder destPort(String destPort)
public ModifyControlPolicyRequest.Builder destPortGroup(String destPortGroup)
public ModifyControlPolicyRequest.Builder destPortType(String destPortType)
* **port**: port * **group**: port address book
public ModifyControlPolicyRequest.Builder destination(String destination)
* If **DestinationType** is set to net, the value of **Destination** is a CIDR block. Example: 1.2.XX.XX/24 * If **DestinationType** is set to group, the value of **Destination** is an address book. Example: db_group * If **DestinationType** is set to domain, the value of **Destination** is a domain name. Example: \*.aliyuncs.com * If **DestinationType** is set to location, the value of **Destination** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example: \["BJ11", "ZB"]
public ModifyControlPolicyRequest.Builder destinationType(String destinationType)
* **net**: destination CIDR block * **group**: destination address book * **domain**: destination domain name * **location**: destination location
public ModifyControlPolicyRequest.Builder direction(String direction)
* **in**: inbound traffic * **out**: outbound traffic
public ModifyControlPolicyRequest.Builder lang(String lang)
* **zh**: Chinese (default) * **en**: English
public ModifyControlPolicyRequest.Builder proto(String proto)
* **ANY** * **TCP** * **UDP** * **ICMP** > The value **ANY** indicates all types of protocols.
public ModifyControlPolicyRequest.Builder release(String release)
* true: enabled * false: disabled
public ModifyControlPolicyRequest.Builder source(String source)
* If **SourceType** is set to net, the value of **Source** is a CIDR block. Example: 1.2.XX.XX/24 * If **SourceType** is set to group, the value of **Source** is an address book. Example: db_group * If **SourceType** is set to location, the value of **Source** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example: \["BJ11", "ZB"]
public ModifyControlPolicyRequest.Builder sourceType(String sourceType)
* **net**: source CIDR block * **group**: source address book * **location**: source location
public ModifyControlPolicyRequest build()
Copyright © 2023. All rights reserved.