public class DeviceParser extends Object
| Constructor and Description |
|---|
DeviceParser()
Empty constructor.
|
DeviceParser(String json)
Constructor for a DeviceParser object that is built from the provided JSON.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationParser |
getAuthenticationParser()
Getter for AuthenticationParser.
|
DeviceCapabilitiesParser |
getCapabilities()
Getter for Capabilities.
|
long |
getCloudToDeviceMessageCount()
Getter for CloudToDeviceMessageCount.
|
String |
getConnectionState()
Getter for ConnectionState.
|
Date |
getConnectionStateUpdatedTime()
Getter for ConnectionStateUpdatedTime.
|
String |
getDeviceId()
Getter for DeviceId.
|
String |
geteTag()
Getter for eTag.
|
String |
getGenerationId()
Getter for GenerationId.
|
Date |
getLastActivityTime()
Getter for LastActivityTime.
|
String |
getManagedBy()
Getter for ManagedBy.
|
String |
getModuleId()
Getter for ModuleId.
|
List<String> |
getParentScopes()
Get the parent scopes for this device.
|
String |
getScope()
Get the device scope for this device.
|
String |
getStatus()
Getter for Status.
|
String |
getStatusReason()
Getter for StatusReason.
|
Date |
getStatusUpdatedTime()
Getter for StatusUpdatedTime.
|
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 |
seteTag(String eTag)
Setter for eTag.
|
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.
|
String |
toJson()
Converts this into JSON format and returns it.
|
public DeviceParser()
public DeviceParser(String json)
json - The JSON to build the object from.IllegalArgumentException - If the provided JSON is null, empty, or not the expected format.public String toJson()
public String getModuleId()
public void setModuleId(String moduleId) throws IllegalArgumentException
moduleId - The value to set ModuleId to.IllegalArgumentException - If moduleId is null.public String getDeviceId()
public void setDeviceId(String deviceId) throws IllegalArgumentException
deviceId - The value to set DeviceId to.IllegalArgumentException - If deviceId is null.public AuthenticationParser getAuthenticationParser()
public void setAuthenticationParser(AuthenticationParser authenticationParser) throws IllegalArgumentException
authenticationParser - The value to set authenticationParser to.IllegalArgumentException - If authenticationParser is null.public String geteTag()
public void seteTag(String eTag)
eTag - The value to set eTag to.public String getGenerationId()
public void setGenerationId(String generationId)
generationId - The value to set GenerationId to.public String getStatus()
public void setStatus(String status)
status - The value to set status to.public String getStatusReason()
public void setStatusReason(String statusReason)
statusReason - The value to set StatusReason to.public Date getStatusUpdatedTime()
public void setStatusUpdatedTime(Date statusUpdatedTime)
statusUpdatedTime - The value to set StatusUpdatedTime to.public String getConnectionState()
public void setConnectionState(String connectionState)
connectionState - the value to set ConnectionState to.public Date getConnectionStateUpdatedTime()
public void setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)
connectionStateUpdatedTime - The value to set ConnectionStateUpdatedTime to.public Date getLastActivityTime()
public void setLastActivityTime(Date lastActivityTime)
lastActivityTime - The value to set LastActivityTime to.public long getCloudToDeviceMessageCount()
public void setCloudToDeviceMessageCount(long cloudToDeviceMessageCount)
cloudToDeviceMessageCount - The value to set CloudToDeviceMessageCount to.public String getManagedBy()
public void setManagedBy(String managedBy)
managedBy - The value to set ManagedBy to.public DeviceCapabilitiesParser getCapabilities()
public void setCapabilities(DeviceCapabilitiesParser capabilities)
capabilities - The value to set Capabilities to.public String getScope()
public void setScope(String scope)
scope - The device scope to set.public List<String> getParentScopes()
Copyright © 2021. All rights reserved.