public class ModifyWebCacheCustomRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
domain
The domain name of the website.
|
String |
resourceGroupId
The ID of the resource group to which the instance belongs in Resource Management.
|
String |
rules
The details of the custom rule.
|
| 构造器和说明 |
|---|
ModifyWebCacheCustomRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ModifyWebCacheCustomRuleRequest |
build(Map<String,?> map) |
String |
getDomain() |
String |
getResourceGroupId() |
String |
getRules() |
ModifyWebCacheCustomRuleRequest |
setDomain(String domain) |
ModifyWebCacheCustomRuleRequest |
setResourceGroupId(String resourceGroupId) |
ModifyWebCacheCustomRuleRequest |
setRules(String rules) |
@NameInMap(value="Domain") public String domain
The domain name of the website.
A forwarding rule must be configured for the domain name, and the domain name must be associated with an instance that uses the Enhanced function plan. You can call the DescribeDomains operation to query all domain names.
This parameter is required.
example:@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.
example:default
@NameInMap(value="Rules") public String rules
The details of the custom rule. This parameter is a JSON string. The string contains the following fields:
Name: the name of the rule. This field is required and must be of the string type.
Uri: the path to the cached page. This field is required and must be of the STRING type.
Mode: the cache mode. This field is required and must be of the STRING type. Valid values:
CacheTtl: the expiration time of the page cache. This field is required and must be of the INTEGER type. Unit: seconds.
This parameter is required.
example:[{"Name": "test","Uri": "/a","Mode": "standard","CacheTtl": 3600}]
public static ModifyWebCacheCustomRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic ModifyWebCacheCustomRuleRequest setDomain(String domain)
public String getDomain()
public ModifyWebCacheCustomRuleRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public ModifyWebCacheCustomRuleRequest setRules(String rules)
public String getRules()
Copyright © 2026. All rights reserved.