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)
> 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](~~91724~~) operation to query all domain names.
public ModifyWebCacheCustomRuleRequest.Builder resourceGroupId(String resourceGroupId)
public ModifyWebCacheCustomRuleRequest.Builder rules(String rules)
* **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: * **standard**: uses the standard mode. * **aggressive**: uses the enhanced mode. * **bypass**: No data is cached. * **CacheTtl**: the expiration time of the page cache. This field is required and must be of the INTEGER type. Unit: seconds.
public ModifyWebCacheCustomRuleRequest build()
Copyright © 2023. All rights reserved.