JobsParser Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.deps.serializer.JobsParser

public class JobsParser

Representation of a single Jobs collection with a Json serializer.

Constructor Summary

Method Summary

Modifier and Type Method and Description
java.lang.String toJson()

Getter for the string with the json.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

JobsParser

public JobsParser(String jobId, MethodParser cloudToDeviceMethod, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)

CONSTRUCTOR

Parameters:

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 negative

Throws:

java.lang.IllegalArgumentException - if one of the parameter is not valid.

JobsParser


public JobsParser(String jobId, TwinParser updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)

Deprecated

CONSTRUCTOR

Parameters:

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 negative

Throws:

java.lang.IllegalArgumentException - if one of the parameter is not valid.

JobsParser

public JobsParser(String jobId, TwinState updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)

CONSTRUCTOR

Parameters:

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 negative

Throws:

java.lang.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

Latest