com.tencentcloudapi.scf.v20180416.models.InvokeRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.scf.v20180416.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class InvokeRequest extends AbstractModel {
/**
* Function name
*/
@SerializedName("FunctionName")
@Expose
private String FunctionName;
/**
* 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.
*/
@SerializedName("InvocationType")
@Expose
private String InvocationType;
/**
* The version or alias of the triggered function. It defaults to $LATEST
*/
@SerializedName("Qualifier")
@Expose
private String Qualifier;
/**
* 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).
*/
@SerializedName("ClientContext")
@Expose
private String ClientContext;
/**
* Null for async invocations
*/
@SerializedName("LogType")
@Expose
private String LogType;
/**
* Namespace
*/
@SerializedName("Namespace")
@Expose
private String Namespace;
/**
* 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.
*/
@SerializedName("RoutingKey")
@Expose
private String RoutingKey;
/**
* Get Function name
* @return FunctionName Function name
*/
public String getFunctionName() {
return this.FunctionName;
}
/**
* Set Function name
* @param FunctionName Function name
*/
public void setFunctionName(String FunctionName) {
this.FunctionName = FunctionName;
}
/**
* Get 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.
* @return 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 getInvocationType() {
return this.InvocationType;
}
/**
* Set 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.
* @param 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 void setInvocationType(String InvocationType) {
this.InvocationType = InvocationType;
}
/**
* Get The version or alias of the triggered function. It defaults to $LATEST
* @return Qualifier The version or alias of the triggered function. It defaults to $LATEST
*/
public String getQualifier() {
return this.Qualifier;
}
/**
* Set The version or alias of the triggered function. It defaults to $LATEST
* @param Qualifier The version or alias of the triggered function. It defaults to $LATEST
*/
public void setQualifier(String Qualifier) {
this.Qualifier = Qualifier;
}
/**
* Get 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).
* @return 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 getClientContext() {
return this.ClientContext;
}
/**
* Set 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).
* @param 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 void setClientContext(String ClientContext) {
this.ClientContext = ClientContext;
}
/**
* Get Null for async invocations
* @return LogType Null for async invocations
*/
public String getLogType() {
return this.LogType;
}
/**
* Set Null for async invocations
* @param LogType Null for async invocations
*/
public void setLogType(String LogType) {
this.LogType = LogType;
}
/**
* Get Namespace
* @return Namespace Namespace
*/
public String getNamespace() {
return this.Namespace;
}
/**
* Set Namespace
* @param Namespace Namespace
*/
public void setNamespace(String Namespace) {
this.Namespace = Namespace;
}
/**
* Get 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.
* @return 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.
*/
public String getRoutingKey() {
return this.RoutingKey;
}
/**
* Set 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.
* @param 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.
*/
public void setRoutingKey(String RoutingKey) {
this.RoutingKey = RoutingKey;
}
public InvokeRequest() {
}
/**
* 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.
*/
public InvokeRequest(InvokeRequest source) {
if (source.FunctionName != null) {
this.FunctionName = new String(source.FunctionName);
}
if (source.InvocationType != null) {
this.InvocationType = new String(source.InvocationType);
}
if (source.Qualifier != null) {
this.Qualifier = new String(source.Qualifier);
}
if (source.ClientContext != null) {
this.ClientContext = new String(source.ClientContext);
}
if (source.LogType != null) {
this.LogType = new String(source.LogType);
}
if (source.Namespace != null) {
this.Namespace = new String(source.Namespace);
}
if (source.RoutingKey != null) {
this.RoutingKey = new String(source.RoutingKey);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "FunctionName", this.FunctionName);
this.setParamSimple(map, prefix + "InvocationType", this.InvocationType);
this.setParamSimple(map, prefix + "Qualifier", this.Qualifier);
this.setParamSimple(map, prefix + "ClientContext", this.ClientContext);
this.setParamSimple(map, prefix + "LogType", this.LogType);
this.setParamSimple(map, prefix + "Namespace", this.Namespace);
this.setParamSimple(map, prefix + "RoutingKey", this.RoutingKey);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy