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
|
String |
getScope()
Get the security 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 |
setScope(String scope)
Set the security 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 fromIllegalArgumentException - if the provided json is null, empty, or not the expected formatpublic String toJson()
public String getModuleId()
public void setModuleId(String moduleId) throws IllegalArgumentException
moduleId - the value to set moduleId toIllegalArgumentException - if moduleId is nullpublic String getDeviceId()
public void setDeviceId(String deviceId) throws IllegalArgumentException
deviceId - the value to set deviceId toIllegalArgumentException - if deviceId is nullpublic AuthenticationParser getAuthenticationParser()
public void setAuthenticationParser(AuthenticationParser authenticationParser) throws IllegalArgumentException
authenticationParser - the value to set authenticationParser toIllegalArgumentException - if authenticationParser is nullpublic String geteTag()
public void seteTag(String eTag)
eTag - the value to set eTag topublic String getGenerationId()
public void setGenerationId(String generationId)
generationId - the value to set generationId topublic String getStatus()
public void setStatus(String status)
status - the value to set status topublic String getStatusReason()
public void setStatusReason(String statusReason)
statusReason - the value to set statusReason topublic Date getStatusUpdatedTime()
public void setStatusUpdatedTime(Date statusUpdatedTime)
statusUpdatedTime - the value to set StatusUpdatedTime topublic String getConnectionState()
public void setConnectionState(String connectionState)
connectionState - the value to set ConnectionState topublic Date getConnectionStateUpdatedTime()
public void setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)
connectionStateUpdatedTime - the value to set ConnectionStateUpdatedTime topublic Date getLastActivityTime()
public void setLastActivityTime(Date lastActivityTime)
lastActivityTime - the value to set LastActivityTime topublic long getCloudToDeviceMessageCount()
public void setCloudToDeviceMessageCount(long cloudToDeviceMessageCount)
cloudToDeviceMessageCount - the value to set CloudToDeviceMessageCount topublic String getManagedBy()
public void setManagedBy(String managedBy)
managedBy - the value to set managedBy topublic DeviceCapabilitiesParser getCapabilities()
public void setCapabilities(DeviceCapabilitiesParser capabilities)
capabilities - the value to set capabilities topublic String getScope()
public void setScope(String scope)
scope - the security scope to setCopyright © 2019. All rights reserved.