ConfigurationParser Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.configurations.serializers.ConfigurationParser

public class ConfigurationParser

Constructor Summary

Constructor Description
ConfigurationParser()

Empty constructor: Used only to keep GSON happy.

ConfigurationParser(String json)

Constructor for an ExportImportDeviceParser that is built using the provided json

Method Summary

Modifier and Type Method and Description
Date getCreatedTimeUtc()

Getter for createdTimeUtc

Date getLastUpdatedTimeUtc()

Getter for lastUpdatedTimeUtc

void setCreatedTimeUtc(Date createdTimeUtc)

Setter for createdTimeUtc

void setLastUpdatedTimeUtc(Date lastUpdatedTimeUtc)

Setter for lastUpdatedTimeUtc

String toJson()

Converts this into json and returns it

Constructor Details

ConfigurationParser

public ConfigurationParser()

Empty constructor: Used only to keep GSON happy.

ConfigurationParser

public ConfigurationParser(String json)

Constructor for an ExportImportDeviceParser that is built using the provided json

Parameters:

json - the json string to build the ExportImportDeviceParser out of

Method Details

getCreatedTimeUtc

public Date getCreatedTimeUtc()

Getter for createdTimeUtc

Returns:

The value of createdTimeUtc

getLastUpdatedTimeUtc

public Date getLastUpdatedTimeUtc()

Getter for lastUpdatedTimeUtc

Returns:

The value of lastUpdatedTimeUtc

setCreatedTimeUtc

public void setCreatedTimeUtc(Date createdTimeUtc)

Setter for createdTimeUtc

Parameters:

createdTimeUtc - the value to set createdTimeUtc to

setLastUpdatedTimeUtc

public void setLastUpdatedTimeUtc(Date lastUpdatedTimeUtc)

Setter for lastUpdatedTimeUtc

Parameters:

lastUpdatedTimeUtc - the value to set lastUpdatedTimeUtc to

toJson

public String toJson()

Converts this into json and returns it

Returns:

the json representation of this

Applies to