public class CreateWebCCRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
act
The action on the requests that trigger the custom frequency control rule.
|
Integer |
count
This parameter is required.
|
String |
domain
The domain name of the website.
|
Integer |
interval
This parameter is required.
|
String |
mode
The matching mode.
|
String |
name
The name of the rule.
|
String |
resourceGroupId
The ID of the resource group to which the Anti-DDoS Proxy instance belongs in Resource Management.
|
Integer |
ttl
The blocking duration.
|
String |
uri
The check path.
|
| 构造器和说明 |
|---|
CreateWebCCRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateWebCCRuleRequest |
build(Map<String,?> map) |
String |
getAct() |
Integer |
getCount() |
String |
getDomain() |
Integer |
getInterval() |
String |
getMode() |
String |
getName() |
String |
getResourceGroupId() |
Integer |
getTtl() |
String |
getUri() |
CreateWebCCRuleRequest |
setAct(String act) |
CreateWebCCRuleRequest |
setCount(Integer count) |
CreateWebCCRuleRequest |
setDomain(String domain) |
CreateWebCCRuleRequest |
setInterval(Integer interval) |
CreateWebCCRuleRequest |
setMode(String mode) |
CreateWebCCRuleRequest |
setName(String name) |
CreateWebCCRuleRequest |
setResourceGroupId(String resourceGroupId) |
CreateWebCCRuleRequest |
setTtl(Integer ttl) |
CreateWebCCRuleRequest |
setUri(String uri) |
@NameInMap(value="Act") public String act
The action on the requests that trigger the custom frequency control rule. Valid values:
This parameter is required.
example:close
@NameInMap(value="Count") public Integer count
This parameter is required.
example:60
@NameInMap(value="Domain") public 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:@NameInMap(value="Interval") public Integer interval
This parameter is required.
example:20
@NameInMap(value="Mode") public 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
@NameInMap(value="Name") public 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
@NameInMap(value="ResourceGroupId") public 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****
@NameInMap(value="Ttl") public Integer ttl
The blocking duration. Valid values: 60 to 86400. Unit: seconds.
This parameter is required.
example:60
@NameInMap(value="Uri") public 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 static CreateWebCCRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateWebCCRuleRequest setAct(String act)
public String getAct()
public CreateWebCCRuleRequest setCount(Integer count)
public Integer getCount()
public CreateWebCCRuleRequest setDomain(String domain)
public String getDomain()
public CreateWebCCRuleRequest setInterval(Integer interval)
public Integer getInterval()
public CreateWebCCRuleRequest setMode(String mode)
public String getMode()
public CreateWebCCRuleRequest setName(String name)
public String getName()
public CreateWebCCRuleRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateWebCCRuleRequest setTtl(Integer ttl)
public Integer getTtl()
public CreateWebCCRuleRequest setUri(String uri)
public String getUri()
Copyright © 2026. All rights reserved.