JobPropertiesParser Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.registry.serializers.JobPropertiesParser

public class JobPropertiesParser

Constructor Summary

Constructor Description
JobPropertiesParser()

Empty constructor: Used only to keep GSON happy.

JobPropertiesParser(String json)

Constructor for a JobPropertiesParser object that is built from the provided Json

Method Summary

Modifier and Type Method and Description
Date getEndTimeUtc()

Getter for endTimeUtc

Date getStartTimeUtc()

Getter for startTimeUtc

void setEndTimeUtc(Date endTimeUtc)

Setter for EndTimeUtc

void setStartTimeUtc(Date startTimeUtc)

Setter for StartTimeUtc

String toJson()

Converts this into json and returns it

Constructor Details

JobPropertiesParser

public JobPropertiesParser()

Empty constructor: Used only to keep GSON happy.

JobPropertiesParser

public JobPropertiesParser(String json)

Constructor for a JobPropertiesParser object that is built from the provided Json

Parameters:

json - the json to build the JobPropertiesParser from

Throws:

IllegalArgumentException - if the provided Json is null, empty, cannot be parsed, or if the provided Json is missing any of the type, inputBlobContainerUri or outputBlobContainerUri fields

Method Details

getEndTimeUtc

public Date getEndTimeUtc()

Getter for endTimeUtc

Returns:

The value of endTimeUtc

getStartTimeUtc

public Date getStartTimeUtc()

Getter for startTimeUtc

Returns:

The value of startTimeUtc

setEndTimeUtc

public void setEndTimeUtc(Date endTimeUtc)

Setter for EndTimeUtc

Parameters:

endTimeUtc - the value to set EndTimeUtc to

setStartTimeUtc

public void setStartTimeUtc(Date startTimeUtc)

Setter for StartTimeUtc

Parameters:

startTimeUtc - the value to set StartTimeUtc to

toJson

public String toJson()

Converts this into json and returns it

Returns:

the json representation of this

Applies to