Class ThingConnectivity
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.ThingConnectivity
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ThingConnectivity.Builder,ThingConnectivity>
@Generated("software.amazon.awssdk:codegen") public final class ThingConnectivity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ThingConnectivity.Builder,ThingConnectivity>
The connectivity status of the thing.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ThingConnectivity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThingConnectivity.Builder
builder()
Boolean
connected()
True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.String
disconnectReason()
The reason why the client is disconnected.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends ThingConnectivity.Builder>
serializableBuilderClass()
Long
timestamp()
The epoch time (in milliseconds) when the thing last connected or disconnected.ThingConnectivity.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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.
-
toBuilder
public ThingConnectivity.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ThingConnectivity.Builder,ThingConnectivity>
-
builder
public static ThingConnectivity.Builder builder()
-
serializableBuilderClass
public static Class<? extends ThingConnectivity.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
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.
-
-