public static final class DescribeControlPolicyResponseBody.Policys.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeControlPolicyResponseBody.Policys.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
DescribeControlPolicyResponseBody.Policys.Builder |
aclUuid(String aclUuid)
The UUID of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
applicationId(String applicationId)
The application ID in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
applicationName(String applicationName)
The application type supported by the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
applicationNameList(List<String> applicationNameList)
The application names.
|
DescribeControlPolicyResponseBody.Policys |
build() |
DescribeControlPolicyResponseBody.Policys.Builder |
createTime(Long createTime)
The time when the access control policy was created.
|
DescribeControlPolicyResponseBody.Policys.Builder |
description(String description)
The description of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destination(String destination)
The destination address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destinationGroupCidrs(List<String> destinationGroupCidrs)
The CIDR blocks in the destination address book.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destinationGroupType(String destinationGroupType)
The type of the destination address book in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destinationType(String destinationType)
The type of the destination address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPort(String destPort)
The destination port in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPortGroupPorts(List<String> destPortGroupPorts)
The ports in the destination port address book.
|
DescribeControlPolicyResponseBody.Policys.Builder |
destPortType(String destPortType)
The type of the destination port in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
direction(String direction)
The direction of the traffic to which the access control policy applies.
|
DescribeControlPolicyResponseBody.Policys.Builder |
dnsResult(String dnsResult)
The DNS resolution results.
|
DescribeControlPolicyResponseBody.Policys.Builder |
dnsResultTime(Long dnsResultTime)
The time when the Domain Name System (DNS) resolution was performed.
|
DescribeControlPolicyResponseBody.Policys.Builder |
domainResolveType(String domainResolveType)
The domain name resolution method of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
endTime(Long endTime)
The time when the access control policy stops taking effect.
|
DescribeControlPolicyResponseBody.Policys.Builder |
hitLastTime(Long hitLastTime)
The time when the access control policy was last hit.
|
DescribeControlPolicyResponseBody.Policys.Builder |
hitTimes(Long hitTimes)
The number of hits for the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
ipVersion(Integer ipVersion)
The IP version used in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
modifyTime(Long modifyTime)
The time when the access control policy was modified.
|
DescribeControlPolicyResponseBody.Policys.Builder |
order(Integer order)
The priority of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
proto(String proto)
The protocol type in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
release(String release)
The status of the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
repeatDays(List<Long> repeatDays)
The days of a week or of a month on which the access control policy takes effect.
|
DescribeControlPolicyResponseBody.Policys.Builder |
repeatEndTime(String repeatEndTime)
The point in time when the recurrence ends.
|
DescribeControlPolicyResponseBody.Policys.Builder |
repeatStartTime(String repeatStartTime)
The point in time when the recurrence starts.
|
DescribeControlPolicyResponseBody.Policys.Builder |
repeatType(String repeatType)
The recurrence type based on which the access control policy takes effect.
|
DescribeControlPolicyResponseBody.Policys.Builder |
source(String source)
The source address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
sourceGroupCidrs(List<String> sourceGroupCidrs)
The CIDR blocks in the source address book.
|
DescribeControlPolicyResponseBody.Policys.Builder |
sourceGroupType(String sourceGroupType)
The type of the source address book in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
sourceType(String sourceType)
The type of the source address in the access control policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
spreadCnt(Integer spreadCnt)
The total quota consumed by the returned access control policies, which is the sum of the quota consumed by each policy.
|
DescribeControlPolicyResponseBody.Policys.Builder |
startTime(Long startTime)
The time when the access control policy starts to take effect.
|
public DescribeControlPolicyResponseBody.Policys.Builder aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic. Valid values:
accept
public DescribeControlPolicyResponseBody.Policys.Builder aclUuid(String aclUuid)
The UUID of the access control policy.
example:00281255-d220-4db1-8f4f-c4df221a****
public DescribeControlPolicyResponseBody.Policys.Builder applicationId(String applicationId)
The application ID in the access control policy.
example:10***
public DescribeControlPolicyResponseBody.Policys.Builder applicationName(String applicationName)
The application type supported by the access control policy. We recommend that you specify ApplicationNameList. Valid values:
HTTP
public DescribeControlPolicyResponseBody.Policys.Builder applicationNameList(List<String> applicationNameList)
The application names.
public DescribeControlPolicyResponseBody.Policys.Builder createTime(Long createTime)
The time when the access control policy was created.
example:1761062400
public DescribeControlPolicyResponseBody.Policys.Builder description(String description)
The description of the access control policy.
example:test
public DescribeControlPolicyResponseBody.Policys.Builder destPort(String destPort)
The destination port in the access control policy.
example:80
public DescribeControlPolicyResponseBody.Policys.Builder destPortGroup(String destPortGroup)
The name of the destination port address book in the access control policy.
example:my_port_group
public DescribeControlPolicyResponseBody.Policys.Builder destPortGroupPorts(List<String> destPortGroupPorts)
The ports in the destination port address book.
public DescribeControlPolicyResponseBody.Policys.Builder destPortType(String destPortType)
The type of the destination port in the access control policy. Valid values:
port
public DescribeControlPolicyResponseBody.Policys.Builder destination(String destination)
The destination address in the access control policy. The value of this parameter varies based on the value of DestinationType.
192.0.XX.XX/24
public DescribeControlPolicyResponseBody.Policys.Builder destinationGroupCidrs(List<String> destinationGroupCidrs)
The CIDR blocks in the destination address book.
public DescribeControlPolicyResponseBody.Policys.Builder destinationGroupType(String destinationGroupType)
The type of the destination address book in the access control policy. Valid values:
ip
public DescribeControlPolicyResponseBody.Policys.Builder destinationType(String destinationType)
The type of the destination address in the access control policy. Valid values:
net
public DescribeControlPolicyResponseBody.Policys.Builder direction(String direction)
The direction of the traffic to which the access control policy applies. Valid values:
in
public DescribeControlPolicyResponseBody.Policys.Builder dnsResult(String dnsResult)
The DNS resolution results.
example:192.0.XX.XX,192.0.XX.XX
public DescribeControlPolicyResponseBody.Policys.Builder dnsResultTime(Long dnsResultTime)
The time when the Domain Name System (DNS) resolution was performed. The value is a timestamp. Unit: seconds.
example:1579261141
public DescribeControlPolicyResponseBody.Policys.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 DescribeControlPolicyResponseBody.Policys.Builder endTime(Long endTime)
The time when the access control policy stops taking effect. The value is a timestamp. Unit: seconds. The end time must be on the hour or on the half hour, and at least 30 minutes later than the start time.
example:If RepeatType is set to Permanent, this parameter is left empty. If RepeatType is set to None, Daily, Weekly, or Monthly, this parameter must be specified.
1694764800
public DescribeControlPolicyResponseBody.Policys.Builder hitLastTime(Long hitLastTime)
The time when the access control policy was last hit. The value is a timestamp. Unit: seconds.
example:1579261141
public DescribeControlPolicyResponseBody.Policys.Builder hitTimes(Long hitTimes)
The number of hits for the access control policy.
example:100
public DescribeControlPolicyResponseBody.Policys.Builder ipVersion(Integer ipVersion)
The IP version used in the access control policy. Valid values:
6
public DescribeControlPolicyResponseBody.Policys.Builder modifyTime(Long modifyTime)
The time when the access control policy was modified.
example:1761062400
public DescribeControlPolicyResponseBody.Policys.Builder order(Integer order)
The priority of the access control policy.
The priority value starts from 1. A smaller priority value indicates a higher priority.
example:1
public DescribeControlPolicyResponseBody.Policys.Builder proto(String proto)
The protocol type in the access control policy. Valid values:
TCP
public DescribeControlPolicyResponseBody.Policys.Builder release(String release)
The status of the access control policy. By default, an access control policy is enabled after it is created. Valid values:
true
public DescribeControlPolicyResponseBody.Policys.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, this parameter is left empty. Example: [].If RepeatType is set to Weekly, the fields in the value of RepeatDays cannot be repeated.
Monthly, this parameter must be specified. Example: [1, 31].If RepeatType is set to Monthly, the fields in the value of RepeatDays cannot be repeated.
public DescribeControlPolicyResponseBody.Policys.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 RepeatType is set to Permanent or None, this parameter is left empty. If RepeatType is set to Daily, Weekly, or Monthly, this parameter must be specified.
23:30
public DescribeControlPolicyResponseBody.Policys.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 RepeatType is set to Permanent or None, this parameter is left empty. If RepeatType is set to Daily, Weekly, or Monthly, this parameter must be specified.
08:00
public DescribeControlPolicyResponseBody.Policys.Builder repeatType(String repeatType)
The recurrence type based on which the access control policy takes effect. Valid values:
Permanent
public DescribeControlPolicyResponseBody.Policys.Builder source(String source)
The source address in the access control policy. Valid values:
net, the value of Source is a CIDR block. Example: 192.0.XX.XX/24.group, the value of Source is the name of an address book. Example: db_group.location, the value of Source is a location. For more information about location codes, see AddControlPolicy. Example: ["BJ11", "ZB"].192.0.XX.XX/24
public DescribeControlPolicyResponseBody.Policys.Builder sourceGroupCidrs(List<String> sourceGroupCidrs)
The CIDR blocks in the source address book.
public DescribeControlPolicyResponseBody.Policys.Builder sourceGroupType(String sourceGroupType)
The type of the source address book in the access control policy. Valid values:
ip
public DescribeControlPolicyResponseBody.Policys.Builder sourceType(String sourceType)
The type of the source address in the access control policy. Valid values:
net
public DescribeControlPolicyResponseBody.Policys.Builder spreadCnt(Integer spreadCnt)
The total quota consumed by the returned access control policies, which is the sum of the quota consumed by each policy. The quota that is consumed by an access control policy is calculated by using the following formula: Quota that is consumed by an access control policy = Number of source addresses (number of CIDR blocks or regions) × Number of destination addresses (number of CIDR blocks, regions, or domain names) × Number of port ranges × Number of applications.
example:10,000
public DescribeControlPolicyResponseBody.Policys.Builder startTime(Long startTime)
The time when the access control policy starts to take effect. The value is a timestamp. Unit: seconds. The start time must be on the hour or on the half hour, and at least 30 minutes earlier than the end time.
example:If RepeatType is set to Permanent, this parameter is left empty. If RepeatType is set to None, Daily, Weekly, or Monthly, this parameter must be specified.
1694761200
public DescribeControlPolicyResponseBody.Policys build()
Copyright © 2026. All rights reserved.