public static final class ModifyDefenseRuleStatusRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyDefenseRuleStatusRequest |
build() |
ModifyDefenseRuleStatusRequest.Builder |
instanceId(String instanceId)
The ID of the Web Application Firewall (WAF) instance.
|
ModifyDefenseRuleStatusRequest.Builder |
regionId(String regionId)
The region where the WAF instance resides.
|
ModifyDefenseRuleStatusRequest.Builder |
resourceManagerResourceGroupId(String resourceManagerResourceGroupId)
The ID of the resource group.
|
ModifyDefenseRuleStatusRequest.Builder |
ruleId(Long ruleId)
The ID of the protection rule whose status you want to change.
|
ModifyDefenseRuleStatusRequest.Builder |
ruleStatus(Integer ruleStatus)
The new status of the protection rule.
|
ModifyDefenseRuleStatusRequest.Builder |
templateId(Long templateId)
The ID of the protection rule template to which the protection rule whose status you want to change belongs.
|
public ModifyDefenseRuleStatusRequest.Builder instanceId(String instanceId)
> You can call the [DescribeInstance](~~433756~~) operation to obtain the ID of the WAF instance.
public ModifyDefenseRuleStatusRequest.Builder regionId(String regionId)
* **cn-hangzhou:** the Chinese mainland. * **ap-southeast-1:** outside the Chinese mainland.
public ModifyDefenseRuleStatusRequest.Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId)
public ModifyDefenseRuleStatusRequest.Builder ruleId(Long ruleId)
public ModifyDefenseRuleStatusRequest.Builder ruleStatus(Integer ruleStatus)
* **0:** disabled. * **1:** enabled.
public ModifyDefenseRuleStatusRequest.Builder templateId(Long templateId)
public ModifyDefenseRuleStatusRequest build()
Copyright © 2024. All rights reserved.