AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
50 inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
51 inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); }
52 inline Event& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
53 inline Event& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
54 inline Event& WithEventName(const char* value) { SetEventName(value); return *this;}
56
58
64 inline const Aws::String& GetCondition() const{ return m_condition; }
65 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
66 inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
67 inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
68 inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
69 inline Event& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
70 inline Event& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
71 inline Event& WithCondition(const char* value) { SetCondition(value); return *this;}
73
75
78 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
79 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
80 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
81 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
82 inline Event& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
83 inline Event& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
84 inline Event& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
85 inline Event& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::String m_eventName;
90 bool m_eventNameHasBeenSet = false;
91
92 Aws::String m_condition;
93 bool m_conditionHasBeenSet = false;
94
95 Aws::Vector<Action> m_actions;
96 bool m_actionsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoTEvents
101} // namespace Aws
AWS_IOTEVENTS_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithCondition(const Aws::String &value)
Definition Event.h:69
void SetEventName(Aws::String &&value)
Definition Event.h:50
Event & AddActions(Action &&value)
Definition Event.h:85
Event & WithCondition(const char *value)
Definition Event.h:71
void SetEventName(const char *value)
Definition Event.h:51
AWS_IOTEVENTS_API Event()
void SetCondition(const char *value)
Definition Event.h:68
const Aws::String & GetEventName() const
Definition Event.h:47
Event & WithEventName(Aws::String &&value)
Definition Event.h:53
const Aws::String & GetCondition() const
Definition Event.h:64
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionsHasBeenSet() const
Definition Event.h:79
bool EventNameHasBeenSet() const
Definition Event.h:48
void SetEventName(const Aws::String &value)
Definition Event.h:49
void SetActions(Aws::Vector< Action > &&value)
Definition Event.h:81
Event & AddActions(const Action &value)
Definition Event.h:84
Event & WithEventName(const char *value)
Definition Event.h:54
bool ConditionHasBeenSet() const
Definition Event.h:65
const Aws::Vector< Action > & GetActions() const
Definition Event.h:78
Event & WithEventName(const Aws::String &value)
Definition Event.h:52
Event & WithCondition(Aws::String &&value)
Definition Event.h:70
AWS_IOTEVENTS_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCondition(Aws::String &&value)
Definition Event.h:67
Event & WithActions(Aws::Vector< Action > &&value)
Definition Event.h:83
void SetActions(const Aws::Vector< Action > &value)
Definition Event.h:80
Event & WithActions(const Aws::Vector< Action > &value)
Definition Event.h:82
void SetCondition(const Aws::String &value)
Definition Event.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue