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.Builder |
applicationNameList(List<String> applicationNameList)
The application types supported by the access control policy.
|
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 |
domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy.
|
CreateVpcFirewallControlPolicyRequest.Builder |
endTime(Long endTime)
The time when the access control policy stops taking effect.
|
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 |
repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
|
CreateVpcFirewallControlPolicyRequest.Builder |
repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends.
|
CreateVpcFirewallControlPolicyRequest.Builder |
repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts.
|
CreateVpcFirewallControlPolicyRequest.Builder |
repeatType(String repeatType)
The recurrence type for the access control policy to take effect.
|
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 |
startTime(Long startTime)
The time when the access control policy starts to take effect.
|
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)
The action that Cloud Firewall performs on the traffic. Valid values:
This parameter is required.
example:accept
public CreateVpcFirewallControlPolicyRequest.Builder applicationName(String applicationName)
The type of the applications that the access control policy supports. Valid values:
HTTP
public CreateVpcFirewallControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
The application types supported by the access control policy.
public CreateVpcFirewallControlPolicyRequest.Builder description(String description)
The description of the access control policy.
This parameter is required.
example:test
public CreateVpcFirewallControlPolicyRequest.Builder destPort(String destPort)
The destination port in the access control policy.
example:If DestPortType is set to
port, you must specify this parameter.
80
public CreateVpcFirewallControlPolicyRequest.Builder destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
example:If DestPortType is set to
group, you must specify this parameter.
my_port_group
public CreateVpcFirewallControlPolicyRequest.Builder destPortType(String destPortType)
The type of the destination port in the access control policy. Valid values:
port
public CreateVpcFirewallControlPolicyRequest.Builder destination(String destination)
The destination address in the access control policy. Valid values:
net, the value of Destination must be a CIDR block.group, the value of Destination must be an address book.domain, the value of Destination must be a domain name.This parameter is required.
example:10.2.XX.XX/24
public CreateVpcFirewallControlPolicyRequest.Builder destinationType(String destinationType)
The type of the destination address in the access control policy. Valid values:
This parameter is required.
example:net
public CreateVpcFirewallControlPolicyRequest.Builder domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy. Valid values:
DNS
public CreateVpcFirewallControlPolicyRequest.Builder endTime(Long endTime)
The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time.
example:If you set RepeatType to Permanent, leave this parameter empty. If you set RepeatType to None, Daily, Weekly, or Monthly, you must specify this parameter.
1694764800
public CreateVpcFirewallControlPolicyRequest.Builder lang(String lang)
The language of the content within the request and response. Valid values:
zh
public CreateVpcFirewallControlPolicyRequest.Builder memberUid(String memberUid)
The UID of the member that is managed by your Alibaba Cloud account.
example:258039427902****
public CreateVpcFirewallControlPolicyRequest.Builder newOrder(String newOrder)
The priority of the access control policy.
The priority value starts from 1. A smaller priority value indicates a higher priority.
This parameter is required.
example:1
public CreateVpcFirewallControlPolicyRequest.Builder proto(String proto)
The type of the protocol in the access control policy. Valid values:
This parameter is required.
example:TCP
public CreateVpcFirewallControlPolicyRequest.Builder release(String release)
Specifies whether to enable the access control policy. By default, an access control policy is enabled after the policy is created. Valid values:
true
public CreateVpcFirewallControlPolicyRequest.Builder repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
Permanent, None, or Daily, leave this parameter empty. Example: [].If you set RepeatType to Weekly, the fields in the value of this parameter cannot be repeated.
Monthly, you must specify this parameter. Example: [1, 31].If you set RepeatType to Monthly, the fields in the value of this parameter cannot be repeated.
public CreateVpcFirewallControlPolicyRequest.Builder repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends. Example: 23:30. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time.
example:If you set RepeatType to Permanent or None, leave this parameter empty. If you set RepeatType to Daily, Weekly, or Monthly, you must specify this parameter.
23:30
public CreateVpcFirewallControlPolicyRequest.Builder repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts. Example: 08:00. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the end time.
example:If you set RepeatType to Permanent or None, leave this parameter empty. If you set RepeatType to Daily, Weekly, or Monthly, you must specify this parameter.
08:00
public CreateVpcFirewallControlPolicyRequest.Builder repeatType(String repeatType)
The recurrence type for the access control policy to take effect. Valid values:
Permanent
public CreateVpcFirewallControlPolicyRequest.Builder source(String source)
The source address in the access control policy.
net, the value of Source must be a CIDR block.group, the value of Source must be an address book.This parameter is required.
example:10.2.XX.XX/24
public CreateVpcFirewallControlPolicyRequest.Builder sourceType(String sourceType)
The type of the source address in the access control policy. Valid values:
This parameter is required.
example:net
public CreateVpcFirewallControlPolicyRequest.Builder startTime(Long startTime)
The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the end time.
example:If you set RepeatType to Permanent, leave this parameter empty. If you set RepeatType to None, Daily, Weekly, or Monthly, you must specify this parameter.
1694761200
public CreateVpcFirewallControlPolicyRequest.Builder vpcFirewallId(String vpcFirewallId)
The ID of the policy group in which you want to create the access control policy.
You can call the DescribeVpcFirewallAclGroupList operation to query the IDs.
This parameter is required.
example:vfw-a42bbb7b887148c9****
public CreateVpcFirewallControlPolicyRequest build()
Copyright © 2026. All rights reserved.