/** * 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 AlexaForBusiness { namespace Model { /** *

The list of device events.

See Also:

AWS * API Reference

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

The type of device event.

*/ inline const DeviceEventType& GetType() const{ return m_type; } /** *

The type of device event.

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

The type of device event.

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

The type of device event.

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

The type of device event.

*/ inline DeviceEvent& WithType(const DeviceEventType& value) { SetType(value); return *this;} /** *

The type of device event.

*/ inline DeviceEvent& WithType(DeviceEventType&& value) { SetType(std::move(value)); return *this;} /** *

The value of the event.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the event.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the event.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the event.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the event.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the event.

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

The value of the event.

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

The value of the event.

*/ inline DeviceEvent& WithValue(const char* value) { SetValue(value); return *this;} /** *

The time (in epoch) when the event occurred.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The time (in epoch) when the event occurred.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time (in epoch) when the event occurred.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time (in epoch) when the event occurred.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time (in epoch) when the event occurred.

*/ inline DeviceEvent& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The time (in epoch) when the event occurred.

*/ inline DeviceEvent& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: DeviceEventType m_type; bool m_typeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace AlexaForBusiness } // namespace Aws