public class UpstreamURLRewriteParameters extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpstreamURLRewriteParameters() |
UpstreamURLRewriteParameters(UpstreamURLRewriteParameters 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 |
getAction()
Get Origin-Pull URL rewrite action.
|
String |
getRegex()
Get Origin-Pull URL rewrite used for regex replacement to match the full path regular expression.
|
String |
getType()
Get Origin-Pull URL rewrite type.
|
String |
getValue()
Get Origin-Pull URL rewrite value.
|
void |
setAction(String Action)
Set Origin-Pull URL rewrite action.
|
void |
setRegex(String Regex)
Set Origin-Pull URL rewrite used for regex replacement to match the full path regular expression.
|
void |
setType(String Type)
Set Origin-Pull URL rewrite type.
|
void |
setValue(String Value)
Set Origin-Pull URL rewrite value.
|
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, toJsonString
public UpstreamURLRewriteParameters()
public UpstreamURLRewriteParameters(UpstreamURLRewriteParameters source)
public String getType()
public void setType(String Type)
Type
- Origin-Pull URL rewrite type. valid values: Path.public String getAction()
public void setAction(String Action)
Action
- Origin-Pull URL rewrite action. valid values:.
public String getValue()
public void setValue(String Value)
Value
- Origin-Pull URL rewrite value. should meet URL Path standard and ensure the rewritten Path starts with / to prevent the Host of the origin-pull URL from being modified, with a length range of 1–1024. when Action is addPrefix, it cannot end with /. when Action is rmvPrefix, * cannot exist. when Action is regexReplace, $NUM can be used to refer to regular expression capture groups, where NUM represents the group number, such as $1, and supports up to $9.public String getRegex()
public void setRegex(String Regex)
Regex
- Origin-Pull URL rewrite used for regex replacement to match the full path regular expression. should meet Google RE2 standard with length range 1–1024. this field is required when Action is regexReplace, otherwise not required.Copyright © 2025. All rights reserved.