@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 Amazon Web Services IoT Core service; false if it is not connected.
|
String |
getDisconnectReason()
The reason why the client is disconnected.
|
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 Amazon Web Services IoT Core 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 Amazon Web Services IoT Core service; false if it is not connected.
|
void |
setDisconnectReason(String disconnectReason)
The reason why the client is disconnected.
|
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 Amazon Web Services IoT Core service; false if it is not connected.
|
ThingConnectivity |
withDisconnectReason(String disconnectReason)
The reason why the client is disconnected.
|
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 Amazon Web Services IoT Core service; false if it is not connected.
connected - True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.public Boolean getConnected()
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
public ThingConnectivity withConnected(Boolean connected)
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
connected - True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.public Boolean isConnected()
True if the thing is connected to the Amazon Web Services IoT Core 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 approximately an hour, 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 approximately an hour, 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 approximately an hour, 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 approximately an hour, 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 approximately an hour, the time value might be missing.public void setDisconnectReason(String disconnectReason)
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the
disconnectReason value might be missing.
disconnectReason - The reason why the client is disconnected. If the thing has been disconnected for approximately an hour,
the disconnectReason value might be missing.public String getDisconnectReason()
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the
disconnectReason value might be missing.
disconnectReason value might be missing.public ThingConnectivity withDisconnectReason(String disconnectReason)
The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the
disconnectReason value might be missing.
disconnectReason - The reason why the client is disconnected. If the thing has been disconnected for approximately an hour,
the disconnectReason value might be missing.public String toString()
toString in class ObjectObject.toString()public ThingConnectivity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.