Class ThingConnectivity

    • Method Detail

      • connected

        public final Boolean connected()

        True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.

        Returns:
        True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
      • timestamp

        public final 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.

        Returns:
        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.
      • disconnectReason

        public final 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.

        Returns:
        The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason value might be missing.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)