public static class CreateRuleRequest.CreateRuleRequestRuleActionsInsertHeaderConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
key
The key of the header.
|
String |
value
The value of the header to be inserted.
|
String |
valueType
The type of header.
|
| 构造器和说明 |
|---|
CreateRuleRequestRuleActionsInsertHeaderConfig() |
@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 header key specified by **InsertHeaderConfig** must be unique.
> You cannot specify 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 ID of the ALB instance.
* **SLBPort**: the listening 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 header. Valid values:
* **UserDefined**: a custom header
* **ReferenceHeader**: a header that references one of the request headers
* **SystemDefined**: a header predefined by the system
public CreateRuleRequestRuleActionsInsertHeaderConfig()
public static CreateRuleRequest.CreateRuleRequestRuleActionsInsertHeaderConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateRuleRequest.CreateRuleRequestRuleActionsInsertHeaderConfig setKey(String key)
public String getKey()
public CreateRuleRequest.CreateRuleRequestRuleActionsInsertHeaderConfig setValue(String value)
public String getValue()
public CreateRuleRequest.CreateRuleRequestRuleActionsInsertHeaderConfig setValueType(String valueType)
public String getValueType()
Copyright © 2024. All rights reserved.