/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT1ClickDevicesService { namespace Model { class DeviceDescription { public: AWS_IOT1CLICKDEVICESSERVICE_API DeviceDescription(); AWS_IOT1CLICKDEVICESSERVICE_API DeviceDescription(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKDEVICESSERVICE_API DeviceDescription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKDEVICESSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the device.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the device.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the device.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the device.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the device.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the device.

*/ inline DeviceDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the device.

*/ inline DeviceDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the device.

*/ inline DeviceDescription& WithArn(const char* value) { SetArn(value); return *this;} /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

An array of zero or more elements of DeviceAttribute objects providing user * specified device attributes.

*/ inline DeviceDescription& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

The unique identifier of the device.

*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *

The unique identifier of the device.

*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *

The unique identifier of the device.

*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *

The unique identifier of the device.

*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *

The unique identifier of the device.

*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *

The unique identifier of the device.

*/ inline DeviceDescription& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The unique identifier of the device.

*/ inline DeviceDescription& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *

The unique identifier of the device.

*/ inline DeviceDescription& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *

A Boolean value indicating whether or not the device is enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

A Boolean value indicating whether or not the device is enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

A Boolean value indicating whether or not the device is enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

A Boolean value indicating whether or not the device is enabled.

*/ inline DeviceDescription& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

A value between 0 and 1 inclusive, representing the fraction of life * remaining for the device.

*/ inline double GetRemainingLife() const{ return m_remainingLife; } /** *

A value between 0 and 1 inclusive, representing the fraction of life * remaining for the device.

*/ inline bool RemainingLifeHasBeenSet() const { return m_remainingLifeHasBeenSet; } /** *

A value between 0 and 1 inclusive, representing the fraction of life * remaining for the device.

*/ inline void SetRemainingLife(double value) { m_remainingLifeHasBeenSet = true; m_remainingLife = value; } /** *

A value between 0 and 1 inclusive, representing the fraction of life * remaining for the device.

*/ inline DeviceDescription& WithRemainingLife(double value) { SetRemainingLife(value); return *this;} /** *

The type of the device, such as "button".

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the device, such as "button".

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the device, such as "button".

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the device, such as "button".

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the device, such as "button".

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the device, such as "button".

*/ inline DeviceDescription& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the device, such as "button".

*/ inline DeviceDescription& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the device, such as "button".

*/ inline DeviceDescription& WithType(const char* value) { SetType(value); return *this;} /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ inline DeviceDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; double m_remainingLife; bool m_remainingLifeHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoT1ClickDevicesService } // namespace Aws