public class VersionMatch extends AbstractModel
Constructor and Description |
---|
VersionMatch() |
VersionMatch(VersionMatch 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 |
getExpression()
Get Rule requirements for range match:
It should be described in an open or closed range, i.e., `(a,b)` or `[a,b]`, where both a and b are integers
Rule requirements for exact match:
Exact string match
|
String |
getKey()
Get Matching rule key.
|
String |
getMethod()
Get Match method.
|
String |
getVersion()
Get Function version name
|
void |
setExpression(String Expression)
Set Rule requirements for range match:
It should be described in an open or closed range, i.e., `(a,b)` or `[a,b]`, where both a and b are integers
Rule requirements for exact match:
Exact string match
|
void |
setKey(String Key)
Set Matching rule key.
|
void |
setMethod(String Method)
Set Match method.
|
void |
setVersion(String Version)
Set Function version name
|
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, toJsonString
public VersionMatch()
public VersionMatch(VersionMatch source)
public String getVersion()
public void setVersion(String Version)
Version
- Function version namepublic String getKey()
public void setKey(String Key)
Key
- Matching rule key. When the API is called, pass in the `key` to route the request to the specified version based on the matching rule
Header method:
Enter "invoke.headers.User" for `key` and pass in `RoutingKey:{"User":"value"}` when invoking a function through `invoke` for invocation based on rule matchingpublic String getMethod()
public void setMethod(String Method)
Method
- Match method. Valid values:
range: range match
exact: exact string matchpublic String getExpression()
public void setExpression(String Expression)
Expression
- Rule requirements for range match:
It should be described in an open or closed range, i.e., `(a,b)` or `[a,b]`, where both a and b are integers
Rule requirements for exact match:
Exact string matchCopyright © 2023. All rights reserved.