Class CreateTriggerRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.scf.v20180416.models.CreateTriggerRequest
-
public class CreateTriggerRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreateTriggerRequest()CreateTriggerRequest(CreateTriggerRequest 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCustomArgument()Get 用户自定义参数,仅支持timer触发器StringgetDescription()Get 触发器描述StringgetEnable()Get 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭StringgetFunctionName()Get 新建触发器绑定的函数名称StringgetNamespace()Get 函数的命名空间StringgetQualifier()Get 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。StringgetTriggerDesc()Get 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)StringgetTriggerName()Get 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明StringgetType()Get 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。voidsetCustomArgument(String CustomArgument)Set 用户自定义参数,仅支持timer触发器voidsetDescription(String Description)Set 触发器描述voidsetEnable(String Enable)Set 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭voidsetFunctionName(String FunctionName)Set 新建触发器绑定的函数名称voidsetNamespace(String Namespace)Set 函数的命名空间voidsetQualifier(String Qualifier)Set 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。voidsetTriggerDesc(String TriggerDesc)Set 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)voidsetTriggerName(String TriggerName)Set 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明voidsetType(String Type)Set 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateTriggerRequest
public CreateTriggerRequest()
-
CreateTriggerRequest
public CreateTriggerRequest(CreateTriggerRequest 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.
-
-
Method Detail
-
getFunctionName
public String getFunctionName()
Get 新建触发器绑定的函数名称- Returns:
- FunctionName 新建触发器绑定的函数名称
-
setFunctionName
public void setFunctionName(String FunctionName)
Set 新建触发器绑定的函数名称- Parameters:
FunctionName- 新建触发器绑定的函数名称
-
getTriggerName
public String getTriggerName()
Get 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明- Returns:
- TriggerName 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明
-
setTriggerName
public void setTriggerName(String TriggerName)
Set 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明- Parameters:
TriggerName- 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明
-
getType
public String getType()
Get 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。- Returns:
- Type 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。
-
setType
public void setType(String Type)
Set 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。- Parameters:
Type- 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。
-
getTriggerDesc
public String getTriggerDesc()
Get 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)- Returns:
- TriggerDesc 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)
-
setTriggerDesc
public void setTriggerDesc(String TriggerDesc)
Set 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)- Parameters:
TriggerDesc- 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)
-
getNamespace
public String getNamespace()
Get 函数的命名空间- Returns:
- Namespace 函数的命名空间
-
setNamespace
public void setNamespace(String Namespace)
Set 函数的命名空间- Parameters:
Namespace- 函数的命名空间
-
getQualifier
public String getQualifier()
Get 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。- Returns:
- Qualifier 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。
-
setQualifier
public void setQualifier(String Qualifier)
Set 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。- Parameters:
Qualifier- 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。
-
getEnable
public String getEnable()
Get 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭- Returns:
- Enable 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭
-
setEnable
public void setEnable(String Enable)
Set 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭- Parameters:
Enable- 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭
-
getCustomArgument
public String getCustomArgument()
Get 用户自定义参数,仅支持timer触发器- Returns:
- CustomArgument 用户自定义参数,仅支持timer触发器
-
setCustomArgument
public void setCustomArgument(String CustomArgument)
Set 用户自定义参数,仅支持timer触发器- Parameters:
CustomArgument- 用户自定义参数,仅支持timer触发器
-
getDescription
public String getDescription()
Get 触发器描述- Returns:
- Description 触发器描述
-
setDescription
public void setDescription(String Description)
Set 触发器描述- Parameters:
Description- 触发器描述
-
-