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 policy applies.
|
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 |
source(String source)
The source address in the access control policy.
|
public DescribeControlPolicyRequest.Builder aclAction(String aclAction)
* **accept**: allows the traffic. * **drop**: denies the traffic. * **log**: monitors the traffic. > If you do not specify this parameter, access control policies of all action types are queried.
public DescribeControlPolicyRequest.Builder aclUuid(String aclUuid)
public DescribeControlPolicyRequest.Builder currentPage(String currentPage)
Default value: 1.
public DescribeControlPolicyRequest.Builder description(String description)
> If you do not specify this parameter, access control policies that have descriptions are queried.
public DescribeControlPolicyRequest.Builder destination(String destination)
* If DestinationType is set to `net`, the value of Destination must be a CIDR block. Example: 10.0.3.0/24. * If DestinationType is set to `domain`, the value of Destination must be a domain name. Example: aliyun. * If DestinationType is set to `group`, the value of Destination must be the name of an address book. Example: db_group. * If DestinationType is set to `location`, the value of Destination must be a location. Example: beijing. > If you do not specify this parameter, access control policies of all destination address types are queried.
public DescribeControlPolicyRequest.Builder direction(String direction)
* **in**: inbound traffic * **out**: outbound traffic
public DescribeControlPolicyRequest.Builder ipVersion(String ipVersion)
* **4**: IPv4 (default) * **6**: IPv6
public DescribeControlPolicyRequest.Builder lang(String lang)
* **zh**: Chinese (default) * **en**: English
public DescribeControlPolicyRequest.Builder pageSize(String pageSize)
public DescribeControlPolicyRequest.Builder proto(String proto)
* **TCP** * **UDP** * **ICMP** * **ANY**: all types of protocols > If you do not specify this parameter, access control policies of all protocol types are queried.
public DescribeControlPolicyRequest.Builder release(String release)
* **true**: The access control policy is enabled. * **false**: The access control policy is disabled.
public DescribeControlPolicyRequest.Builder source(String source)
* If SourceType is set to `net`, the value of Source must be a CIDR block. Example: 192.0.XX.XX/24. * If SourceType is set to `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. * If SourceType is set to `location`, the value of Source must be a location. Example: beijing. > If you do not specify this parameter, access control policies of all source address types are queried.
public DescribeControlPolicyRequest build()
Copyright © 2023. All rights reserved.