Freigeben über


DeviceParser Class

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

public class DeviceParser

Constructor Summary

Constructor Description
DeviceParser()

Empty constructor.

DeviceParser(String json)

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

Method Summary

Modifier and Type Method and Description
AuthenticationParser getAuthenticationParser()

Getter for AuthenticationParser.

DeviceCapabilitiesParser getCapabilities()

Getter for Capabilities.

long getCloudToDeviceMessageCount()

Getter for CloudToDeviceMessageCount.

java.lang.String getConnectionState()

Getter for ConnectionState.

java.util.Date getConnectionStateUpdatedTime()

Getter for ConnectionStateUpdatedTime.

java.lang.String getDeviceId()

Getter for DeviceId.

java.lang.String getGenerationId()

Getter for GenerationId.

java.util.Date getLastActivityTime()

Getter for LastActivityTime.

java.lang.String getManagedBy()

Getter for ManagedBy.

java.lang.String getModuleId()

Getter for ModuleId.

java.util.List<java.lang.String> getParentScopes()

Get the parent scopes for this device.

java.lang.String getScope()

Get the device scope for this device.

java.lang.String getStatus()

Getter for Status.

java.lang.String getStatusReason()

Getter for StatusReason.

java.util.Date getStatusUpdatedTime()

Getter for StatusUpdatedTime.

java.lang.String geteTag()

Getter for eTag.

void setAuthenticationParser(AuthenticationParser authenticationParser)

Setter for AuthenticationParser.

void setCapabilities(DeviceCapabilitiesParser capabilities)

Setter for Capabilities.

void setCloudToDeviceMessageCount(long cloudToDeviceMessageCount)

Setter for CloudToDeviceMessageCount.

void setConnectionState(String connectionState)

Setter for ConnectionState.

void setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)

Setter for ConnectionStateUpdatedTime.

void setDeviceId(String deviceId)

Setter for DeviceId.

void setGenerationId(String generationId)

Setter for GenerationId.

void setLastActivityTime(Date lastActivityTime)

Setter for LastActivityTime.

void setManagedBy(String managedBy)

Setter for ManagedBy.

void setModuleId(String moduleId)

Setter for ModuleId.

void setParentScopes(List<String> parentScopes)

Sets the parent scopes for this device.

void setScope(String scope)

Set the device scope for this device.

void setStatus(String status)

Setter for Status.

void setStatusReason(String statusReason)

Setter for StatusReason.

void setStatusUpdatedTime(Date statusUpdatedTime)

Setter for StatusUpdatedTime.

void seteTag(String eTag)

Setter for eTag.

java.lang.String toJson()

Converts this into JSON format and returns it.

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

DeviceParser

public DeviceParser()

Empty constructor.

DeviceParser

public DeviceParser(String json)

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

Parameters:

json - The JSON to build the object from.

Method Details

getAuthenticationParser

public AuthenticationParser getAuthenticationParser()

Getter for AuthenticationParser.

Returns:

The value of AuthenticationParser.

getCapabilities

public DeviceCapabilitiesParser getCapabilities()

Getter for Capabilities.

Returns:

The value of Capabilities.

getCloudToDeviceMessageCount

public long getCloudToDeviceMessageCount()

Getter for CloudToDeviceMessageCount.

Returns:

The value of CloudToDeviceMessageCount.

getConnectionState

public String getConnectionState()

Getter for ConnectionState.

Returns:

The value of ConnectionState.

getConnectionStateUpdatedTime

public Date getConnectionStateUpdatedTime()

Getter for ConnectionStateUpdatedTime.

Returns:

The value of ConnectionStateUpdatedTime.

getDeviceId

public String getDeviceId()

Getter for DeviceId.

Returns:

The value of DeviceId.

getGenerationId

public String getGenerationId()

Getter for GenerationId.

Returns:

The value of GenerationId.

getLastActivityTime

public Date getLastActivityTime()

Getter for LastActivityTime.

Returns:

The value of LastActivityTime.

getManagedBy

public String getManagedBy()

Getter for ManagedBy.

Returns:

The value of ManagedBy.

getModuleId

public String getModuleId()

Getter for ModuleId.

Returns:

The value of ModuleId.

getParentScopes

public List getParentScopes()

Get the parent scopes for this device.

Returns:

The parent scopes for this device.

getScope

public String getScope()

Get the device scope for this device.

Returns:

The device scope for this device.

getStatus

public String getStatus()

Getter for Status.

Returns:

The value of Status.

getStatusReason

public String getStatusReason()

Getter for StatusReason.

Returns:

The value of StatusReason.

getStatusUpdatedTime

public Date getStatusUpdatedTime()

Getter for StatusUpdatedTime.

Returns:

The value of StatusUpdatedTime.

geteTag

public String geteTag()

Getter for eTag.

Returns:

The value of eTag.

setAuthenticationParser

public void setAuthenticationParser(AuthenticationParser authenticationParser)

Setter for AuthenticationParser.

Parameters:

authenticationParser - The value to set authenticationParser to.

Throws:

java.lang.IllegalArgumentException - If authenticationParser is null.

setCapabilities

public void setCapabilities(DeviceCapabilitiesParser capabilities)

Setter for Capabilities.

Parameters:

capabilities - The value to set Capabilities to.

setCloudToDeviceMessageCount

public void setCloudToDeviceMessageCount(long cloudToDeviceMessageCount)

Setter for CloudToDeviceMessageCount.

Parameters:

cloudToDeviceMessageCount - The value to set CloudToDeviceMessageCount to.

setConnectionState

public void setConnectionState(String connectionState)

Setter for ConnectionState.

Parameters:

connectionState - the value to set ConnectionState to.

setConnectionStateUpdatedTime

public void setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)

Setter for ConnectionStateUpdatedTime.

Parameters:

connectionStateUpdatedTime - The value to set ConnectionStateUpdatedTime to.

setDeviceId

public void setDeviceId(String deviceId)

Setter for DeviceId.

Parameters:

deviceId - The value to set DeviceId to.

Throws:

java.lang.IllegalArgumentException - If deviceId is null.

setGenerationId

public void setGenerationId(String generationId)

Setter for GenerationId.

Parameters:

generationId - The value to set GenerationId to.

setLastActivityTime

public void setLastActivityTime(Date lastActivityTime)

Setter for LastActivityTime.

Parameters:

lastActivityTime - The value to set LastActivityTime to.

setManagedBy

public void setManagedBy(String managedBy)

Setter for ManagedBy.

Parameters:

managedBy - The value to set ManagedBy to.

setModuleId

public void setModuleId(String moduleId)

Setter for ModuleId.

Parameters:

moduleId - The value to set ModuleId to.

Throws:

java.lang.IllegalArgumentException - If moduleId is null.

setParentScopes

public void setParentScopes(List parentScopes)

Sets the parent scopes for this device.

Parameters:

parentScopes - The parent scopes to set.

setScope

public void setScope(String scope)

Set the device scope for this device.

Parameters:

scope - The device scope to set.

setStatus

public void setStatus(String status)

Setter for Status.

Parameters:

status - The value to set status to.

setStatusReason

public void setStatusReason(String statusReason)

Setter for StatusReason.

Parameters:

statusReason - The value to set StatusReason to.

setStatusUpdatedTime

public void setStatusUpdatedTime(Date statusUpdatedTime)

Setter for StatusUpdatedTime.

Parameters:

statusUpdatedTime - The value to set StatusUpdatedTime to.

seteTag

public void seteTag(String eTag)

Setter for eTag.

Parameters:

eTag - The value to set eTag to.

toJson

public String toJson()

Converts this into JSON format and returns it.

Returns:

the JSON representation of this.

Applies to