public static class CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
host
The hostname to which requests are redirected.
|
String |
httpCode
The HTTP status code that indicates the redirect type.
|
String |
path
The path to which requests are redirected.
|
String |
port
The port to which requests are distributed.
|
String |
protocol
The redirect protocol.
|
String |
query
The query string of the URL to which requests are redirected.
|
| 构造器和说明 |
|---|
CreateRulesRequestRulesRuleActionsRedirectConfig() |
@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 the value:
* The hostname must be 3 to 128 characters in length, and can contain lowercase letters, digits, hyphens (-), and periods (.). Asterisks (\\*) and question marks (?) can be used as wildcards.
* The hostname contains at least one period (.) but does not start or end with a period (.).
* The rightmost domain label can contain 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 (?) as wildcards anywhere in a domain label.
@NameInMap(value="HttpCode") public String httpCode
The HTTP status code that indicates 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:
* Default value: **${path}**. **${host}**, **${protocol}**, and **${port}** are also supported. Each variable can be specified only once. You can specify one or more of the preceding variables in each request. You can also combine them with a custom value.
* Limits on the value:
* The path must be 1 to 128 characters in length.
* It must start with a forward slash (/) and can contain letters, digits, and the following special characters: `$ - _ .+ / & ~ @ :`. It cannot contain the following special characters: `" % # ; ! ( ) [ ]^ , "`. You can use asterisks (\\*) and question marks (?) as wildcard characters.
* The path is case-sensitive.
@NameInMap(value="Port") public String port
The port to which requests are distributed.
* **${port}** (default): If you set the value to ${port}, you cannot add other characters to the value.
* 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 HTTPS to HTTPS redirects.
@NameInMap(value="Query") public String query
The query string of the URL to which requests are redirected.
* Default value: **${query}**. **${host}**, **${protocol}**, and **${port}** are also supported. Each variable can be specified only once. The preceding variables can be used at the same time or combined with a custom value.
* Limits on the value:
* The query string must be 1 to 128 characters in length.
* It can contain printable characters, except space characters, the special characters `# [ ] { } \\ | < > &`, and uppercase letters.
public CreateRulesRequestRulesRuleActionsRedirectConfig()
public static CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig setHost(String host)
public String getHost()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig setHttpCode(String httpCode)
public String getHttpCode()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig setPath(String path)
public String getPath()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig setPort(String port)
public String getPort()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig setProtocol(String protocol)
public String getProtocol()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRedirectConfig setQuery(String query)
public String getQuery()
Copyright © 2024. All rights reserved.