public static final class CreateVpcFirewallControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateVpcFirewallControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
CreateVpcFirewallControlPolicyRequest.Builder |
applicationName(String applicationName)
The type of the applications that the access control policy supports.
|
CreateVpcFirewallControlPolicyRequest |
build() |
CreateVpcFirewallControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
CreateVpcFirewallControlPolicyRequest.Builder |
memberUid(String memberUid)
The UID of the member that is managed by your Alibaba Cloud account.
|
CreateVpcFirewallControlPolicyRequest.Builder |
newOrder(String newOrder)
The priority of the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
proto(String proto)
The type of the protocol in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
release(String release)
Specifies whether to enable the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
vpcFirewallId(String vpcFirewallId)
The ID of the policy group in which you want to create the access control policy.
|
public CreateVpcFirewallControlPolicyRequest.Builder aclAction(String aclAction)
- **accept**: allows the traffic. - **drop**: blocks the traffic. - **log**: monitors the traffic.
public CreateVpcFirewallControlPolicyRequest.Builder applicationName(String applicationName)
- **FTP** - **HTTP** - **HTTPS** - **MySQL** - **SMTP** - **SMTPS** - **RDP** - **VNC** - **SSH** - **Redis** - **MQTT** - **MongoDB** - **Memcache** - **SSL** - **ANY**: all types of applications
public CreateVpcFirewallControlPolicyRequest.Builder description(String description)
public CreateVpcFirewallControlPolicyRequest.Builder destPort(String destPort)
> If **DestPortType** is set to `port`, you must specify this parameter.
public CreateVpcFirewallControlPolicyRequest.Builder destPortGroup(String destPortGroup)
> If **DestPortType** is set to `group`, you must specify this parameter.
public CreateVpcFirewallControlPolicyRequest.Builder destPortType(String destPortType)
- **port**: port - **group**: port address book
public CreateVpcFirewallControlPolicyRequest.Builder destination(String destination)
- If **DestinationType** is set to `net`, the value of **Destination** must be a CIDR block. - If **DestinationType** is set to `group`, the value of **Destination** must be an address book. - If **DestinationType** is set to `domain`, the value of **Destination** must be a domain name.
public CreateVpcFirewallControlPolicyRequest.Builder destinationType(String destinationType)
- **net**: CIDR block - **group**: address book - **domain**: domain name
public CreateVpcFirewallControlPolicyRequest.Builder lang(String lang)
- **zh**: Chinese (default) - **en**: English
public CreateVpcFirewallControlPolicyRequest.Builder memberUid(String memberUid)
public CreateVpcFirewallControlPolicyRequest.Builder newOrder(String newOrder)
The priority value starts from 1. A smaller priority value indicates a higher priority.
public CreateVpcFirewallControlPolicyRequest.Builder proto(String proto)
- **ANY** (If you are not sure about the protocol type, you can set this parameter to ANY.) - **TCP** - **UDP** - **ICMP**
public CreateVpcFirewallControlPolicyRequest.Builder release(String release)
- **true**: enables the access control policy. - **false**: disables the access control policy.
public CreateVpcFirewallControlPolicyRequest.Builder source(String source)
- If SourceType is set to `net`, the value of Source must be a CIDR block. - If SourceType is set to `group`, the value of Source must be an address book.
public CreateVpcFirewallControlPolicyRequest.Builder sourceType(String sourceType)
- **net**: CIDR block - **group**: address book
public CreateVpcFirewallControlPolicyRequest.Builder vpcFirewallId(String vpcFirewallId)
- If a VPC firewall protects the traffic between two VPCs that are connected by using a CEN instance, the value of this parameter must be the ID of the CEN instance. - If a VPC firewall protects the traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter must be the instance ID of the VPC firewall. > You can call the [DescribeVpcFirewallAclGroupList](https://www.alibabacloud.com/help/en/cloud-firewall/latest/describevpcfirewallaclgrouplist) operation to query the IDs.
public CreateVpcFirewallControlPolicyRequest build()
Copyright © 2023. All rights reserved.