AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TransitionEvent.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
35 {
36 public:
37 AWS_IOTEVENTS_API TransitionEvent() = default;
38 AWS_IOTEVENTS_API TransitionEvent(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 TransitionEvent& WithEventName(EventNameT&& value) { SetEventName(std::forward<EventNameT>(value)); return *this;}
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) { m_conditionHasBeenSet = true; m_condition = std::forward<ConditionT>(value); }
64 template<typename ConditionT = Aws::String>
65 TransitionEvent& WithCondition(ConditionT&& value) { SetCondition(std::forward<ConditionT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
73 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
74 template<typename ActionsT = Aws::Vector<Action>>
75 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
76 template<typename ActionsT = Aws::Vector<Action>>
77 TransitionEvent& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
78 template<typename ActionsT = Action>
79 TransitionEvent& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetNextState() const { return m_nextState; }
87 inline bool NextStateHasBeenSet() const { return m_nextStateHasBeenSet; }
88 template<typename NextStateT = Aws::String>
89 void SetNextState(NextStateT&& value) { m_nextStateHasBeenSet = true; m_nextState = std::forward<NextStateT>(value); }
90 template<typename NextStateT = Aws::String>
91 TransitionEvent& WithNextState(NextStateT&& value) { SetNextState(std::forward<NextStateT>(value)); return *this;}
93 private:
94
95 Aws::String m_eventName;
96 bool m_eventNameHasBeenSet = false;
97
98 Aws::String m_condition;
99 bool m_conditionHasBeenSet = false;
100
101 Aws::Vector<Action> m_actions;
102 bool m_actionsHasBeenSet = false;
103
104 Aws::String m_nextState;
105 bool m_nextStateHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace IoTEvents
110} // 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)
void SetNextState(NextStateT &&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