AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotevents/model/Action.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTEvents
24{
25namespace Model
26{
27
34 class Event
35 {
36 public:
37 AWS_IOTEVENTS_API Event() = default;
38 AWS_IOTEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetEventName() const { return m_eventName; }
48 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
49 template<typename EventNameT = Aws::String>
50 void SetEventName(EventNameT&& value) { m_eventNameHasBeenSet = true; m_eventName = std::forward<EventNameT>(value); }
51 template<typename EventNameT = Aws::String>
52 Event& WithEventName(EventNameT&& value) { SetEventName(std::forward<EventNameT>(value)); return *this;}
54
56
62 inline const Aws::String& GetCondition() const { return m_condition; }
63 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
64 template<typename ConditionT = Aws::String>
65 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet = true; m_condition = std::forward<ConditionT>(value); }
66 template<typename ConditionT = Aws::String>
67 Event& WithCondition(ConditionT&& value) { SetCondition(std::forward<ConditionT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
75 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
76 template<typename ActionsT = Aws::Vector<Action>>
77 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
78 template<typename ActionsT = Aws::Vector<Action>>
79 Event& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
80 template<typename ActionsT = Action>
81 Event& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
83 private:
84
85 Aws::String m_eventName;
86 bool m_eventNameHasBeenSet = false;
87
88 Aws::String m_condition;
89 bool m_conditionHasBeenSet = false;
90
91 Aws::Vector<Action> m_actions;
92 bool m_actionsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoTEvents
97} // namespace Aws
Event & WithCondition(ConditionT &&value)
Definition Event.h:67
AWS_IOTEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetEventName(EventNameT &&value)
Definition Event.h:50
void SetActions(ActionsT &&value)
Definition Event.h:77
const Aws::String & GetEventName() const
Definition Event.h:47
Event & WithEventName(EventNameT &&value)
Definition Event.h:52
const Aws::String & GetCondition() const
Definition Event.h:62
void SetCondition(ConditionT &&value)
Definition Event.h:65
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionsHasBeenSet() const
Definition Event.h:75
AWS_IOTEVENTS_API Event()=default
bool EventNameHasBeenSet() const
Definition Event.h:48
Event & AddActions(ActionsT &&value)
Definition Event.h:81
Event & WithActions(ActionsT &&value)
Definition Event.h:79
bool ConditionHasBeenSet() const
Definition Event.h:63
const Aws::Vector< Action > & GetActions() const
Definition Event.h:74
AWS_IOTEVENTS_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue