public static class UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig
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 of the URL to which requests are redirected.
|
| 构造器和说明 |
|---|
UpdateRuleAttributeRequestRuleActionsRedirectConfig() |
@NameInMap(value="Host") public String host
The hostname to which requests are redirected. Valid values:
* **${host}** (default): If you set the value to ${host}, you cannot append other characters.
* 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 must contain at least one period (.) but cannot 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 cannot start or end with a hyphen (-).
* 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:
* 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.
* A custom value. You must make sure that the custom value meets the following requirements:
* The value is 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 wildcards.
@NameInMap(value="Port") public String port
The port to which requests are redirected. Valid values:
* **${port}** (default): If you set the value to ${port}, you cannot append other characters.
* You can also enter a port number. Valid values: **1 to 63335**.
@NameInMap(value="Protocol") public String protocol
The redirect protocol. Valid values:
* **${protocol}** (default): If you set the value to ${protocol}, you cannot append other characters.
* **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. Valid values:
* Default value: **${query}**. \\\*\*${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.
* A custom value. You must make sure that the custom value meets the following requirements:
* The value must be 1 to 128 characters in length.
* It can contain printable characters, except space characters, the special characters `# [ ] { } \\ | < > &`, and uppercase letters.
public UpdateRuleAttributeRequestRuleActionsRedirectConfig()
public static UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig setHost(String host)
public String getHost()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig setHttpCode(String httpCode)
public String getHttpCode()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig setPath(String path)
public String getPath()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig setPort(String port)
public String getPort()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig setProtocol(String protocol)
public String getProtocol()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsRedirectConfig setQuery(String query)
public String getQuery()
Copyright © 2024. All rights reserved.