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 interfaceThingConnectivity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThingConnectivity.Builderbuilder()Booleanconnected()True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.StringdisconnectReason()The reason why the client is disconnected.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ThingConnectivity.Builder>serializableBuilderClass()Longtimestamp()The epoch time (in milliseconds) when the thing last connected or disconnected.ThingConnectivity.BuildertoBuilder()StringtoString()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
disconnectReasonvalue might be missing.- Returns:
- The reason why the client is disconnected. If the thing has been disconnected for approximately an hour,
the
disconnectReasonvalue might be missing.
-
toBuilder
public ThingConnectivity.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-