AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectorState.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotevents-data/model/Variable.h>
11#include <aws/iotevents-data/model/Timer.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 IoTEventsData
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTEVENTSDATA_API DetectorState();
39 AWS_IOTEVENTSDATA_API DetectorState(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTSDATA_API DetectorState& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetStateName() const{ return m_stateName; }
49 inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
50 inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
51 inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
52 inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
53 inline DetectorState& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
54 inline DetectorState& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
55 inline DetectorState& WithStateName(const char* value) { SetStateName(value); return *this;}
57
59
62 inline const Aws::Vector<Variable>& GetVariables() const{ return m_variables; }
63 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
64 inline void SetVariables(const Aws::Vector<Variable>& value) { m_variablesHasBeenSet = true; m_variables = value; }
65 inline void SetVariables(Aws::Vector<Variable>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
66 inline DetectorState& WithVariables(const Aws::Vector<Variable>& value) { SetVariables(value); return *this;}
67 inline DetectorState& WithVariables(Aws::Vector<Variable>&& value) { SetVariables(std::move(value)); return *this;}
68 inline DetectorState& AddVariables(const Variable& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
69 inline DetectorState& AddVariables(Variable&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<Timer>& GetTimers() const{ return m_timers; }
77 inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; }
78 inline void SetTimers(const Aws::Vector<Timer>& value) { m_timersHasBeenSet = true; m_timers = value; }
79 inline void SetTimers(Aws::Vector<Timer>&& value) { m_timersHasBeenSet = true; m_timers = std::move(value); }
80 inline DetectorState& WithTimers(const Aws::Vector<Timer>& value) { SetTimers(value); return *this;}
81 inline DetectorState& WithTimers(Aws::Vector<Timer>&& value) { SetTimers(std::move(value)); return *this;}
82 inline DetectorState& AddTimers(const Timer& value) { m_timersHasBeenSet = true; m_timers.push_back(value); return *this; }
83 inline DetectorState& AddTimers(Timer&& value) { m_timersHasBeenSet = true; m_timers.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_stateName;
88 bool m_stateNameHasBeenSet = false;
89
90 Aws::Vector<Variable> m_variables;
91 bool m_variablesHasBeenSet = false;
92
93 Aws::Vector<Timer> m_timers;
94 bool m_timersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace IoTEventsData
99} // namespace Aws
const Aws::Vector< Variable > & GetVariables() const
AWS_IOTEVENTSDATA_API DetectorState(Aws::Utils::Json::JsonView jsonValue)
void SetTimers(Aws::Vector< Timer > &&value)
void SetStateName(const Aws::String &value)
AWS_IOTEVENTSDATA_API DetectorState & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectorState & AddVariables(Variable &&value)
void SetTimers(const Aws::Vector< Timer > &value)
void SetVariables(const Aws::Vector< Variable > &value)
DetectorState & WithStateName(Aws::String &&value)
DetectorState & WithVariables(const Aws::Vector< Variable > &value)
DetectorState & AddTimers(const Timer &value)
DetectorState & AddVariables(const Variable &value)
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
DetectorState & AddTimers(Timer &&value)
AWS_IOTEVENTSDATA_API DetectorState()
const Aws::String & GetStateName() const
DetectorState & WithVariables(Aws::Vector< Variable > &&value)
void SetVariables(Aws::Vector< Variable > &&value)
const Aws::Vector< Timer > & GetTimers() const
DetectorState & WithStateName(const Aws::String &value)
DetectorState & WithStateName(const char *value)
DetectorState & WithTimers(const Aws::Vector< Timer > &value)
DetectorState & WithTimers(Aws::Vector< Timer > &&value)
void SetStateName(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