public static class CreateRuleRequest.CreateRuleRequestRuleActionsRewriteConfig
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.
|
| 构造器和说明 |
|---|
CreateRuleRequestRuleActionsRewriteConfig() |
@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.
* If you want to specify a custom value, make sure that the following requirements are met:
* 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 and wildcards, and cannot contain digits or hyphens (-). The leftmost `domain label` can be an asterisk (\\*).
* 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="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 must be 1 to 128 characters in length, and can contain asterisks (\\*) and question marks (?) as wildcards. The value is case-sensitive.
* 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.
@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. 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 CreateRuleRequestRuleActionsRewriteConfig()
public static CreateRuleRequest.CreateRuleRequestRuleActionsRewriteConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateRuleRequest.CreateRuleRequestRuleActionsRewriteConfig setHost(String host)
public String getHost()
public CreateRuleRequest.CreateRuleRequestRuleActionsRewriteConfig setPath(String path)
public String getPath()
public CreateRuleRequest.CreateRuleRequestRuleActionsRewriteConfig setQuery(String query)
public String getQuery()
Copyright © 2024. All rights reserved.