public class ModifyWebAreaBlockSwitchRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
config
Specifies whether to enable or disable the Location Blacklist (Domain Names) policy for a domain name.
|
String |
domain
The domain name for which you want to enable or disable the Location Blacklist policy.
|
String |
resourceGroupId
The ID of the resource group to which the instance belongs in Resource Management.
|
| 构造器和说明 |
|---|
ModifyWebAreaBlockSwitchRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ModifyWebAreaBlockSwitchRequest |
build(Map<String,?> map) |
String |
getConfig() |
String |
getDomain() |
String |
getResourceGroupId() |
ModifyWebAreaBlockSwitchRequest |
setConfig(String config) |
ModifyWebAreaBlockSwitchRequest |
setDomain(String domain) |
ModifyWebAreaBlockSwitchRequest |
setResourceGroupId(String resourceGroupId) |
@NameInMap(value="Config") public 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}
@NameInMap(value="Domain") public 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:@NameInMap(value="ResourceGroupId") public 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 static ModifyWebAreaBlockSwitchRequest build(Map<String,?> map) throws Exception
Exceptionpublic ModifyWebAreaBlockSwitchRequest setConfig(String config)
public String getConfig()
public ModifyWebAreaBlockSwitchRequest setDomain(String domain)
public String getDomain()
public ModifyWebAreaBlockSwitchRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
Copyright © 2026. All rights reserved.