AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AlarmEventActions.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/AlarmAction.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 AlarmEventActions() = default;
32 AWS_IOTEVENTS_API AlarmEventActions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<AlarmAction>& GetAlarmActions() const { return m_alarmActions; }
42 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
43 template <typename AlarmActionsT = Aws::Vector<AlarmAction>>
44 void SetAlarmActions(AlarmActionsT&& value) {
45 m_alarmActionsHasBeenSet = true;
46 m_alarmActions = std::forward<AlarmActionsT>(value);
47 }
48 template <typename AlarmActionsT = Aws::Vector<AlarmAction>>
49 AlarmEventActions& WithAlarmActions(AlarmActionsT&& value) {
50 SetAlarmActions(std::forward<AlarmActionsT>(value));
51 return *this;
52 }
53 template <typename AlarmActionsT = AlarmAction>
54 AlarmEventActions& AddAlarmActions(AlarmActionsT&& value) {
55 m_alarmActionsHasBeenSet = true;
56 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<AlarmAction> m_alarmActions;
62 bool m_alarmActionsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace IoTEvents
67} // namespace Aws
AWS_IOTEVENTS_API AlarmEventActions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AlarmAction > & GetAlarmActions() const
AWS_IOTEVENTS_API AlarmEventActions(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAlarmActions(AlarmActionsT &&value)
AWS_IOTEVENTS_API AlarmEventActions()=default
AlarmEventActions & WithAlarmActions(AlarmActionsT &&value)
AlarmEventActions & AddAlarmActions(AlarmActionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue