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

Contains information about one or more notification actions.

See * Also:

AWS * API Reference

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

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline const Aws::Vector& GetNotificationActions() const{ return m_notificationActions; } /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline bool NotificationActionsHasBeenSet() const { return m_notificationActionsHasBeenSet; } /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline void SetNotificationActions(const Aws::Vector& value) { m_notificationActionsHasBeenSet = true; m_notificationActions = value; } /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline void SetNotificationActions(Aws::Vector&& value) { m_notificationActionsHasBeenSet = true; m_notificationActions = std::move(value); } /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline AlarmNotification& WithNotificationActions(const Aws::Vector& value) { SetNotificationActions(value); return *this;} /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline AlarmNotification& WithNotificationActions(Aws::Vector&& value) { SetNotificationActions(std::move(value)); return *this;} /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline AlarmNotification& AddNotificationActions(const NotificationAction& value) { m_notificationActionsHasBeenSet = true; m_notificationActions.push_back(value); return *this; } /** *

Contains the notification settings of an alarm model. The settings apply to * all alarms that were created based on this alarm model.

*/ inline AlarmNotification& AddNotificationActions(NotificationAction&& value) { m_notificationActionsHasBeenSet = true; m_notificationActions.push_back(std::move(value)); return *this; } private: Aws::Vector m_notificationActions; bool m_notificationActionsHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws