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 type of the application that the access control policy supports.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
applicationNameList(List<String> applicationNameList)
The application names.
|
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 |
domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
endTime(Long endTime)
The time when the access control policy stops taking effect.
|
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 |
repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
repeatType(String repeatType)
The recurrence type for the access control policy to take effect.
|
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 |
startTime(Long startTime)
The time when the access control policy starts to take effect.
|
ModifyVpcFirewallControlPolicyRequest.Builder |
vpcFirewallId(String vpcFirewallId)
The instance ID of the VPC firewall.
|
public ModifyVpcFirewallControlPolicyRequest.Builder aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
Valid values:
accept
public ModifyVpcFirewallControlPolicyRequest.Builder aclUuid(String aclUuid)
The unique ID of the access control policy.
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 operation to query the ID.
This parameter is required.
example:00281255-d220-4db1-8f4f-c4df221a****
public ModifyVpcFirewallControlPolicyRequest.Builder applicationName(String applicationName)
The type of the application that the access control policy supports.
Valid values:
HTTP
public ModifyVpcFirewallControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
The application names.
public ModifyVpcFirewallControlPolicyRequest.Builder description(String description)
The description of the access control policy.
example:test
public ModifyVpcFirewallControlPolicyRequest.Builder destPort(String destPort)
The destination port in the access control policy.
example:80
public ModifyVpcFirewallControlPolicyRequest.Builder destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
example:my_port_group
public ModifyVpcFirewallControlPolicyRequest.Builder destPortType(String destPortType)
The type of the destination port in the access control policy.
port
public ModifyVpcFirewallControlPolicyRequest.Builder destination(String destination)
The destination address in the access control policy.
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
10.2.X.X/XX
public ModifyVpcFirewallControlPolicyRequest.Builder destinationType(String destinationType)
The type of the destination address in the access control policy.
Valid values:
net
public ModifyVpcFirewallControlPolicyRequest.Builder domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy. By default, an access control policy is enabled after the policy is created. Valid values:
FQDN
public ModifyVpcFirewallControlPolicyRequest.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 value of StartTime.
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 ModifyVpcFirewallControlPolicyRequest.Builder lang(String lang)
The language of the content within the response.
Valid values:
zh
public ModifyVpcFirewallControlPolicyRequest.Builder proto(String proto)
The protocol type in the access control policy.
Valid values:
TCP
public ModifyVpcFirewallControlPolicyRequest.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 ModifyVpcFirewallControlPolicyRequest.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, the value of this parameter is an empty array. 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 ModifyVpcFirewallControlPolicyRequest.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 value of RepeatStartTime.
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 ModifyVpcFirewallControlPolicyRequest.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 value of RepeatEndTime.
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 ModifyVpcFirewallControlPolicyRequest.Builder repeatType(String repeatType)
The recurrence type for the access control policy to take effect. Valid values:
Permanent
public ModifyVpcFirewallControlPolicyRequest.Builder source(String source)
The source address in the access control policy.
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
10.2.X.X/XX
public ModifyVpcFirewallControlPolicyRequest.Builder sourceType(String sourceType)
The type of the source address in the access control policy.
Valid values:
net
public ModifyVpcFirewallControlPolicyRequest.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 value of EndTime.
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 ModifyVpcFirewallControlPolicyRequest.Builder vpcFirewallId(String vpcFirewallId)
The instance ID of the VPC firewall. You can call the DescribeVpcFirewallAclGroupList operation to query the ID.
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****
This parameter is required.
example:vfw-a42bbb7b887148c9****
public ModifyVpcFirewallControlPolicyRequest build()
Copyright © 2026. All rights reserved.