public static class ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
key
The key of the header.
|
String |
value
The value of the header.
|
String |
valueType
The type of the header.
|
| 构造器和说明 |
|---|
ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig() |
@NameInMap(value="Key") public String key
The key of the header. 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.
> **Cookie** and **Host** are not supported.
@NameInMap(value="Value") public String value
The value of the header.
* If **ValueType** is set to **SystemDefined**, one of the following values is supported:
* **ClientSrcPort**: the client port.
* **ClientSrcIp**: the client IP address.
* **Protocol**: the request protocol (HTTP or HTTPS).
* **SLBId**: the ID of the ALB instance.
* **SLBPort**: the listener port.
* If **ValueType** is set to **UserDefined**, a custom header value is supported. 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 wildcard characters. The header value cannot start or end with a space character.
* If **ValueType** is set to **ReferenceHeader**, one of the request headers is referenced. 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 ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig()
public static ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig build(Map<String,?> map) throws Exception
Exceptionpublic ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig setKey(String key)
public String getKey()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig setValue(String value)
public String getValue()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsInsertHeaderConfig setValueType(String valueType)
public String getValueType()
Copyright © 2024. All rights reserved.