AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DetectorStateDefinition.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/VariableDefinition.h>
11#include <aws/iotevents-data/model/TimerDefinition.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 DetectorStateDefinition() = default;
39 AWS_IOTEVENTSDATA_API DetectorStateDefinition(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 DetectorStateDefinition& WithStateName(StateNameT&& value) { SetStateName(std::forward<StateNameT>(value)); return *this;}
55
57
61 inline const Aws::Vector<VariableDefinition>& GetVariables() const { return m_variables; }
62 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
63 template<typename VariablesT = Aws::Vector<VariableDefinition>>
64 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables = std::forward<VariablesT>(value); }
65 template<typename VariablesT = Aws::Vector<VariableDefinition>>
66 DetectorStateDefinition& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
67 template<typename VariablesT = VariableDefinition>
68 DetectorStateDefinition& AddVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables.emplace_back(std::forward<VariablesT>(value)); return *this; }
70
72
76 inline const Aws::Vector<TimerDefinition>& GetTimers() const { return m_timers; }
77 inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; }
78 template<typename TimersT = Aws::Vector<TimerDefinition>>
79 void SetTimers(TimersT&& value) { m_timersHasBeenSet = true; m_timers = std::forward<TimersT>(value); }
80 template<typename TimersT = Aws::Vector<TimerDefinition>>
81 DetectorStateDefinition& WithTimers(TimersT&& value) { SetTimers(std::forward<TimersT>(value)); return *this;}
82 template<typename TimersT = TimerDefinition>
83 DetectorStateDefinition& AddTimers(TimersT&& value) { m_timersHasBeenSet = true; m_timers.emplace_back(std::forward<TimersT>(value)); return *this; }
85 private:
86
87 Aws::String m_stateName;
88 bool m_stateNameHasBeenSet = false;
89
91 bool m_variablesHasBeenSet = false;
92
94 bool m_timersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace IoTEventsData
99} // namespace Aws
DetectorStateDefinition & WithVariables(VariablesT &&value)
DetectorStateDefinition & AddVariables(VariablesT &&value)
AWS_IOTEVENTSDATA_API DetectorStateDefinition()=default
DetectorStateDefinition & AddTimers(TimersT &&value)
const Aws::Vector< TimerDefinition > & GetTimers() const
const Aws::Vector< VariableDefinition > & GetVariables() const
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
DetectorStateDefinition & WithStateName(StateNameT &&value)
AWS_IOTEVENTSDATA_API DetectorStateDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectorStateDefinition & WithTimers(TimersT &&value)
AWS_IOTEVENTSDATA_API DetectorStateDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue