public class PathRule extends AbstractModel
| Constructor and Description | 
|---|
| PathRule() | 
| PathRule(PathRule source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getForwardUri()Get Origin server URI path when the path matches, starting with `/` and excluding parameters. | 
| String | getOrigin()Get Origin server when the path matches. | 
| String | getOriginArea()Get Origin server region. | 
| String | getPath()Get Matched URL. | 
| Boolean | getRegex()Get Whether to enable wildcard match (`*`). | 
| HttpHeaderRule[] | getRequestHeaders()Get Origin-pull header setting when the path matches. | 
| String | getServerName()Get Origin server host header when the path matches. | 
| void | setForwardUri(String ForwardUri)Set Origin server URI path when the path matches, starting with `/` and excluding parameters. | 
| void | setOrigin(String Origin)Set Origin server when the path matches. | 
| void | setOriginArea(String OriginArea)Set Origin server region. | 
| void | setPath(String Path)Set Matched URL. | 
| void | setRegex(Boolean Regex)Set Whether to enable wildcard match (`*`). | 
| void | setRequestHeaders(HttpHeaderRule[] RequestHeaders)Set Origin-pull header setting when the path matches. | 
| void | setServerName(String ServerName)Set Origin server host header when the path matches. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic PathRule()
public PathRule(PathRule source)
public Boolean getRegex()
public void setRegex(Boolean Regex)
Regex - Whether to enable wildcard match (`*`).
false: disable
true: enable
Note: this field may return `null`, indicating that no valid values can be obtained.public String getPath()
public void setPath(String Path)
Path - Matched URL. Only URLs are supported, while parameters are not. The exact match is used by default. If wildcard match is enabled, up to 5 wildcards are supported. The URL can contain up to 1,024 characters.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getOrigin()
public void setOrigin(String Origin)
Origin - Origin server when the path matches. COS origin with private read/write is not supported. The default origin server will be used by default when this field is left empty.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getServerName()
public void setServerName(String ServerName)
ServerName - Origin server host header when the path matches. The default `ServerName` will be used by default when this field is left empty.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getOriginArea()
public void setOriginArea(String OriginArea)
OriginArea - Origin server region. Valid values: `CN` and `OV`.
CN: the Chinese mainland
OV: outside the Chinese mainland
Default value: `CN`.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getForwardUri()
public void setForwardUri(String ForwardUri)
ForwardUri - Origin server URI path when the path matches, starting with `/` and excluding parameters. The path can contain up to 1,024 characters. The wildcards in the match path can be respectively captured using `$1`, `$2`, `$3`, `$4`, and `$5`. Up to 10 values can be captured.
Note: this field may return `null`, indicating that no valid values can be obtained.public HttpHeaderRule[] getRequestHeaders()
public void setRequestHeaders(HttpHeaderRule[] RequestHeaders)
RequestHeaders - Origin-pull header setting when the path matches.
Note: this field may return `null`, indicating that no valid value is obtained.Copyright © 2021. All rights reserved.