public static final class ModifyDefenseResourceXffRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyDefenseResourceXffRequest.Builder |
acwCookieStatus(Integer acwCookieStatus)
The status of the tracking cookie.
|
ModifyDefenseResourceXffRequest.Builder |
acwSecureStatus(Integer acwSecureStatus)
The status of the secure attribute of the tracking cookie.
|
ModifyDefenseResourceXffRequest.Builder |
acwV3SecureStatus(Integer acwV3SecureStatus)
The status of the secure attribute of the slider CAPTCHA cookie.
|
ModifyDefenseResourceXffRequest |
build() |
ModifyDefenseResourceXffRequest.Builder |
customHeaders(List<String> customHeaders)
The custom header fields.
|
ModifyDefenseResourceXffRequest.Builder |
instanceId(String instanceId)
The ID of the Web Application Firewall (WAF) instance.
|
ModifyDefenseResourceXffRequest.Builder |
regionId(String regionId)
The region in which the WAF instance is deployed.
|
ModifyDefenseResourceXffRequest.Builder |
resource(String resource)
The name of the protected object.
|
ModifyDefenseResourceXffRequest.Builder |
resourceManagerResourceGroupId(String resourceManagerResourceGroupId)
The ID of the Alibaba Cloud resource group.
|
ModifyDefenseResourceXffRequest.Builder |
xffStatus(Integer xffStatus)
Specifies whether a Layer 7 proxy is deployed in front of WAF.
|
public ModifyDefenseResourceXffRequest.Builder acwCookieStatus(Integer acwCookieStatus)
* **0**: disabled * **1**: enabled. This is the default value.
public ModifyDefenseResourceXffRequest.Builder acwSecureStatus(Integer acwSecureStatus)
* **0**: disabled. This is the default value. * **1**: enabled.
public ModifyDefenseResourceXffRequest.Builder acwV3SecureStatus(Integer acwV3SecureStatus)
* **0**: disabled. This is the default value. * **1**: enabled.
public ModifyDefenseResourceXffRequest.Builder customHeaders(List<String> customHeaders)
> The first IP address in the specified custom header field is used as the originating IP address of the client to prevent X-Forwarded-For forgery. If you specify multiple header fields, WAF reads the values of the header fields in sequence until the originating IP address is obtained. If the originating IP address cannot be obtained, the first IP address in the X-Forwarded-For header is used as the originating IP address of the client.
public ModifyDefenseResourceXffRequest.Builder instanceId(String instanceId)
> You can call the [DescribeInstance](~~433756~~) operation to query the ID of the WAF instance.
public ModifyDefenseResourceXffRequest.Builder regionId(String regionId)
* **cn-hangzhou**: Chinese mainland. * **ap-southeast-1**: outside the Chinese mainland.
public ModifyDefenseResourceXffRequest.Builder resource(String resource)
public ModifyDefenseResourceXffRequest.Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId)
public ModifyDefenseResourceXffRequest.Builder xffStatus(Integer xffStatus)
* **0**: No Layer 7 proxies are deployed. This is the default value. * **1**: A Layer 7 proxy is deployed.
public ModifyDefenseResourceXffRequest build()
Copyright © 2024. All rights reserved.