public static final class ModifyWebPreciseAccessRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyWebPreciseAccessRuleRequest |
build() |
ModifyWebPreciseAccessRuleRequest.Builder |
domain(String domain)
The domain name of the website.
|
ModifyWebPreciseAccessRuleRequest.Builder |
expires(Integer expires)
The validity period of the rule.
|
ModifyWebPreciseAccessRuleRequest.Builder |
regionId(String regionId)
RegionId.
|
ModifyWebPreciseAccessRuleRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
ModifyWebPreciseAccessRuleRequest.Builder |
rules(String rules)
The settings of the accurate access control rule.
|
public ModifyWebPreciseAccessRuleRequest.Builder regionId(String regionId)
public ModifyWebPreciseAccessRuleRequest.Builder domain(String domain)
> A forwarding rule must be configured for the domain name. You can call the [DescribeDomains](~~91724~~) operation to query all domain names.
public ModifyWebPreciseAccessRuleRequest.Builder expires(Integer expires)
public ModifyWebPreciseAccessRuleRequest.Builder resourceGroupId(String resourceGroupId)
public ModifyWebPreciseAccessRuleRequest.Builder rules(String rules)
* **action**: the action that is performed if the rule is matched. This field is required and must be of the string type. Valid values: * **accept**: allows the requests that match the rule. * **block**: blocks the requests that match the rule. * **challenge**: implements a CAPTCHA for the requests that match the rule. * **name**: the name of the rule. This field is required and must be of the string type. * **condition**: the match conditions. This field is required and must be of the map type. A match condition contains the following parameters. ** **Note**The AND logical operator is used to define the relationship among multiple match conditions. * **field**: the match field. This parameter is required and must be of the string type. * **match_method**: the logical relation. This parameter is required and must be of the string type. ** **Note**For information about the mappings between the **field** and **match_method** parameters, see the Mappings between the field and match_method parameters table in this topic. * **content**: the match content. This parameter is required and must be of the string type. * **header_name**: the HTTP header. This parameter is optional and must be of the string type. This parameter takes effect only when **field** is **header**.
public ModifyWebPreciseAccessRuleRequest build()
Copyright © 2023. All rights reserved.