public class JobsParser extends Object
| Constructor and Description |
|---|
JobsParser(String jobId,
MethodParser cloudToDeviceMethod,
String queryCondition,
Date startTime,
long maxExecutionTimeInSeconds)
CONSTRUCTOR
|
JobsParser(String jobId,
TwinParser updateTwin,
String queryCondition,
Date startTime,
long maxExecutionTimeInSeconds)
Deprecated.
As of release 0.4.0, replaced by
JobsParser(String, TwinState, String, Date, long) |
JobsParser(String jobId,
TwinState updateTwin,
String queryCondition,
Date startTime,
long maxExecutionTimeInSeconds)
CONSTRUCTOR
|
public JobsParser(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.@Deprecated public JobsParser(String jobId, TwinParser updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds) throws IllegalArgumentException
JobsParser(String, TwinState, String, Date, long)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 JobsParser(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 © 2019. All rights reserved.