public static class ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
host
The hostname to which requests are redirected.
|
String |
httpCode
The redirect type.
|
String |
path
The path to which requests are redirected.
|
String |
port
The port to which requests are redirected.
|
String |
protocol
The redirect protocol.
|
String |
query
The query string to which requests are redirected.
|
| 构造器和说明 |
|---|
ListRulesResponseBodyRulesRuleActionsRedirectConfig() |
@NameInMap(value="Host") public String host
The hostname to which requests are redirected. Valid values:
* **${host}** (default): If ${host} is returned, no other character is appended.
* Limits on a custom value:
* The hostname is 3 to 128 characters in length, and can contain lowercase letters, digits, hyphens (-), and periods (.). Asterisks (\\*) and question marks (?) can be used as wildcard characters.
* The hostname contains at least one period (.) but does not start or end with a period (.).
* The rightmost domain label contains only letters and wildcard characters. It does not contain digits or hyphens (-).
* The domain labels do not start or end with hyphens (-).
* You can use asterisks (\\*) and question marks (?) anywhere in a domain label as wildcard characters.
@NameInMap(value="HttpCode") public String httpCode
The redirect type. Valid values: **301**, **302**, **303**, **307**, and **308**.
@NameInMap(value="Path") public String path
The path to which requests are redirected. Valid values:
* **${path}** (default): You can reference \\\*\*${host}**, **${protocol}**, and**${port}**. The path can consist of **${host}**,**${protocol}**, and **${port}\\\*\*. Each variable can be used only once. The preceding variables can be used at the same time or combined with a custom value.
* Limits on a custom value:
* The value is 1 to 128 characters in length.
* It starts with a forward slash (/) and contains letters, digits, and the following special characters: `$ - _ .+ / & ~ @ :`. It does not contain the following special characters: `" % # ; ! ( ) [ ] ^ , "`. You can use asterisks (\\*) and question marks (?) as wildcard characters.
@NameInMap(value="Port") public String port
The port to which requests are redirected. Valid values:
* **${port}** (default): If ${port} is returned, no other character is appended.
* Other valid values: **1 to 63335**.
@NameInMap(value="Protocol") public String protocol
The redirect protocol. Valid values:
* **${protocol}** (default): If ${protocol} is returned, no other character is appended.
* **HTTP** or **HTTPS**.
> HTTPS listeners support only HTTP to HTTPS redirection.
@NameInMap(value="Query") public String query
The query string to which requests are redirected. The query string must be 1 to 128 characters in length, and can contain printable characters, excluding uppercase letters and the following special characters: `# [ ] { } \\ | < > &`.
public ListRulesResponseBodyRulesRuleActionsRedirectConfig()
public static ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig build(Map<String,?> map) throws Exception
Exceptionpublic ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig setHost(String host)
public String getHost()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig setHttpCode(String httpCode)
public String getHttpCode()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig setPath(String path)
public String getPath()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig setPort(String port)
public String getPort()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig setProtocol(String protocol)
public String getProtocol()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsRedirectConfig setQuery(String query)
public String getQuery()
Copyright © 2024. All rights reserved.