public class InvokeRequest extends AbstractModel
Constructor and Description |
---|
InvokeRequest() |
InvokeRequest(InvokeRequest 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 |
getClientContext()
Get Function running parameter, which is in the JSON format.
|
String |
getFunctionName()
Get Function name
|
String |
getInvocationType()
Get Fill in `RequestResponse` for synchronized invocations (default and recommended) and `Event` for asychronized invocations.
|
String |
getLogType()
Get Null for async invocations
|
String |
getNamespace()
Get Namespace
|
String |
getQualifier()
Get The version or alias of the triggered function.
|
String |
getRoutingKey()
Get Traffic routing config in json format, e.g., {"k":"v"}.
|
void |
setClientContext(String ClientContext)
Set Function running parameter, which is in the JSON format.
|
void |
setFunctionName(String FunctionName)
Set Function name
|
void |
setInvocationType(String InvocationType)
Set Fill in `RequestResponse` for synchronized invocations (default and recommended) and `Event` for asychronized invocations.
|
void |
setLogType(String LogType)
Set Null for async invocations
|
void |
setNamespace(String Namespace)
Set Namespace
|
void |
setQualifier(String Qualifier)
Set The version or alias of the triggered function.
|
void |
setRoutingKey(String RoutingKey)
Set Traffic routing config in json format, e.g., {"k":"v"}.
|
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 InvokeRequest()
public InvokeRequest(InvokeRequest source)
public String getFunctionName()
public void setFunctionName(String FunctionName)
FunctionName
- Function namepublic String getInvocationType()
public void setInvocationType(String InvocationType)
InvocationType
- Fill in `RequestResponse` for synchronized invocations (default and recommended) and `Event` for asychronized invocations. Note that for synchronized invocations, the max timeout period is 300s. Choose asychronized invocations if the required timeout period is longer than 300 seconds. You can also use [InvokeFunction](https://intl.cloud.tencent.com/document/product/583/58400?from_cn_redirect=1) for synchronized invocations.public String getQualifier()
public void setQualifier(String Qualifier)
Qualifier
- The version or alias of the triggered function. It defaults to $LATESTpublic String getClientContext()
public void setClientContext(String ClientContext)
ClientContext
- Function running parameter, which is in the JSON format. The maximum parameter size is 6 MB for synchronized invocations and 128KB for asynchronized invocations. This field corresponds to [event input parameter](https://intl.cloud.tencent.com/document/product/583/9210?from_cn_redirect=1#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E).public String getLogType()
public void setLogType(String LogType)
LogType
- Null for async invocationspublic String getNamespace()
public void setNamespace(String Namespace)
Namespace
- Namespacepublic String getRoutingKey()
public void setRoutingKey(String RoutingKey)
RoutingKey
- Traffic routing config in json format, e.g., {"k":"v"}. Please note that both "k" and "v" must be strings. Up to 1024 bytes allowed.Copyright © 2023. All rights reserved.