ScheduledJobParser Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. jobs. serializers. ScheduledJobParser
- com.
public class ScheduledJobParser
Representation of a single Jobs collection with a Json serializer.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
toJson()
Getter for the string with the json. |
Constructor Details
ScheduledJobParser
public ScheduledJobParser(String jobId, MethodParser cloudToDeviceMethod, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
CONSTRUCTOR
Parameters:
is a string with the job identification. Cannot benull
</code> or empty. </p>
cloudToDeviceMethod
- is the class that contains the json for the cloud to Device Method. Cannot benull
</code> . </p>
queryCondition
- is a string with the deviceId or an IoT Hub Query Condition. Cannot benull
</code> or empty. </p>
startTime
- is the date and time to start the job. Cannot benull
</code> . </p>
maxExecutionTimeInSeconds
- is the maximum time that the device can expend to execute the job. Cannot be negative
Throws:
IllegalArgumentException
- if one of the parameter is not valid.
ScheduledJobParser
public ScheduledJobParser(String jobId, TwinState updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
CONSTRUCTOR
Parameters:
jobId
- is a string with the job identification. Cannot benull
</code> or empty. </p>
updateTwin
- is the class that contains the json for the update twin properties. Cannot benull
</code> . </p>
queryCondition
- is a string with the deviceId or an IoT Hub Query Condition. Cannot benull
</code> or empty. </p>
startTime
- is the date and time to start the job. Cannot benull
</code> . </p>
maxExecutionTimeInSeconds
- is the maximum time that the device can expend to execute the job. Cannot be negative
Throws:
IllegalArgumentException
- if one of the parameter is not valid.
Method Details
toJson
public String toJson()
Getter for the string with the json.
Returns:
a String with the json the represents the content of this class.
Applies to
Azure SDK for Java