Class CoreDevice
- java.lang.Object
-
- software.amazon.awssdk.services.greengrassv2.model.CoreDevice
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CoreDevice.Builder,CoreDevice>
@Generated("software.amazon.awssdk:codegen") public final class CoreDevice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CoreDevice.Builder,CoreDevice>
Contains information about a Greengrass core device, which is an IoT thing that runs the IoT Greengrass Core software.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCoreDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoreDevice.Builderbuilder()StringcoreDeviceThingName()The name of the core device.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastStatusUpdateTimestamp()The time at which the core device's status last updated, expressed in ISO 8601 format.List<SdkField<?>>sdkFields()static Class<? extends CoreDevice.Builder>serializableBuilderClass()CoreDeviceStatusstatus()The status of the core device.StringstatusAsString()The status of the core device.CoreDevice.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
-
coreDeviceThingName
public final String coreDeviceThingName()
The name of the core device. This is also the name of the IoT thing.
- Returns:
- The name of the core device. This is also the name of the IoT thing.
-
status
public final CoreDeviceStatus status()
The status of the core device. Core devices can have the following statuses:
-
HEALTHY– The IoT Greengrass Core software and all components run on the core device without issue. -
UNHEALTHY– The IoT Greengrass Core software or a component is in a failed state on the core device.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCoreDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the core device. Core devices can have the following statuses:
-
HEALTHY– The IoT Greengrass Core software and all components run on the core device without issue. -
UNHEALTHY– The IoT Greengrass Core software or a component is in a failed state on the core device.
-
- See Also:
CoreDeviceStatus
-
-
statusAsString
public final String statusAsString()
The status of the core device. Core devices can have the following statuses:
-
HEALTHY– The IoT Greengrass Core software and all components run on the core device without issue. -
UNHEALTHY– The IoT Greengrass Core software or a component is in a failed state on the core device.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCoreDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the core device. Core devices can have the following statuses:
-
HEALTHY– The IoT Greengrass Core software and all components run on the core device without issue. -
UNHEALTHY– The IoT Greengrass Core software or a component is in a failed state on the core device.
-
- See Also:
CoreDeviceStatus
-
-
lastStatusUpdateTimestamp
public final Instant lastStatusUpdateTimestamp()
The time at which the core device's status last updated, expressed in ISO 8601 format.
- Returns:
- The time at which the core device's status last updated, expressed in ISO 8601 format.
-
toBuilder
public CoreDevice.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CoreDevice.Builder,CoreDevice>
-
builder
public static CoreDevice.Builder builder()
-
serializableBuilderClass
public static Class<? extends CoreDevice.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.
-
-