AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
State.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/OnInputLifecycle.h>
10#include <aws/iotevents/model/OnEnterLifecycle.h>
11#include <aws/iotevents/model/OnExitLifecycle.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTEvents
25{
26namespace Model
27{
28
34 class State
35 {
36 public:
37 AWS_IOTEVENTS_API State();
38 AWS_IOTEVENTS_API State(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API State& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetStateName() const{ return m_stateName; }
48 inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
49 inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
50 inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
51 inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
52 inline State& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
53 inline State& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
54 inline State& WithStateName(const char* value) { SetStateName(value); return *this;}
56
58
62 inline const OnInputLifecycle& GetOnInput() const{ return m_onInput; }
63 inline bool OnInputHasBeenSet() const { return m_onInputHasBeenSet; }
64 inline void SetOnInput(const OnInputLifecycle& value) { m_onInputHasBeenSet = true; m_onInput = value; }
65 inline void SetOnInput(OnInputLifecycle&& value) { m_onInputHasBeenSet = true; m_onInput = std::move(value); }
66 inline State& WithOnInput(const OnInputLifecycle& value) { SetOnInput(value); return *this;}
67 inline State& WithOnInput(OnInputLifecycle&& value) { SetOnInput(std::move(value)); return *this;}
69
71
75 inline const OnEnterLifecycle& GetOnEnter() const{ return m_onEnter; }
76 inline bool OnEnterHasBeenSet() const { return m_onEnterHasBeenSet; }
77 inline void SetOnEnter(const OnEnterLifecycle& value) { m_onEnterHasBeenSet = true; m_onEnter = value; }
78 inline void SetOnEnter(OnEnterLifecycle&& value) { m_onEnterHasBeenSet = true; m_onEnter = std::move(value); }
79 inline State& WithOnEnter(const OnEnterLifecycle& value) { SetOnEnter(value); return *this;}
80 inline State& WithOnEnter(OnEnterLifecycle&& value) { SetOnEnter(std::move(value)); return *this;}
82
84
88 inline const OnExitLifecycle& GetOnExit() const{ return m_onExit; }
89 inline bool OnExitHasBeenSet() const { return m_onExitHasBeenSet; }
90 inline void SetOnExit(const OnExitLifecycle& value) { m_onExitHasBeenSet = true; m_onExit = value; }
91 inline void SetOnExit(OnExitLifecycle&& value) { m_onExitHasBeenSet = true; m_onExit = std::move(value); }
92 inline State& WithOnExit(const OnExitLifecycle& value) { SetOnExit(value); return *this;}
93 inline State& WithOnExit(OnExitLifecycle&& value) { SetOnExit(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_stateName;
98 bool m_stateNameHasBeenSet = false;
99
100 OnInputLifecycle m_onInput;
101 bool m_onInputHasBeenSet = false;
102
103 OnEnterLifecycle m_onEnter;
104 bool m_onEnterHasBeenSet = false;
105
106 OnExitLifecycle m_onExit;
107 bool m_onExitHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoTEvents
112} // namespace Aws
State & WithOnInput(const OnInputLifecycle &value)
Definition State.h:66
AWS_IOTEVENTS_API State & operator=(Aws::Utils::Json::JsonView jsonValue)
State & WithStateName(Aws::String &&value)
Definition State.h:53
void SetStateName(const char *value)
Definition State.h:51
bool OnEnterHasBeenSet() const
Definition State.h:76
void SetOnInput(OnInputLifecycle &&value)
Definition State.h:65
State & WithStateName(const Aws::String &value)
Definition State.h:52
void SetStateName(const Aws::String &value)
Definition State.h:49
const OnEnterLifecycle & GetOnEnter() const
Definition State.h:75
void SetOnInput(const OnInputLifecycle &value)
Definition State.h:64
bool OnInputHasBeenSet() const
Definition State.h:63
State & WithOnExit(OnExitLifecycle &&value)
Definition State.h:93
const OnInputLifecycle & GetOnInput() const
Definition State.h:62
void SetOnEnter(OnEnterLifecycle &&value)
Definition State.h:78
bool OnExitHasBeenSet() const
Definition State.h:89
bool StateNameHasBeenSet() const
Definition State.h:48
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
State & WithOnEnter(const OnEnterLifecycle &value)
Definition State.h:79
void SetOnExit(OnExitLifecycle &&value)
Definition State.h:91
State & WithOnExit(const OnExitLifecycle &value)
Definition State.h:92
void SetStateName(Aws::String &&value)
Definition State.h:50
State & WithStateName(const char *value)
Definition State.h:54
const Aws::String & GetStateName() const
Definition State.h:47
AWS_IOTEVENTS_API State()
State & WithOnEnter(OnEnterLifecycle &&value)
Definition State.h:80
const OnExitLifecycle & GetOnExit() const
Definition State.h:88
AWS_IOTEVENTS_API State(Aws::Utils::Json::JsonView jsonValue)
void SetOnEnter(const OnEnterLifecycle &value)
Definition State.h:77
void SetOnExit(const OnExitLifecycle &value)
Definition State.h:90
State & WithOnInput(OnInputLifecycle &&value)
Definition State.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue