public class CreateTaskRequest extends AbstractModel
Constructor and Description |
---|
CreateTaskRequest() |
CreateTaskRequest(CreateTaskRequest 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 |
getDeviceNameFilter()
Get 执行任务的设备名的正则表达式
|
Long |
getMaxExecutionTimeInSeconds()
Get 最长执行时间,单位秒,被调度后超过此时间仍未有结果则视为任务失败。取值为0-86400,默认为86400
|
String |
getProductId()
Get 执行任务的产品ID
|
Long |
getScheduleTimeInSeconds()
Get 任务开始执行的时间。 取值为 Unix 时间戳,单位秒,且需大于等于当前时间时间戳,0为系统当前时间时间戳,即立即执行,最大为当前时间86400秒后,超过则取值为当前时间86400秒后
|
Task |
getTasks()
Get 任务描述细节,描述见下 Task
|
String |
getTaskType()
Get 任务类型,取值为 “UpdateShadow” 或者 “PublishMessage”
|
void |
setDeviceNameFilter(String DeviceNameFilter)
Set 执行任务的设备名的正则表达式
|
void |
setMaxExecutionTimeInSeconds(Long MaxExecutionTimeInSeconds)
Set 最长执行时间,单位秒,被调度后超过此时间仍未有结果则视为任务失败。取值为0-86400,默认为86400
|
void |
setProductId(String ProductId)
Set 执行任务的产品ID
|
void |
setScheduleTimeInSeconds(Long ScheduleTimeInSeconds)
Set 任务开始执行的时间。 取值为 Unix 时间戳,单位秒,且需大于等于当前时间时间戳,0为系统当前时间时间戳,即立即执行,最大为当前时间86400秒后,超过则取值为当前时间86400秒后
|
void |
setTasks(Task Tasks)
Set 任务描述细节,描述见下 Task
|
void |
setTaskType(String TaskType)
Set 任务类型,取值为 “UpdateShadow” 或者 “PublishMessage”
|
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 CreateTaskRequest()
public CreateTaskRequest(CreateTaskRequest source)
public String getTaskType()
public void setTaskType(String TaskType)
TaskType
- 任务类型,取值为 “UpdateShadow” 或者 “PublishMessage”public String getProductId()
public void setProductId(String ProductId)
ProductId
- 执行任务的产品IDpublic String getDeviceNameFilter()
public void setDeviceNameFilter(String DeviceNameFilter)
DeviceNameFilter
- 执行任务的设备名的正则表达式public Long getScheduleTimeInSeconds()
public void setScheduleTimeInSeconds(Long ScheduleTimeInSeconds)
ScheduleTimeInSeconds
- 任务开始执行的时间。 取值为 Unix 时间戳,单位秒,且需大于等于当前时间时间戳,0为系统当前时间时间戳,即立即执行,最大为当前时间86400秒后,超过则取值为当前时间86400秒后public Task getTasks()
public void setTasks(Task Tasks)
Tasks
- 任务描述细节,描述见下 Taskpublic Long getMaxExecutionTimeInSeconds()
public void setMaxExecutionTimeInSeconds(Long MaxExecutionTimeInSeconds)
MaxExecutionTimeInSeconds
- 最长执行时间,单位秒,被调度后超过此时间仍未有结果则视为任务失败。取值为0-86400,默认为86400Copyright © 2021. All rights reserved.