public static class UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
coverEnabled
Specifies whether to overwrite the request header.
|
String |
key
The key of the header to be inserted.
|
String |
value
The value of the header to be inserted.
|
String |
valueType
The type of the header.
|
| 构造器和说明 |
|---|
UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig() |
@NameInMap(value="CoverEnabled") public Boolean coverEnabled
Specifies whether to overwrite the request header. Valid values:
* **true**
* **false** (default)
@NameInMap(value="Key") public String key
The key of the header to be inserted. The key must be 1 to 40 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The key specified in `InsertHeader` must be unique.
> You cannot use the following header keys (case-insensitive): `slb-id`, `slb-ip`, `x-forwarded-for`, `x-forwarded-proto`, `x-forwarded-eip`, `x-forwarded-port`, `x-forwarded-client-srcport`, `connection`, `upgrade`, `content-length`, `transfer-encoding`, `keep-alive`, `te, host`, `cookie`, `remoteip`, and `authority`.
@NameInMap(value="Value") public String value
The value of the header to be inserted.
* If **ValueType** is set to **SystemDefined**, you can specify one of the following header values:
* **ClientSrcPort**: the client port.
* **ClientSrcIp**: the client IP address.
* **Protocol**: the request protocol (HTTP or HTTPS).
* **SLBId**: the ALB instance ID.
* **SLBPort**: the listener port.
* If **ValueType** is set to **UserDefined**, you can specify a custom header value. The header value must be 1 to 128 characters in length, and can contain printable characters whose ASCII values are `greater than or equal to 32 and lower than 127`. You can use asterisks (\\*) and question marks (?) as wildcards. The value cannot start or end with a space character.
* If **ValueType** is set to **ReferenceHeader**, you can reference one of the request headers. The header value must be 1 to 128 characters in length, and can contain lowercase letters, digits, underscores (_), and hyphens (-).
@NameInMap(value="ValueType") public String valueType
The type of the header. Valid values:
* **UserDefined**: a user-defined header
* **ReferenceHeader**: a header that is referenced from a request header.
* **SystemDefined**: a system-defined header.
public UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig()
public static UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig setCoverEnabled(Boolean coverEnabled)
public Boolean getCoverEnabled()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig setKey(String key)
public String getKey()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig setValue(String value)
public String getValue()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig setValueType(String valueType)
public String getValueType()
Copyright © 2024. All rights reserved.