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

An object representing the device associated with the event.

*/ inline const Device& GetDevice() const{ return m_device; } /** *

An object representing the device associated with the event.

*/ inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; } /** *

An object representing the device associated with the event.

*/ inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; } /** *

An object representing the device associated with the event.

*/ inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); } /** *

An object representing the device associated with the event.

*/ inline DeviceEvent& WithDevice(const Device& value) { SetDevice(value); return *this;} /** *

An object representing the device associated with the event.

*/ inline DeviceEvent& WithDevice(Device&& value) { SetDevice(std::move(value)); return *this;} /** *

A serialized JSON object representing the device-type specific event.

*/ inline const Aws::String& GetStdEvent() const{ return m_stdEvent; } /** *

A serialized JSON object representing the device-type specific event.

*/ inline bool StdEventHasBeenSet() const { return m_stdEventHasBeenSet; } /** *

A serialized JSON object representing the device-type specific event.

*/ inline void SetStdEvent(const Aws::String& value) { m_stdEventHasBeenSet = true; m_stdEvent = value; } /** *

A serialized JSON object representing the device-type specific event.

*/ inline void SetStdEvent(Aws::String&& value) { m_stdEventHasBeenSet = true; m_stdEvent = std::move(value); } /** *

A serialized JSON object representing the device-type specific event.

*/ inline void SetStdEvent(const char* value) { m_stdEventHasBeenSet = true; m_stdEvent.assign(value); } /** *

A serialized JSON object representing the device-type specific event.

*/ inline DeviceEvent& WithStdEvent(const Aws::String& value) { SetStdEvent(value); return *this;} /** *

A serialized JSON object representing the device-type specific event.

*/ inline DeviceEvent& WithStdEvent(Aws::String&& value) { SetStdEvent(std::move(value)); return *this;} /** *

A serialized JSON object representing the device-type specific event.

*/ inline DeviceEvent& WithStdEvent(const char* value) { SetStdEvent(value); return *this;} private: Device m_device; bool m_deviceHasBeenSet; Aws::String m_stdEvent; bool m_stdEventHasBeenSet; }; } // namespace Model } // namespace IoT1ClickDevicesService } // namespace Aws