public static final class ConfigNetworkRegionBlockRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ConfigNetworkRegionBlockRequest |
build() |
ConfigNetworkRegionBlockRequest.Builder |
config(String config)
The details of the configurations of blocked locations.
|
ConfigNetworkRegionBlockRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
ConfigNetworkRegionBlockRequest.Builder |
regionId(String regionId)
RegionId.
|
public ConfigNetworkRegionBlockRequest.Builder regionId(String regionId)
public ConfigNetworkRegionBlockRequest.Builder config(String config)
* **RegionBlockSwitch**: the status of the Location Blacklist policy. This field is required and must be of the string type. Valid values: * **on**: enables the policy. * **off**: disables the policy. * **Countries**: the codes of the countries or areas from which you want to block requests. This field is optional and must be of the array type. ** **Note**For more information, see the **Codes of countries and areas** section of the [Codes of administrative regions in China and codes of countries and areas](~~167926~~) topic. For example, `[1,2]` specifies China and Australia. * **Provinces**: the codes of the administrative regions in China from which you want to block requests. This field is optional and must be of the array type. ** **Note**For more information, see the **Codes of administrative regions in China** section of the [Codes of administrative regions in China and codes of countries and areas](~~167926~~) topic. For example, `[11,12]` specifies Beijing and Tianjin.
public ConfigNetworkRegionBlockRequest.Builder instanceId(String instanceId)
> You can call the [DescribeInstanceIds](~~157459~~) operation to query the IDs of all instances.
public ConfigNetworkRegionBlockRequest build()
Copyright © 2023. All rights reserved.