public static final class CreateNatFirewallControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateNatFirewallControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
CreateNatFirewallControlPolicyRequest.Builder |
applicationNameList(List<String> applicationNameList)
The application types supported by the access control policy.
|
CreateNatFirewallControlPolicyRequest |
build() |
CreateNatFirewallControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
direction(String direction)
The direction of the traffic to which the access control policy applies.
|
CreateNatFirewallControlPolicyRequest.Builder |
domainResolveType(Integer domainResolveType)
The domain name resolution method of the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
endTime(Long endTime)
The time when the access control policy stops taking effect.
|
CreateNatFirewallControlPolicyRequest.Builder |
ipVersion(String ipVersion)
The IP version supported by the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the response.
|
CreateNatFirewallControlPolicyRequest.Builder |
natGatewayId(String natGatewayId)
The ID of the NAT gateway.
|
CreateNatFirewallControlPolicyRequest.Builder |
newOrder(String newOrder)
The priority of the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
proto(String proto)
The protocol type in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
release(String release)
Specifies whether to enable the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
|
CreateNatFirewallControlPolicyRequest.Builder |
repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends.
|
CreateNatFirewallControlPolicyRequest.Builder |
repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts.
|
CreateNatFirewallControlPolicyRequest.Builder |
repeatType(String repeatType)
The recurrence type for the access control policy to take effect.
|
CreateNatFirewallControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
CreateNatFirewallControlPolicyRequest.Builder |
startTime(Long startTime)
The time when the access control policy starts to take effect.
|
public CreateNatFirewallControlPolicyRequest.Builder aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
Valid values:
This parameter is required.
example:log
public CreateNatFirewallControlPolicyRequest.Builder applicationNameList(List<String> applicationNameList)
The application types supported by the access control policy.
This parameter is required.
public CreateNatFirewallControlPolicyRequest.Builder description(String description)
The description of the access control policy.
This parameter is required.
example:allow
public CreateNatFirewallControlPolicyRequest.Builder destPort(String destPort)
The destination port in the access control policy. Valid values:
If Proto is set to ICMP, access control does not take effect on the destination port.
If DestPortType is set to group, you do not need to specify the destination port number. All ports on which the access control policy takes effect are included in the destination port address book.
80
public CreateNatFirewallControlPolicyRequest.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 the name of the destination port address book.
my_port_group
public CreateNatFirewallControlPolicyRequest.Builder destPortType(String destPortType)
The type of the destination port in the access control policy. Valid values:
port
public CreateNatFirewallControlPolicyRequest.Builder destination(String destination)
The destination address in the access control policy.
Valid values:
If DestinationType is set to net, the value of this parameter is a CIDR block.
Example: 1.2.XX.XX/24
If DestinationType is set to group, the value of this parameter is an address book.
Example: db_group
If DestinationType is set to domain, the value of this parameter is a domain name.
Example: *.aliyuncs.com
If DestinationType is set to location, the value of this parameter is a location.
Example: ["BJ11", "ZB"]
This parameter is required.
example:XX.XX.XX.XX/24
public CreateNatFirewallControlPolicyRequest.Builder destinationType(String destinationType)
The type of the destination address in the access control policy.
Valid values:
This parameter is required.
example:net
public CreateNatFirewallControlPolicyRequest.Builder direction(String direction)
The direction of the traffic to which the access control policy applies. Valid value:
This parameter is required.
example:out
public CreateNatFirewallControlPolicyRequest.Builder domainResolveType(Integer domainResolveType)
The domain name resolution method of the access control policy. Valid values:
0
public CreateNatFirewallControlPolicyRequest.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, this parameter must be specified.
1694764800
public CreateNatFirewallControlPolicyRequest.Builder ipVersion(String ipVersion)
The IP version supported by the access control policy. Valid values:
4
public CreateNatFirewallControlPolicyRequest.Builder lang(String lang)
The language of the content within the response.
Valid values:
zh
public CreateNatFirewallControlPolicyRequest.Builder natGatewayId(String natGatewayId)
The ID of the NAT gateway.
This parameter is required.
example:ngx-xxxxxxx
public CreateNatFirewallControlPolicyRequest.Builder newOrder(String newOrder)
The priority of the access control policy. The priority value starts from 1. A small priority value indicates a high priority.
This parameter is required.
example:1
public CreateNatFirewallControlPolicyRequest.Builder proto(String proto)
The protocol type in the access control policy.
Valid values:
If the destination address is a threat intelligence address book of the domain name type or a cloud service address book, you can set Proto only to TCP and set ApplicationNameList to HTTP, HTTPS, SMTP, SMTPS, or SSL.
This parameter is required.
example:ANY
public CreateNatFirewallControlPolicyRequest.Builder release(String release)
Specifies whether to enable the access control policy. By default, an access control policy is enabled after it is created. Valid values:
true
public CreateNatFirewallControlPolicyRequest.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 CreateNatFirewallControlPolicyRequest.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, this parameter must be specified.
23:30
public CreateNatFirewallControlPolicyRequest.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 CreateNatFirewallControlPolicyRequest.Builder repeatType(String repeatType)
The recurrence type for the access control policy to take effect. Valid values:
Permanent
public CreateNatFirewallControlPolicyRequest.Builder source(String source)
The source address in the access control policy.
Valid values:
If SourceType is set to net, the value of Source is 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
This parameter is required.
example:192.168.0.25/32
public CreateNatFirewallControlPolicyRequest.Builder sourceType(String sourceType)
The type of the source address in the access control policy.
Valid values:
This parameter is required.
example:net
public CreateNatFirewallControlPolicyRequest.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, this parameter must be specified.
1694761200
public CreateNatFirewallControlPolicyRequest build()
Copyright © 2026. All rights reserved.