public static final class CreateWebCCRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateWebCCRuleRequest.Builder |
act(String act)
The action on the requests that trigger the custom frequency control rule.
|
CreateWebCCRuleRequest |
build() |
CreateWebCCRuleRequest.Builder |
count(Integer count)
This parameter is required.
|
CreateWebCCRuleRequest.Builder |
domain(String domain)
The domain name of the website.
|
CreateWebCCRuleRequest.Builder |
interval(Integer interval)
This parameter is required.
|
CreateWebCCRuleRequest.Builder |
mode(String mode)
The matching mode.
|
CreateWebCCRuleRequest.Builder |
name(String name)
The name of the rule.
|
CreateWebCCRuleRequest.Builder |
regionId(String regionId)
RegionId.
|
CreateWebCCRuleRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the Anti-DDoS Proxy instance belongs in Resource Management.
|
CreateWebCCRuleRequest.Builder |
ttl(Integer ttl)
The blocking duration.
|
CreateWebCCRuleRequest.Builder |
uri(String uri)
The check path.
|
public CreateWebCCRuleRequest.Builder regionId(String regionId)
public CreateWebCCRuleRequest.Builder act(String act)
The action on the requests that trigger the custom frequency control rule. Valid values:
This parameter is required.
example:close
public CreateWebCCRuleRequest.Builder count(Integer count)
This parameter is required.
example:60
public CreateWebCCRuleRequest.Builder domain(String domain)
The domain name of the website.
A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
This parameter is required.
example:public CreateWebCCRuleRequest.Builder interval(Integer interval)
This parameter is required.
example:20
public CreateWebCCRuleRequest.Builder mode(String mode)
The matching mode. Valid values:
If the URI of the check path contains parameters, you must set this parameter to prefix.
This parameter is required.
example:prefix
public CreateWebCCRuleRequest.Builder name(String name)
The name of the rule. The name can be up to 128 characters in length and contain letters, digits, and underscores (_).
This parameter is required.
example:testrule
public CreateWebCCRuleRequest.Builder resourceGroupId(String resourceGroupId)
The ID of the resource group to which the Anti-DDoS Proxy instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.
For more information about resource groups, see Create a resource group.
example:rg-acfm2pz25js****
public CreateWebCCRuleRequest.Builder ttl(Integer ttl)
The blocking duration. Valid values: 60 to 86400. Unit: seconds.
This parameter is required.
example:60
public CreateWebCCRuleRequest.Builder uri(String uri)
The check path.
The URI cannot be modified. The domain name of the website, the check path, and the rule name uniquely identify a rule.
This parameter is required.
example:/abc/a.php
public CreateWebCCRuleRequest build()
Copyright © 2026. All rights reserved.