@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThingConnectivity extends Object implements Serializable, Cloneable, StructuredPojo
The connectivity status of the thing.
Constructor and Description |
---|
ThingConnectivity() |
Modifier and Type | Method and Description |
---|---|
ThingConnectivity |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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 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 Boolean getConnected()
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.
connected
- True if the thing is connected to the AWS IoT service; false if it is not connected.public Boolean isConnected()
True if the thing is connected to the AWS IoT service; false if it is not connected.
public void setTimestamp(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 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.
public ThingConnectivity withTimestamp(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 String toString()
toString
in class Object
Object.toString()
public ThingConnectivity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.