public class ScheduledJobParser extends Object
| Constructor and Description |
|---|
ScheduledJobParser(String jobId,
MethodParser cloudToDeviceMethod,
String queryCondition,
Date startTime,
long maxExecutionTimeInSeconds)
CONSTRUCTOR
|
ScheduledJobParser(String jobId,
TwinState updateTwin,
String queryCondition,
Date startTime,
long maxExecutionTimeInSeconds)
CONSTRUCTOR
|
public ScheduledJobParser(String jobId, MethodParser cloudToDeviceMethod, String queryCondition, Date startTime, long maxExecutionTimeInSeconds) throws IllegalArgumentException
jobId - is a string with the job identification. Cannot be null or empty.cloudToDeviceMethod - is the class that contains the json for the cloud to Device Method. Cannot be null.queryCondition - is a string with the deviceId or an IoT Hub Query Condition. Cannot be null or empty.startTime - is the date and time to start the job. Cannot be null.maxExecutionTimeInSeconds - is the maximum time that the device can expend to execute the job. Cannot be negativeIllegalArgumentException - if one of the parameter is not valid.public ScheduledJobParser(String jobId, TwinState updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds) throws IllegalArgumentException
jobId - is a string with the job identification. Cannot be null or empty.updateTwin - is the class that contains the json for the update twin properties. Cannot be null.queryCondition - is a string with the deviceId or an IoT Hub Query Condition. Cannot be null or empty.startTime - is the date and time to start the job. Cannot be null.maxExecutionTimeInSeconds - is the maximum time that the device can expend to execute the job. Cannot be negativeIllegalArgumentException - if one of the parameter is not valid.public String toJson()
Copyright © 2023. All rights reserved.