public static class CreateRulesRequest.CreateRulesRequestRulesRuleActionsRewriteConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
host
The hostname to which requests are redirected.
|
String |
path
The path to which requests are redirected.
|
String |
query
The query string of the URL to which requests are redirected.
|
| 构造器和说明 |
|---|
CreateRulesRequestRulesRuleActionsRewriteConfig() |
@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.
* A custom value that meets the following requirements:
* The hostname must be 3 to 128 characters in length, and can contain lowercase letters, digits, hyphens (-), and periods (.). You can use asterisks (\\*) and question marks (?) as wildcard characters.
* 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 (?) anywhere in a domain label as wildcard characters.
@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="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 CreateRulesRequestRulesRuleActionsRewriteConfig()
public static CreateRulesRequest.CreateRulesRequestRulesRuleActionsRewriteConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateRulesRequest.CreateRulesRequestRulesRuleActionsRewriteConfig setHost(String host)
public String getHost()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRewriteConfig setPath(String path)
public String getPath()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsRewriteConfig setQuery(String query)
public String getQuery()
Copyright © 2024. All rights reserved.