AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 TransitionEvent& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
53 inline TransitionEvent& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
54 inline TransitionEvent& WithEventName(const char* value) { SetEventName(value); return *this;}
56
58
62 inline const Aws::String& GetCondition() const{ return m_condition; }
63 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
64 inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
65 inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
66 inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
67 inline TransitionEvent& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
68 inline TransitionEvent& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
69 inline TransitionEvent& WithCondition(const char* value) { SetCondition(value); return *this;}
71
73
76 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
77 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
78 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
79 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
80 inline TransitionEvent& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
81 inline TransitionEvent& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
82 inline TransitionEvent& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
83 inline TransitionEvent& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::String& GetNextState() const{ return m_nextState; }
91 inline bool NextStateHasBeenSet() const { return m_nextStateHasBeenSet; }
92 inline void SetNextState(const Aws::String& value) { m_nextStateHasBeenSet = true; m_nextState = value; }
93 inline void SetNextState(Aws::String&& value) { m_nextStateHasBeenSet = true; m_nextState = std::move(value); }
94 inline void SetNextState(const char* value) { m_nextStateHasBeenSet = true; m_nextState.assign(value); }
95 inline TransitionEvent& WithNextState(const Aws::String& value) { SetNextState(value); return *this;}
96 inline TransitionEvent& WithNextState(Aws::String&& value) { SetNextState(std::move(value)); return *this;}
97 inline TransitionEvent& WithNextState(const char* value) { SetNextState(value); return *this;}
99 private:
100
101 Aws::String m_eventName;
102 bool m_eventNameHasBeenSet = false;
103
104 Aws::String m_condition;
105 bool m_conditionHasBeenSet = false;
106
107 Aws::Vector<Action> m_actions;
108 bool m_actionsHasBeenSet = false;
109
110 Aws::String m_nextState;
111 bool m_nextStateHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace IoTEvents
116} // namespace Aws
void SetCondition(const Aws::String &value)
TransitionEvent & WithNextState(Aws::String &&value)
void SetNextState(Aws::String &&value)
AWS_IOTEVENTS_API TransitionEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
TransitionEvent & WithNextState(const char *value)
TransitionEvent & AddActions(const Action &value)
AWS_IOTEVENTS_API TransitionEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEventName() const
void SetEventName(Aws::String &&value)
TransitionEvent & WithActions(Aws::Vector< Action > &&value)
void SetNextState(const Aws::String &value)
TransitionEvent & AddActions(Action &&value)
const Aws::Vector< Action > & GetActions() const
const Aws::String & GetCondition() const
void SetActions(const Aws::Vector< Action > &value)
TransitionEvent & WithCondition(Aws::String &&value)
void SetCondition(Aws::String &&value)
TransitionEvent & WithEventName(const Aws::String &value)
TransitionEvent & WithCondition(const Aws::String &value)
TransitionEvent & WithActions(const Aws::Vector< Action > &value)
void SetEventName(const Aws::String &value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
TransitionEvent & WithEventName(Aws::String &&value)
const Aws::String & GetNextState() const
TransitionEvent & WithCondition(const char *value)
void SetActions(Aws::Vector< Action > &&value)
TransitionEvent & WithEventName(const char *value)
TransitionEvent & WithNextState(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue