RegistryIdentityParser Class

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

public class RegistryIdentityParser

Constructor Summary

Constructor Description
RegistryIdentityParser()

Empty constructor.

RegistryIdentityParser(String json)

Constructor for a RegistryIdentityParser object that is built from the provided JSON.

Method Summary

Modifier and Type Method and Description
Date getConnectionStateUpdatedTime()

Getter for ConnectionStateUpdatedTime.

Date getLastActivityTime()

Getter for LastActivityTime.

Date getStatusUpdatedTime()

Getter for StatusUpdatedTime.

void setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)

Setter for ConnectionStateUpdatedTime.

void setLastActivityTime(Date lastActivityTime)

Setter for LastActivityTime.

void setStatusUpdatedTime(Date statusUpdatedTime)

Setter for StatusUpdatedTime.

String toJson()

Converts this into JSON format and returns it.

Constructor Details

RegistryIdentityParser

public RegistryIdentityParser()

Empty constructor.

RegistryIdentityParser

public RegistryIdentityParser(String json)

Constructor for a RegistryIdentityParser object that is built from the provided JSON.

Parameters:

json - The JSON to build the object from.

Throws:

IllegalArgumentException -

If the provided JSON isnull 

</code> , empty, or not the expected format. </p>

Method Details

getConnectionStateUpdatedTime

public Date getConnectionStateUpdatedTime()

Getter for ConnectionStateUpdatedTime.

Returns:

The value of ConnectionStateUpdatedTime.

getLastActivityTime

public Date getLastActivityTime()

Getter for LastActivityTime.

Returns:

The value of LastActivityTime.

getStatusUpdatedTime

public Date getStatusUpdatedTime()

Getter for StatusUpdatedTime.

Returns:

The value of StatusUpdatedTime.

setConnectionStateUpdatedTime

public void setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)

Setter for ConnectionStateUpdatedTime.

Parameters:

connectionStateUpdatedTime - The value to set ConnectionStateUpdatedTime to.

setLastActivityTime

public void setLastActivityTime(Date lastActivityTime)

Setter for LastActivityTime.

Parameters:

lastActivityTime - The value to set LastActivityTime to.

setStatusUpdatedTime

public void setStatusUpdatedTime(Date statusUpdatedTime)

Setter for StatusUpdatedTime.

Parameters:

statusUpdatedTime - The value to set StatusUpdatedTime to.

toJson

public String toJson()

Converts this into JSON format and returns it.

Returns:

the JSON representation of this.

Applies to