public class JobsResponseParser extends Object
| Constructor and Description |
|---|
JobsResponseParser() |
| Modifier and Type | Method and Description |
|---|---|
static JobsResponseParser |
createFromJson(String json)
Static constructor to create a instance based on the provided json
|
MethodParser |
getCloudToDeviceMethod()
Getter for cloud to device method json
|
Date |
getCreatedTime()
Getter for created time
|
String |
getDeviceId()
Getter for the device Id
|
Date |
getEndTime()
Getter for the end time UTC
Represents the time the job stopped processing
|
JobQueryResponseError |
getError()
Returns the error as json
|
String |
getFailureReason()
Getter for failure reason
|
String |
getJobId()
Getter for the Job identifier
|
String |
getJobsStatus()
Getter for the jobs status
|
JobsStatisticsParser |
getJobStatistics()
Getter for jobs statistics
|
Date |
getLastUpdatedTimeDate()
Getter for last updated time in UTC
|
Long |
getMaxExecutionTimeInSeconds()
Getter for max execution time in seconds
|
MethodParser |
getOutcome()
Getter for the outcome of device method
|
String |
getParentJobId()
Getter for the parent jobId
|
String |
getQueryCondition()
Getter for query condition
|
Date |
getStartTime()
Getter for start time UTC
|
String |
getStatusMessage()
Getter for the status message
|
String |
getType()
Getter for the job type
|
TwinParser |
getUpdateTwin()
Deprecated.
As of release 0.4.0, replaced by
getUpdateTwinState() |
TwinState |
getUpdateTwinState()
Getter for update twin json
|
public static JobsResponseParser createFromJson(String json) throws IllegalArgumentException, com.google.gson.JsonParseException
json - is the string with the json to parseIllegalArgumentException - if the json is null or empty, or if any date is invalidcom.google.gson.JsonParseException - if the json is not validpublic String getJobId()
public String getQueryCondition()
nullpublic Date getCreatedTime()
nullpublic Date getStartTime()
nullpublic Date getEndTime()
nullpublic Long getMaxExecutionTimeInSeconds()
nullpublic Date getLastUpdatedTimeDate()
nullpublic String getType()
public String getJobsStatus()
public MethodParser getCloudToDeviceMethod()
null if type
is not scheduleDeviceMethodpublic JobQueryResponseError getError()
public MethodParser getOutcome()
@Deprecated public TwinParser getUpdateTwin()
getUpdateTwinState()null if type
is not scheduleUpdateTwinpublic TwinState getUpdateTwinState()
null if type
is not scheduleUpdateTwinpublic String getFailureReason()
nullpublic String getStatusMessage()
nullpublic JobsStatisticsParser getJobStatistics()
nullpublic String getDeviceId()
null
(e.g. in case of a parent orchestration)public String getParentJobId()
nullCopyright © 2019. All rights reserved.