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

Summary of the device.

See Also:

AWS * API Reference

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

The unique identifier of the device.

*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The unique identifier of the device.

*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The unique identifier of the device.

*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The unique identifier of the device.

*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The unique identifier of the device.

*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The unique identifier of the device.

*/ inline DeviceSummary& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The unique identifier of the device.

*/ inline DeviceSummary& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The unique identifier of the device.

*/ inline DeviceSummary& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

Amazon Resource Name (ARN) of the device.

*/ inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; } /** *

Amazon Resource Name (ARN) of the device.

*/ inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the device.

*/ inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; } /** *

Amazon Resource Name (ARN) of the device.

*/ inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the device.

*/ inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); } /** *

Amazon Resource Name (ARN) of the device.

*/ inline DeviceSummary& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the device.

*/ inline DeviceSummary& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the device.

*/ inline DeviceSummary& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;} /** *

A description of the device.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the device.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the device.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the device.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the device.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the device.

*/ inline DeviceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the device.

*/ inline DeviceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the device.

*/ inline DeviceSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the fleet the device belongs to.

*/ inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; } /** *

The name of the fleet the device belongs to.

*/ inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; } /** *

The name of the fleet the device belongs to.

*/ inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; } /** *

The name of the fleet the device belongs to.

*/ inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); } /** *

The name of the fleet the device belongs to.

*/ inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); } /** *

The name of the fleet the device belongs to.

*/ inline DeviceSummary& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;} /** *

The name of the fleet the device belongs to.

*/ inline DeviceSummary& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;} /** *

The name of the fleet the device belongs to.

*/ inline DeviceSummary& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;} /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline const Aws::String& GetIotThingName() const{ return m_iotThingName; } /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline bool IotThingNameHasBeenSet() const { return m_iotThingNameHasBeenSet; } /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline void SetIotThingName(const Aws::String& value) { m_iotThingNameHasBeenSet = true; m_iotThingName = value; } /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline void SetIotThingName(Aws::String&& value) { m_iotThingNameHasBeenSet = true; m_iotThingName = std::move(value); } /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline void SetIotThingName(const char* value) { m_iotThingNameHasBeenSet = true; m_iotThingName.assign(value); } /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline DeviceSummary& WithIotThingName(const Aws::String& value) { SetIotThingName(value); return *this;} /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline DeviceSummary& WithIotThingName(Aws::String&& value) { SetIotThingName(std::move(value)); return *this;} /** *

The Amazon Web Services Internet of Things (IoT) object thing name associated * with the device..

*/ inline DeviceSummary& WithIotThingName(const char* value) { SetIotThingName(value); return *this;} /** *

The timestamp of the last registration or de-reregistration.

*/ inline const Aws::Utils::DateTime& GetRegistrationTime() const{ return m_registrationTime; } /** *

The timestamp of the last registration or de-reregistration.

*/ inline bool RegistrationTimeHasBeenSet() const { return m_registrationTimeHasBeenSet; } /** *

The timestamp of the last registration or de-reregistration.

*/ inline void SetRegistrationTime(const Aws::Utils::DateTime& value) { m_registrationTimeHasBeenSet = true; m_registrationTime = value; } /** *

The timestamp of the last registration or de-reregistration.

*/ inline void SetRegistrationTime(Aws::Utils::DateTime&& value) { m_registrationTimeHasBeenSet = true; m_registrationTime = std::move(value); } /** *

The timestamp of the last registration or de-reregistration.

*/ inline DeviceSummary& WithRegistrationTime(const Aws::Utils::DateTime& value) { SetRegistrationTime(value); return *this;} /** *

The timestamp of the last registration or de-reregistration.

*/ inline DeviceSummary& WithRegistrationTime(Aws::Utils::DateTime&& value) { SetRegistrationTime(std::move(value)); return *this;} /** *

The last heartbeat received from the device.

*/ inline const Aws::Utils::DateTime& GetLatestHeartbeat() const{ return m_latestHeartbeat; } /** *

The last heartbeat received from the device.

*/ inline bool LatestHeartbeatHasBeenSet() const { return m_latestHeartbeatHasBeenSet; } /** *

The last heartbeat received from the device.

*/ inline void SetLatestHeartbeat(const Aws::Utils::DateTime& value) { m_latestHeartbeatHasBeenSet = true; m_latestHeartbeat = value; } /** *

The last heartbeat received from the device.

*/ inline void SetLatestHeartbeat(Aws::Utils::DateTime&& value) { m_latestHeartbeatHasBeenSet = true; m_latestHeartbeat = std::move(value); } /** *

The last heartbeat received from the device.

*/ inline DeviceSummary& WithLatestHeartbeat(const Aws::Utils::DateTime& value) { SetLatestHeartbeat(value); return *this;} /** *

The last heartbeat received from the device.

*/ inline DeviceSummary& WithLatestHeartbeat(Aws::Utils::DateTime&& value) { SetLatestHeartbeat(std::move(value)); return *this;} /** *

Models on the device.

*/ inline const Aws::Vector& GetModels() const{ return m_models; } /** *

Models on the device.

*/ inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; } /** *

Models on the device.

*/ inline void SetModels(const Aws::Vector& value) { m_modelsHasBeenSet = true; m_models = value; } /** *

Models on the device.

*/ inline void SetModels(Aws::Vector&& value) { m_modelsHasBeenSet = true; m_models = std::move(value); } /** *

Models on the device.

*/ inline DeviceSummary& WithModels(const Aws::Vector& value) { SetModels(value); return *this;} /** *

Models on the device.

*/ inline DeviceSummary& WithModels(Aws::Vector&& value) { SetModels(std::move(value)); return *this;} /** *

Models on the device.

*/ inline DeviceSummary& AddModels(const EdgeModelSummary& value) { m_modelsHasBeenSet = true; m_models.push_back(value); return *this; } /** *

Models on the device.

*/ inline DeviceSummary& AddModels(EdgeModelSummary&& value) { m_modelsHasBeenSet = true; m_models.push_back(std::move(value)); return *this; } /** *

Edge Manager agent version.

*/ inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; } /** *

Edge Manager agent version.

*/ inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; } /** *

Edge Manager agent version.

*/ inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; } /** *

Edge Manager agent version.

*/ inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); } /** *

Edge Manager agent version.

*/ inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); } /** *

Edge Manager agent version.

*/ inline DeviceSummary& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;} /** *

Edge Manager agent version.

*/ inline DeviceSummary& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;} /** *

Edge Manager agent version.

*/ inline DeviceSummary& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::String m_deviceArn; bool m_deviceArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_deviceFleetName; bool m_deviceFleetNameHasBeenSet = false; Aws::String m_iotThingName; bool m_iotThingNameHasBeenSet = false; Aws::Utils::DateTime m_registrationTime; bool m_registrationTimeHasBeenSet = false; Aws::Utils::DateTime m_latestHeartbeat; bool m_latestHeartbeatHasBeenSet = false; Aws::Vector m_models; bool m_modelsHasBeenSet = false; Aws::String m_agentVersion; bool m_agentVersionHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws