@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CoreDevice.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CoreDevice.Builder |
builder() |
String |
coreDeviceThingName()
The name of the core device.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastStatusUpdateTimestamp()
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() |
CoreDeviceStatus |
status()
The status of the core device.
|
String |
statusAsString()
The status of the core device.
|
CoreDevice.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String coreDeviceThingName()
The name of the core device. This is also the name of the IoT thing.
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, status will
return CoreDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
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.
CoreDeviceStatuspublic 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, status will
return CoreDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
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.
CoreDeviceStatuspublic final Instant lastStatusUpdateTimestamp()
The time at which the core device's status last updated, expressed in ISO 8601 format.
public CoreDevice.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CoreDevice.Builder,CoreDevice>public static CoreDevice.Builder builder()
public static Class<? extends CoreDevice.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.