public class ThingConnectivity extends Object implements Serializable
The connectivity status of the thing.
| Constructor and Description |
|---|
ThingConnectivity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getConnected()
True if the thing is connected to the AWS IoT service, false if it is not
connected.
|
Long |
getTimestamp()
The epoch time (in milliseconds) when the thing last connected or
disconnected.
|
int |
hashCode() |
Boolean |
isConnected()
True if the thing is connected to the AWS IoT service, false if it is not
connected.
|
void |
setConnected(Boolean connected)
True if the thing is connected to the AWS IoT service, false if it is not
connected.
|
void |
setTimestamp(Long timestamp)
The epoch time (in milliseconds) when the thing last connected or
disconnected.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingConnectivity |
withConnected(Boolean connected)
True if the thing is connected to the AWS IoT service, false if it is not
connected.
|
ThingConnectivity |
withTimestamp(Long timestamp)
The epoch time (in milliseconds) when the thing last connected or
disconnected.
|
public Boolean isConnected()
True if the thing is connected to the AWS IoT service, false if it is not connected.
True if the thing is connected to the AWS IoT service, false if it is not connected.
public Boolean getConnected()
True if the thing is connected to the AWS IoT service, false if it is not connected.
True if the thing is connected to the AWS IoT service, false if it is not connected.
public void setConnected(Boolean connected)
True if the thing is connected to the AWS IoT service, false if it is not connected.
connected - True if the thing is connected to the AWS IoT service, false if it is not connected.
public ThingConnectivity withConnected(Boolean connected)
True if the thing is connected to the AWS IoT service, false if it is not connected.
Returns a reference to this object so that method calls can be chained together.
connected - True if the thing is connected to the AWS IoT service, false if it is not connected.
public Long getTimestamp()
The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.
The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.
public void setTimestamp(Long timestamp)
The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.
timestamp - The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.
public ThingConnectivity withTimestamp(Long timestamp)
The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.
Returns a reference to this object so that method calls can be chained together.
timestamp - The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.