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

Contains asset property value notification information. When the notification * state is enabled, IoT SiteWise publishes property value updates to a unique MQTT * topic. For more information, see Interacting * with other services in the IoT SiteWise User Guide.

See * Also:

AWS * API Reference

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

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline const Aws::String& GetTopic() const{ return m_topic; } /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline PropertyNotification& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline PropertyNotification& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} /** *

The MQTT topic to which IoT SiteWise publishes property value update * notifications.

*/ inline PropertyNotification& WithTopic(const char* value) { SetTopic(value); return *this;} /** *

The current notification state.

*/ inline const PropertyNotificationState& GetState() const{ return m_state; } /** *

The current notification state.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current notification state.

*/ inline void SetState(const PropertyNotificationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current notification state.

*/ inline void SetState(PropertyNotificationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current notification state.

*/ inline PropertyNotification& WithState(const PropertyNotificationState& value) { SetState(value); return *this;} /** *

The current notification state.

*/ inline PropertyNotification& WithState(PropertyNotificationState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_topic; bool m_topicHasBeenSet = false; PropertyNotificationState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws