/** * 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 Device { public: AWS_IOT1CLICKDEVICESSERVICE_API Device(); AWS_IOT1CLICKDEVICESSERVICE_API Device(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKDEVICESSERVICE_API Device& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT1CLICKDEVICESSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The user specified attributes associated with the device for an event.

*/ inline const Attributes& GetAttributes() const{ return m_attributes; } /** *

The user specified attributes associated with the device for an event.

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

The user specified attributes associated with the device for an event.

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

The user specified attributes associated with the device for an event.

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

The user specified attributes associated with the device for an event.

*/ inline Device& WithAttributes(const Attributes& value) { SetAttributes(value); return *this;} /** *

The user specified attributes associated with the device for an event.

*/ inline Device& WithAttributes(Attributes&& value) { SetAttributes(std::move(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 Device& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The unique identifier of the device.

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

The unique identifier of the device.

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

The device type, such as "button".

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

The device type, such as "button".

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

The device type, such as "button".

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

The device type, such as "button".

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

The device type, such as "button".

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

The device type, such as "button".

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

The device type, such as "button".

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

The device type, such as "button".

*/ inline Device& WithType(const char* value) { SetType(value); return *this;} private: Attributes m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace IoT1ClickDevicesService } // namespace Aws