public static class UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
host
The hostname to which requests are forwarded.
|
String |
httpCode
The redirect type.
|
String |
path
The path to which requests are redirected.
|
String |
port
The port to which requests are forwarded.
|
String |
protocol
The redirect protocol.
|
String |
query
The query string to which requests are forwarded.
|
| 构造器和说明 |
|---|
UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig() |
@NameInMap(value="Host") public String host
The hostname to which requests are forwarded.
Take note of the following rules when you specify a hostname:
* The hostname must be 3 to 128 characters in length, and can contain lowercase letters, digits, and the following special characters: - . \\* = ~ _ + \\ ^ ! $ & | ( ) [ ] ?.
* The hostname must contain at least one period (.) but cannot start or end with a period (.).
* The rightmost domain label can contain only letters, asterisks (*), and question marks (?), and cannot contain digits or hyphens (-). The leftmost `domain label` can contain asterisks (*).
* The domain labels cannot start or end with a hyphen (-). You can specify asterisks (∗) and question marks (?) anywhere in a domain label.
@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.
* **${path}** (default): You can reference \\\*\*${host}**, **${protocol}** and **${port}\\\*\*. Each variable can be used 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 that meets the following requirements:
* The custom value must be 1 to 128 characters in length. You can use asterisks (\\*) and question marks (?) as wildcards.
* The custom value can contain letters, digits, and the following special characters: `$ - _ . + / & ~ @ : \\" * ?`. The custom value must start with a forward slash (/) and cannot contain the following characters: `" % # ; ! ( ) [ ] ^ , "`.
@NameInMap(value="Port") public String port
The port to which requests are forwarded.
Valid values: **1** to **63335**.
@NameInMap(value="Protocol") public String protocol
The redirect protocol.
Valid values: **HTTP** and **HTTPS**.
> HTTPS listeners support only HTTP to HTTPS redirection.
@NameInMap(value="Query") public String query
The query string to which requests are forwarded.
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 UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig()
public static UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig setHost(String host)
public String getHost()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig setHttpCode(String httpCode)
public String getHttpCode()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig setPath(String path)
public String getPath()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig setPort(String port)
public String getPort()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig setProtocol(String protocol)
public String getProtocol()
public UpdateRulesAttributeRequest.UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig setQuery(String query)
public String getQuery()
Copyright © 2024. All rights reserved.