public static final class DescribeControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeControlPolicyRequest.Builder |
aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic.
|
DescribeControlPolicyRequest.Builder |
aclUuid(String aclUuid)
The unique ID of the access control policy.
|
DescribeControlPolicyRequest |
build() |
DescribeControlPolicyRequest.Builder |
currentPage(String currentPage)
The number of the page to return.
|
DescribeControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
DescribeControlPolicyRequest.Builder |
destination(String destination)
The destination address in the access control policy.
|
DescribeControlPolicyRequest.Builder |
direction(String direction)
The direction of the traffic to which the access control policies apply.
|
DescribeControlPolicyRequest.Builder |
ipVersion(String ipVersion)
The IP version of the address in the access control policy.
|
DescribeControlPolicyRequest.Builder |
lang(String lang)
The language of the content within the response.
|
DescribeControlPolicyRequest.Builder |
pageSize(String pageSize)
The number of entries to return on each page.
|
DescribeControlPolicyRequest.Builder |
proto(String proto)
The type of the protocol in the access control policy.
|
DescribeControlPolicyRequest.Builder |
release(String release)
Specifies whether the access control policy is enabled.
|
DescribeControlPolicyRequest.Builder |
repeatType(String repeatType)
The recurrence type for the access control policy to take effect.
|
DescribeControlPolicyRequest.Builder |
source(String source)
The source address in the access control policy.
|
public DescribeControlPolicyRequest.Builder aclAction(String aclAction)
The action that Cloud Firewall performs on the traffic. Valid values:
example:If you do not specify this parameter, access control policies of all action types are queried.
accept
public DescribeControlPolicyRequest.Builder aclUuid(String aclUuid)
The unique ID of the access control policy.
example:00281255-d220-4db1-8f4f-c4df221a****
public DescribeControlPolicyRequest.Builder currentPage(String currentPage)
The number of the page to return.
Default value: 1.
This parameter is required.
example:1
public DescribeControlPolicyRequest.Builder description(String description)
The description of the access control policy. Fuzzy match is supported.
example:If you do not specify this parameter, access control policies that have descriptions are queried.
test
public DescribeControlPolicyRequest.Builder destination(String destination)
The destination address in the access control policy. Fuzzy match is supported. The value of this parameter varies based on the value of the DestinationType parameter.
net, the value of Destination is a CIDR block. Example: 10.0.3.0/24.domain, the value of Destination is a domain name. Example: aliyun.group, the value of Destination is the name of an address book. Example: db_group.location, the value of Destination is the name of a location. For more information about location codes, see AddControlPolicy. Example: ["BJ11", "ZB"].example:If you do not specify this parameter, access control policies of all destination address types are queried.
192.0.XX.XX
public DescribeControlPolicyRequest.Builder direction(String direction)
The direction of the traffic to which the access control policies apply. Valid values:
in
public DescribeControlPolicyRequest.Builder ipVersion(String ipVersion)
The IP version of the address in the access control policy. Valid values:
6
public DescribeControlPolicyRequest.Builder lang(String lang)
The language of the content within the response. Valid values:
zh
public DescribeControlPolicyRequest.Builder pageSize(String pageSize)
The number of entries to return on each page.
This parameter is required.
example:10
public DescribeControlPolicyRequest.Builder proto(String proto)
The type of the protocol in the access control policy. Valid values:
example:If you do not specify this parameter, access control policies of all protocol types are queried.
TCP
public DescribeControlPolicyRequest.Builder release(String release)
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
public DescribeControlPolicyRequest.Builder repeatType(String repeatType)
The recurrence type for the access control policy to take effect. Valid values:
Permanent
public DescribeControlPolicyRequest.Builder source(String source)
The source address in the access control policy. Fuzzy match is supported. The value of this parameter depends on the value of the SourceType parameter.
net, the value of Source must be a CIDR block. Example: 192.0.XX.XX/24.group, the value of Source must be the name of an address book. Example: db_group. If the db_group address book does not contain addresses, all source addresses are queried.location, the value of Source must be a location. Example: beijing.example:If you do not specify this parameter, access control policies of all source address types are queried.
192.0.XX.XX
public DescribeControlPolicyRequest build()
Copyright © 2026. All rights reserved.