AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
TransitionEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/Action.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTEvents {
22namespace Model {
23
31 public:
32 AWS_IOTEVENTS_API TransitionEvent() = default;
33 AWS_IOTEVENTS_API TransitionEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetEventName() const { return m_eventName; }
42 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
43 template <typename EventNameT = Aws::String>
44 void SetEventName(EventNameT&& value) {
45 m_eventNameHasBeenSet = true;
46 m_eventName = std::forward<EventNameT>(value);
47 }
48 template <typename EventNameT = Aws::String>
49 TransitionEvent& WithEventName(EventNameT&& value) {
50 SetEventName(std::forward<EventNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCondition() const { return m_condition; }
61 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
62 template <typename ConditionT = Aws::String>
63 void SetCondition(ConditionT&& value) {
64 m_conditionHasBeenSet = true;
65 m_condition = std::forward<ConditionT>(value);
66 }
67 template <typename ConditionT = Aws::String>
68 TransitionEvent& WithCondition(ConditionT&& value) {
69 SetCondition(std::forward<ConditionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
79 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
80 template <typename ActionsT = Aws::Vector<Action>>
81 void SetActions(ActionsT&& value) {
82 m_actionsHasBeenSet = true;
83 m_actions = std::forward<ActionsT>(value);
84 }
85 template <typename ActionsT = Aws::Vector<Action>>
86 TransitionEvent& WithActions(ActionsT&& value) {
87 SetActions(std::forward<ActionsT>(value));
88 return *this;
89 }
90 template <typename ActionsT = Action>
91 TransitionEvent& AddActions(ActionsT&& value) {
92 m_actionsHasBeenSet = true;
93 m_actions.emplace_back(std::forward<ActionsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetNextState() const { return m_nextState; }
103 inline bool NextStateHasBeenSet() const { return m_nextStateHasBeenSet; }
104 template <typename NextStateT = Aws::String>
105 void SetNextState(NextStateT&& value) {
106 m_nextStateHasBeenSet = true;
107 m_nextState = std::forward<NextStateT>(value);
108 }
109 template <typename NextStateT = Aws::String>
110 TransitionEvent& WithNextState(NextStateT&& value) {
111 SetNextState(std::forward<NextStateT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_eventName;
117
118 Aws::String m_condition;
119
120 Aws::Vector<Action> m_actions;
121
122 Aws::String m_nextState;
123 bool m_eventNameHasBeenSet = false;
124 bool m_conditionHasBeenSet = false;
125 bool m_actionsHasBeenSet = false;
126 bool m_nextStateHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace IoTEvents
131} // namespace Aws
TransitionEvent & WithActions(ActionsT &&value)
AWS_IOTEVENTS_API TransitionEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventName(EventNameT &&value)
TransitionEvent & WithCondition(ConditionT &&value)
AWS_IOTEVENTS_API TransitionEvent(Aws::Utils::Json::JsonView jsonValue)
TransitionEvent & AddActions(ActionsT &&value)
const Aws::String & GetEventName() const
TransitionEvent & WithNextState(NextStateT &&value)
TransitionEvent & WithEventName(EventNameT &&value)
AWS_IOTEVENTS_API TransitionEvent()=default
void SetCondition(ConditionT &&value)
const Aws::Vector< Action > & GetActions() const
const Aws::String & GetCondition() const
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetNextState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue