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 UUID 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 |
domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy.
|
ModifyControlPolicyRequest.Builder |
endTime(Long endTime)
The time when the access control policy stops taking effect.
|
ModifyControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the request and the response.
|
ModifyControlPolicyRequest.Builder |
proto(String proto)
The protocol type that the access control policy supports.
|
ModifyControlPolicyRequest.Builder |
release(String release)
The status of the access control policy.
|
ModifyControlPolicyRequest.Builder |
repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
|
ModifyControlPolicyRequest.Builder |
repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends.
|
ModifyControlPolicyRequest.Builder |
repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts.
|
ModifyControlPolicyRequest.Builder |
repeatType(String repeatType)
The recurrence type for the access control policy to take effect.
|
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.
|
ModifyControlPolicyRequest.Builder |
startTime(Long startTime)
The time when the access control policy starts to take effect.
|
public ModifyControlPolicyRequest.Builder aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic. Valid values:
accept
public ModifyControlPolicyRequest.Builder aclUuid(String aclUuid)
The UUID of the access control policy.
To modify an access control policy, you must specify the UUID of the policy. You can call the DescribeControlPolicy interface to query the UUID.
This parameter is required.
example:00281255-d220-4db1-8f4f-c4df221ad84c
public ModifyControlPolicyRequest.Builder applicationName(String applicationName)
The type of the application that the access control policy supports. Valid values:
The value ANY indicates all types of applications.
example:You must specify one of the ApplicationNameList and ApplicationName parameters. If you configure both ApplicationNameList and ApplicationName, only the value of ApplicationNameList is used.
HTTP
public ModifyControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
The application names.
You must specify one of the ApplicationNameList and ApplicationName parameters. If you configure both ApplicationNameList and ApplicationName, only the value of ApplicationNameList is used.
public ModifyControlPolicyRequest.Builder description(String description)
The description of the access control policy.
example:test
public ModifyControlPolicyRequest.Builder destPort(String destPort)
The destination port in the access control policy.
example:80
public ModifyControlPolicyRequest.Builder destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
example:my_port_group
public ModifyControlPolicyRequest.Builder destPortType(String destPortType)
The type of the destination port in the access control policy. Valid values:
port
public ModifyControlPolicyRequest.Builder destination(String destination)
The destination address in the access control policy.
192.0.XX.XX/24
public ModifyControlPolicyRequest.Builder destinationType(String destinationType)
The type of the destination address in the access control policy. Valid values:
net
public ModifyControlPolicyRequest.Builder direction(String direction)
The direction of the traffic to which the access control policy applies. Valid values:
in
public ModifyControlPolicyRequest.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 ModifyControlPolicyRequest.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 ModifyControlPolicyRequest.Builder lang(String lang)
The language of the content within the request and the response. Valid values:
zh
public ModifyControlPolicyRequest.Builder proto(String proto)
The protocol type that the access control policy supports. Valid values:
The value ANY indicates all types of applications.
example:If the traffic direction is outbound and the destination address is a threat intelligence address book of the domain name type or a cloud service address book, you can set Proto to TCP or ANY. If you set Proto to TCP, you can set ApplicationName to HTTP, HTTPS, SMTP, SMTPS, and SSL. If you set Proto to ANY, you can set ApplicationName to ANY.
TCP
public ModifyControlPolicyRequest.Builder release(String release)
The status of the access control policy. Valid values:
true
public ModifyControlPolicyRequest.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 ModifyControlPolicyRequest.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 ModifyControlPolicyRequest.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 ModifyControlPolicyRequest.Builder repeatType(String repeatType)
The recurrence type for the access control policy to take effect. Valid values:
Permanent
public ModifyControlPolicyRequest.Builder source(String source)
The source address in the access control policy.
192.0.XX.XX/24
public ModifyControlPolicyRequest.Builder sourceType(String sourceType)
The type of the source address in the access control policy. Valid values:
net
public ModifyControlPolicyRequest.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 ModifyControlPolicyRequest build()
Copyright © 2026. All rights reserved.