public class PathRule extends AbstractModel
header, skipSign| 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. 
 | 
Boolean | 
getFullMatch()
Get When `Regex` is `false`, this parameter should be `true`. 
 | 
String | 
getOrigin()
Get Origin server when the path matches. 
 | 
String | 
getOriginArea()
Get Region of the origin server. 
 | 
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 | 
setFullMatch(Boolean FullMatch)
Set When `Regex` is `false`, this parameter should be `true`. 
 | 
void | 
setOrigin(String Origin)
Set Origin server when the path matches. 
 | 
void | 
setOriginArea(String OriginArea)
Set Region of the origin server. 
 | 
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, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic PathRule()
public PathRule(PathRule source)
public Boolean getRegex()
public void setRegex(Boolean Regex)
Regex - Whether to enable wildcard match (`*`).
`false`: disabled
`true`: enabled
Note: this field may return `null`, indicating that no valid value 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 - Region of the origin server. Valid values: `CN` and `OV`.
`CN`: Within 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 value 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 can be obtained.public Boolean getFullMatch()
public void setFullMatch(Boolean FullMatch)
FullMatch - When `Regex` is `false`, this parameter should be `true`.
`false`: Disabled
`true`: enabled
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.