/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GreengrassV2 { namespace Model { /** *

Contains information about a Greengrass core device, which is an IoT thing * that runs the IoT Greengrass Core software.

See Also:

AWS * API Reference

*/ class CoreDevice { public: AWS_GREENGRASSV2_API CoreDevice(); AWS_GREENGRASSV2_API CoreDevice(Aws::Utils::Json::JsonView jsonValue); AWS_GREENGRASSV2_API CoreDevice& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; } /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; } /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); } /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); } /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline CoreDevice& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline CoreDevice& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} /** *

The name of the core device. This is also the name of the IoT thing.

*/ inline CoreDevice& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} /** *

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.

*/ inline const CoreDeviceStatus& GetStatus() const{ return m_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.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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.

*/ inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

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.

*/ inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

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.

*/ inline CoreDevice& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;} /** *

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.

*/ inline CoreDevice& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The time at which the core device's status last updated, expressed in ISO * 8601 format.

*/ inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const{ return m_lastStatusUpdateTimestamp; } /** *

The time at which the core device's status last updated, expressed in ISO * 8601 format.

*/ inline bool LastStatusUpdateTimestampHasBeenSet() const { return m_lastStatusUpdateTimestampHasBeenSet; } /** *

The time at which the core device's status last updated, expressed in ISO * 8601 format.

*/ inline void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = value; } /** *

The time at which the core device's status last updated, expressed in ISO * 8601 format.

*/ inline void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = std::move(value); } /** *

The time at which the core device's status last updated, expressed in ISO * 8601 format.

*/ inline CoreDevice& WithLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { SetLastStatusUpdateTimestamp(value); return *this;} /** *

The time at which the core device's status last updated, expressed in ISO * 8601 format.

*/ inline CoreDevice& WithLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { SetLastStatusUpdateTimestamp(std::move(value)); return *this;} private: Aws::String m_coreDeviceThingName; bool m_coreDeviceThingNameHasBeenSet = false; CoreDeviceStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastStatusUpdateTimestamp; bool m_lastStatusUpdateTimestampHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws