public static final class ModifyVpcFirewallControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyVpcFirewallControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
aclUuid(String aclUuid)
The unique ID of the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
applicationName(String applicationName)
The application type in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest |
build() |
ModifyVpcFirewallControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the response.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
proto(String proto)
The protocol type in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
release(String release)
Specifies whether to enable the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
vpcFirewallId(String vpcFirewallId)
The instance ID of the VPC firewall.
|
public ModifyVpcFirewallControlPolicyRequest.Builder aclAction(String aclAction)
Valid values: * **accept**: allows the traffic. * **drop**: blocks the traffic. * **log**: monitors the traffic.
public ModifyVpcFirewallControlPolicyRequest.Builder aclUuid(String aclUuid)
If you want to modify the configurations of an access control policy, you must provide the unique ID of the policy. You can call the [DescribeVpcFirewallControlPolicy](~~159758~~) operation to query the ID.
public ModifyVpcFirewallControlPolicyRequest.Builder applicationName(String applicationName)
Valid values: * ANY * FTP * HTTP * HTTPS * MySQL * SMTP * SMTPS * RDP * VNC * SSH * Redis * MQTT * MongoDB * Memcache * SSL * ANY: all application types
public ModifyVpcFirewallControlPolicyRequest.Builder description(String description)
public ModifyVpcFirewallControlPolicyRequest.Builder destPort(String destPort)
public ModifyVpcFirewallControlPolicyRequest.Builder destPortGroup(String destPortGroup)
public ModifyVpcFirewallControlPolicyRequest.Builder destPortType(String destPortType)
* **port**: port * **group**: port address book
public ModifyVpcFirewallControlPolicyRequest.Builder destination(String destination)
* If **DestinationType** is set to `net`, the value of this parameter must be a CIDR block. Example: 10.2.3.0/24 * If **DestinationType** is set to `group`, the value of this parameter must be an address book name. Example: db_group * If **DestinationType** is set to `domain`, the value of this parameter must be a domain name. Example: \*.aliyuncs.com
public ModifyVpcFirewallControlPolicyRequest.Builder destinationType(String destinationType)
Valid values: * **net**: CIDR block * **group**: address book * **domain**: domain name
public ModifyVpcFirewallControlPolicyRequest.Builder lang(String lang)
Valid values: * **zh**: Chinese (default) * **en**: English
public ModifyVpcFirewallControlPolicyRequest.Builder proto(String proto)
Valid values: * ANY: all protocol types * TCP * UDP * ICMP
public ModifyVpcFirewallControlPolicyRequest.Builder release(String release)
* **true**: enables the access control policy. * **false**: disables the access control policy.
public ModifyVpcFirewallControlPolicyRequest.Builder source(String source)
Valid values: * If **SourceType** is set to `net`, the value of this parameter must be a CIDR block. Example: 10.2.4.0/24 * If **SourceType** is set to `group`, the value of this parameter must be an address book name. Example: db_group
public ModifyVpcFirewallControlPolicyRequest.Builder sourceType(String sourceType)
Valid values: * **net**: CIDR block * **group**: address book
public ModifyVpcFirewallControlPolicyRequest.Builder vpcFirewallId(String vpcFirewallId)
* If the VPC firewall is used to protect a CEN instance, the value of this parameter must be the ID of the CEN instance. Example: cen-ervw0g12b5jbw\*\*\*\* * If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter must be the instance ID of the VPC firewall. Example: vfw-a42bbb7b887148c9\*\*\*\*
public ModifyVpcFirewallControlPolicyRequest build()
Copyright © 2023. All rights reserved.