public class ThingConnectivity
extends java.lang.Object
implements java.io.Serializable
The connectivity status of the thing.
Constructor and Description |
---|
ThingConnectivity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getConnected()
True if the thing is connected to the AWS IoT service; false if it is not
connected.
|
java.lang.Long |
getTimestamp()
The epoch time (in milliseconds) when the thing last connected or
disconnected.
|
int |
hashCode() |
java.lang.Boolean |
isConnected()
True if the thing is connected to the AWS IoT service; false if it is not
connected.
|
void |
setConnected(java.lang.Boolean connected)
True if the thing is connected to the AWS IoT service; false if it is not
connected.
|
void |
setTimestamp(java.lang.Long timestamp)
The epoch time (in milliseconds) when the thing last connected or
disconnected.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingConnectivity |
withConnected(java.lang.Boolean connected)
True if the thing is connected to the AWS IoT service; false if it is not
connected.
|
ThingConnectivity |
withTimestamp(java.lang.Long timestamp)
The epoch time (in milliseconds) when the thing last connected or
disconnected.
|
public java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.Long getTimestamp()
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for more than a few weeks, the time value might be missing.
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for more than a few weeks, the time value might be missing.
public void setTimestamp(java.lang.Long timestamp)
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for more than a few weeks, the time value might be missing.
timestamp
- The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for more than a few weeks, the time value might be missing.
public ThingConnectivity withTimestamp(java.lang.Long timestamp)
The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for more than a few weeks, the time value might 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. If the thing has been disconnected for more than a few weeks, the time value might be missing.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.