AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AlarmNotification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/NotificationAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
30 public:
31 AWS_IOTEVENTS_API AlarmNotification() = default;
32 AWS_IOTEVENTS_API AlarmNotification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<NotificationAction>& GetNotificationActions() const { return m_notificationActions; }
42 inline bool NotificationActionsHasBeenSet() const { return m_notificationActionsHasBeenSet; }
43 template <typename NotificationActionsT = Aws::Vector<NotificationAction>>
44 void SetNotificationActions(NotificationActionsT&& value) {
45 m_notificationActionsHasBeenSet = true;
46 m_notificationActions = std::forward<NotificationActionsT>(value);
47 }
48 template <typename NotificationActionsT = Aws::Vector<NotificationAction>>
49 AlarmNotification& WithNotificationActions(NotificationActionsT&& value) {
50 SetNotificationActions(std::forward<NotificationActionsT>(value));
51 return *this;
52 }
53 template <typename NotificationActionsT = NotificationAction>
54 AlarmNotification& AddNotificationActions(NotificationActionsT&& value) {
55 m_notificationActionsHasBeenSet = true;
56 m_notificationActions.emplace_back(std::forward<NotificationActionsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<NotificationAction> m_notificationActions;
62 bool m_notificationActionsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace IoTEvents
67} // namespace Aws
AWS_IOTEVENTS_API AlarmNotification()=default
void SetNotificationActions(NotificationActionsT &&value)
const Aws::Vector< NotificationAction > & GetNotificationActions() const
AWS_IOTEVENTS_API AlarmNotification(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmNotification & WithNotificationActions(NotificationActionsT &&value)
AlarmNotification & AddNotificationActions(NotificationActionsT &&value)
AWS_IOTEVENTS_API AlarmNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue