AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlarmNotification.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/model/NotificationAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTEVENTS_API AlarmNotification();
37 AWS_IOTEVENTS_API AlarmNotification(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<NotificationAction>& GetNotificationActions() const{ return m_notificationActions; }
48 inline bool NotificationActionsHasBeenSet() const { return m_notificationActionsHasBeenSet; }
49 inline void SetNotificationActions(const Aws::Vector<NotificationAction>& value) { m_notificationActionsHasBeenSet = true; m_notificationActions = value; }
50 inline void SetNotificationActions(Aws::Vector<NotificationAction>&& value) { m_notificationActionsHasBeenSet = true; m_notificationActions = std::move(value); }
53 inline AlarmNotification& AddNotificationActions(const NotificationAction& value) { m_notificationActionsHasBeenSet = true; m_notificationActions.push_back(value); return *this; }
54 inline AlarmNotification& AddNotificationActions(NotificationAction&& value) { m_notificationActionsHasBeenSet = true; m_notificationActions.push_back(std::move(value)); return *this; }
56 private:
57
58 Aws::Vector<NotificationAction> m_notificationActions;
59 bool m_notificationActionsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace IoTEvents
64} // namespace Aws
void SetNotificationActions(Aws::Vector< NotificationAction > &&value)
AlarmNotification & AddNotificationActions(NotificationAction &&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(const Aws::Vector< NotificationAction > &value)
void SetNotificationActions(const Aws::Vector< NotificationAction > &value)
AlarmNotification & WithNotificationActions(Aws::Vector< NotificationAction > &&value)
AWS_IOTEVENTS_API AlarmNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
AlarmNotification & AddNotificationActions(const NotificationAction &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue