public static final class ModifyNatFirewallControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyNatFirewallControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
ModifyNatFirewallControlPolicyRequest.Builder |
aclUuid(String aclUuid)
The UUID of the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
applicationNameList(List<String> applicationNameList)
The name of the application.
|
ModifyNatFirewallControlPolicyRequest |
build() |
ModifyNatFirewallControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
direction(String direction)
The direction of the traffic to which the access control policy applies.
|
ModifyNatFirewallControlPolicyRequest.Builder |
domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
endTime(Long endTime)
The time when the access control policy stops taking effect.
|
ModifyNatFirewallControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the request and the response.
|
ModifyNatFirewallControlPolicyRequest.Builder |
natGatewayId(String natGatewayId)
The ID of the NAT gateway.
|
ModifyNatFirewallControlPolicyRequest.Builder |
proto(String proto)
The protocol type in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
release(String release)
The status of the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
|
ModifyNatFirewallControlPolicyRequest.Builder |
repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends.
|
ModifyNatFirewallControlPolicyRequest.Builder |
repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts.
|
ModifyNatFirewallControlPolicyRequest.Builder |
repeatType(String repeatType)
The recurrence type for the access control policy to take effect.
|
ModifyNatFirewallControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
ModifyNatFirewallControlPolicyRequest.Builder |
startTime(Long startTime)
The time when the access control policy starts to take effect.
|
public ModifyNatFirewallControlPolicyRequest.Builder aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic. Valid values:
log
public ModifyNatFirewallControlPolicyRequest.Builder aclUuid(String aclUuid)
The UUID of the access control policy.
To modify the configurations of an access control policy, you must provide the UUID of the policy. You can call the DescribeNatFirewallControlPolicy operation to query the UUIDs of access control policies.
This parameter is required.
example:61ab1c02-926a-4d1b-9ef7-595eed8c4226
public ModifyNatFirewallControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
The name of the application.
public ModifyNatFirewallControlPolicyRequest.Builder description(String description)
The description of the access control policy. Fuzzy match is supported.
example:If you do not specify this parameter, the descriptions of all policies are queried.
test
public ModifyNatFirewallControlPolicyRequest.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 ModifyNatFirewallControlPolicyRequest.Builder destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
example:my_dest_port_group
public ModifyNatFirewallControlPolicyRequest.Builder destPortType(String destPortType)
The type of the destination port in the access control policy. Valid values:
port
public ModifyNatFirewallControlPolicyRequest.Builder destination(String destination)
The destination address in the access control policy.
x.x.x.x/32
public ModifyNatFirewallControlPolicyRequest.Builder destinationType(String destinationType)
The type of the destination address in the access control policy. Valid values:
net
public ModifyNatFirewallControlPolicyRequest.Builder direction(String direction)
The direction of the traffic to which the access control policy applies. Valid value:
out
public ModifyNatFirewallControlPolicyRequest.Builder domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy. Valid values:
0
public ModifyNatFirewallControlPolicyRequest.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 RepeatType is set to Permanent, EndTime is left empty. If RepeatType is set to None, Daily, Weekly, or Monthly, EndTime must be specified.
1694764800
public ModifyNatFirewallControlPolicyRequest.Builder lang(String lang)
The language of the content within the request and the response. Valid values:
zh
public ModifyNatFirewallControlPolicyRequest.Builder natGatewayId(String natGatewayId)
The ID of the NAT gateway.
This parameter is required.
example:ngw-xxxxxx
public ModifyNatFirewallControlPolicyRequest.Builder proto(String proto)
The protocol type in the access control policy. Valid values:
The value ANY indicates all types of applications.
example:If the destination address type is a threat intelligence address book of the domain name type or a cloud service address book, you can set Proto to TCP. If you set Proto to TCP, you can set application types to HTTP, HTTPS, SMTP, SMTPS, and SSL.
TCP
public ModifyNatFirewallControlPolicyRequest.Builder release(String release)
The status of the access control policy. Valid values:
true
public ModifyNatFirewallControlPolicyRequest.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, RepeatDays is left empty. Example: [].If RepeatType is set to Weekly, the fields in the value of RepeatDays cannot be repeated.
Monthly, RepeatDays must be specified. Example: [1, 31].If RepeatType is set to Monthly, the fields in the value of RepeatDays cannot be repeated.
public ModifyNatFirewallControlPolicyRequest.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 RepeatType is set to Permanent or None, RepeatEndTime is left empty. If RepeatType is set to Daily, Weekly, or Monthly, RepeatEndTime must be specified.
23:30
public ModifyNatFirewallControlPolicyRequest.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 RepeatType is set to Permanent or None, RepeatStartTime is left empty. If RepeatType is set to Daily, Weekly, or Monthly, this parameter must be specified.
08:00
public ModifyNatFirewallControlPolicyRequest.Builder repeatType(String repeatType)
The recurrence type for the access control policy to take effect. Valid values:
Permanent
public ModifyNatFirewallControlPolicyRequest.Builder source(String source)
The source address in the access control policy. Valid values:
net, the value of this parameter is a CIDR block. Example: 10.2.XX.XX/24.group, the value of this parameter is an address book name. Example: db_group.192.168.0.25/32
public ModifyNatFirewallControlPolicyRequest.Builder sourceType(String sourceType)
The type of the source address in the access control policy. Valid values:
net
public ModifyNatFirewallControlPolicyRequest.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 RepeatType is set to Permanent, StartTime is left empty. If RepeatType is set to None, Daily, Weekly, or Monthly, StartTime must be specified.
1694761200
public ModifyNatFirewallControlPolicyRequest build()
Copyright © 2026. All rights reserved.