public static final class ModifyWebCacheCustomRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyWebCacheCustomRuleRequest |
build() |
ModifyWebCacheCustomRuleRequest.Builder |
domain(String domain)
The domain name of the website.
|
ModifyWebCacheCustomRuleRequest.Builder |
regionId(String regionId)
RegionId.
|
ModifyWebCacheCustomRuleRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
ModifyWebCacheCustomRuleRequest.Builder |
rules(String rules)
The details of the custom rule.
|
public ModifyWebCacheCustomRuleRequest.Builder regionId(String regionId)
public ModifyWebCacheCustomRuleRequest.Builder domain(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:public ModifyWebCacheCustomRuleRequest.Builder resourceGroupId(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
public ModifyWebCacheCustomRuleRequest.Builder rules(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 ModifyWebCacheCustomRuleRequest build()
Copyright © 2026. All rights reserved.