public static final class ModifyWebAreaBlockSwitchRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyWebAreaBlockSwitchRequest |
build() |
ModifyWebAreaBlockSwitchRequest.Builder |
config(String config)
Specifies whether to enable or disable the Location Blacklist (Domain Names) policy for a domain name.
|
ModifyWebAreaBlockSwitchRequest.Builder |
domain(String domain)
The domain name for which you want to enable or disable the Location Blacklist policy.
|
ModifyWebAreaBlockSwitchRequest.Builder |
regionId(String regionId)
RegionId.
|
ModifyWebAreaBlockSwitchRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
public ModifyWebAreaBlockSwitchRequest.Builder regionId(String regionId)
public ModifyWebAreaBlockSwitchRequest.Builder config(String config)
Specifies whether to enable or disable the Location Blacklist (Domain Names) policy for a domain name. The value is a string that consists of a JSON struct. The JSON struct contains the following parameters:
RegionblockEnable: the status of the Location Blacklist (Domain Names) policy. This parameter is required and must be of the INTEGER type. Valid values:
This parameter is required.
example:{"RegionblockEnable": 1}
public ModifyWebAreaBlockSwitchRequest.Builder domain(String domain)
The domain name for which you want to enable or disable the Location Blacklist policy.
You can call the DescribeDomains operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
This parameter is required.
example:public ModifyWebAreaBlockSwitchRequest.Builder resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
If you do not configure this parameter, the instance belongs to the default resource group.
example:rg-acfm2pz25js****
public ModifyWebAreaBlockSwitchRequest build()
Copyright © 2026. All rights reserved.