AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlarmEventActions.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/AlarmAction.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 AlarmEventActions();
37 AWS_IOTEVENTS_API AlarmEventActions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<AlarmAction>& GetAlarmActions() const{ return m_alarmActions; }
48 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
49 inline void SetAlarmActions(const Aws::Vector<AlarmAction>& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = value; }
50 inline void SetAlarmActions(Aws::Vector<AlarmAction>&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::move(value); }
51 inline AlarmEventActions& WithAlarmActions(const Aws::Vector<AlarmAction>& value) { SetAlarmActions(value); return *this;}
52 inline AlarmEventActions& WithAlarmActions(Aws::Vector<AlarmAction>&& value) { SetAlarmActions(std::move(value)); return *this;}
53 inline AlarmEventActions& AddAlarmActions(const AlarmAction& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
54 inline AlarmEventActions& AddAlarmActions(AlarmAction&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(std::move(value)); return *this; }
56 private:
57
58 Aws::Vector<AlarmAction> m_alarmActions;
59 bool m_alarmActionsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace IoTEvents
64} // namespace Aws
void SetAlarmActions(Aws::Vector< AlarmAction > &&value)
AWS_IOTEVENTS_API AlarmEventActions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AlarmAction > & GetAlarmActions() const
void SetAlarmActions(const Aws::Vector< AlarmAction > &value)
AlarmEventActions & AddAlarmActions(AlarmAction &&value)
AlarmEventActions & WithAlarmActions(const Aws::Vector< AlarmAction > &value)
AWS_IOTEVENTS_API AlarmEventActions(Aws::Utils::Json::JsonView jsonValue)
AlarmEventActions & AddAlarmActions(const AlarmAction &value)
AlarmEventActions & WithAlarmActions(Aws::Vector< AlarmAction > &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue