AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename StateNameT = Aws::String>
51 void SetStateName(StateNameT&& value) { m_stateNameHasBeenSet = true; m_stateName = std::forward<StateNameT>(value); }
52 template<typename StateNameT = Aws::String>
53 DetectorState& WithStateName(StateNameT&& value) { SetStateName(std::forward<StateNameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Variable>& GetVariables() const { return m_variables; }
61 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
62 template<typename VariablesT = Aws::Vector<Variable>>
63 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables = std::forward<VariablesT>(value); }
64 template<typename VariablesT = Aws::Vector<Variable>>
65 DetectorState& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
66 template<typename VariablesT = Variable>
67 DetectorState& AddVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables.emplace_back(std::forward<VariablesT>(value)); return *this; }
69
71
74 inline const Aws::Vector<Timer>& GetTimers() const { return m_timers; }
75 inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; }
76 template<typename TimersT = Aws::Vector<Timer>>
77 void SetTimers(TimersT&& value) { m_timersHasBeenSet = true; m_timers = std::forward<TimersT>(value); }
78 template<typename TimersT = Aws::Vector<Timer>>
79 DetectorState& WithTimers(TimersT&& value) { SetTimers(std::forward<TimersT>(value)); return *this;}
80 template<typename TimersT = Timer>
81 DetectorState& AddTimers(TimersT&& value) { m_timersHasBeenSet = true; m_timers.emplace_back(std::forward<TimersT>(value)); return *this; }
83 private:
84
85 Aws::String m_stateName;
86 bool m_stateNameHasBeenSet = false;
87
88 Aws::Vector<Variable> m_variables;
89 bool m_variablesHasBeenSet = false;
90
91 Aws::Vector<Timer> m_timers;
92 bool m_timersHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoTEventsData
97} // namespace Aws
const Aws::Vector< Variable > & GetVariables() const
AWS_IOTEVENTSDATA_API DetectorState(Aws::Utils::Json::JsonView jsonValue)
void SetStateName(StateNameT &&value)
AWS_IOTEVENTSDATA_API DetectorState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTSDATA_API DetectorState()=default
DetectorState & AddVariables(VariablesT &&value)
DetectorState & AddTimers(TimersT &&value)
void SetVariables(VariablesT &&value)
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStateName() const
DetectorState & WithTimers(TimersT &&value)
const Aws::Vector< Timer > & GetTimers() const
DetectorState & WithStateName(StateNameT &&value)
DetectorState & WithVariables(VariablesT &&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