public static final class ModifyWebAIProtectSwitchRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyWebAIProtectSwitchRequest |
build() |
ModifyWebAIProtectSwitchRequest.Builder |
config(String config)
The details of the Intelligent Protection policy.
|
ModifyWebAIProtectSwitchRequest.Builder |
domain(String domain)
The domain name of the website.
|
ModifyWebAIProtectSwitchRequest.Builder |
regionId(String regionId)
RegionId.
|
ModifyWebAIProtectSwitchRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
public ModifyWebAIProtectSwitchRequest.Builder regionId(String regionId)
public ModifyWebAIProtectSwitchRequest.Builder config(String config)
The details of the Intelligent Protection policy. This parameter is a JSON string. The string contains the following fields:
AiRuleEnable: the status of the Intelligent Protection policy. This field is required and must be of the integer type. Valid values:
This parameter is required.
example:{"AiRuleEnable": 1}
public ModifyWebAIProtectSwitchRequest.Builder domain(String domain)
The domain name of the website.
A forwarding rule must be configured for a domain name. You can call the DescribeDomains operation to query all domain names.
This parameter is required.
example:public ModifyWebAIProtectSwitchRequest.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 ModifyWebAIProtectSwitchRequest build()
Copyright © 2026. All rights reserved.