AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 DetectorStateDefinition& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
54 inline DetectorStateDefinition& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
55 inline DetectorStateDefinition& WithStateName(const char* value) { SetStateName(value); return *this;}
57
59
63 inline const Aws::Vector<VariableDefinition>& GetVariables() const{ return m_variables; }
64 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
65 inline void SetVariables(const Aws::Vector<VariableDefinition>& value) { m_variablesHasBeenSet = true; m_variables = value; }
66 inline void SetVariables(Aws::Vector<VariableDefinition>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
68 inline DetectorStateDefinition& WithVariables(Aws::Vector<VariableDefinition>&& value) { SetVariables(std::move(value)); return *this;}
69 inline DetectorStateDefinition& AddVariables(const VariableDefinition& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
70 inline DetectorStateDefinition& AddVariables(VariableDefinition&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
72
74
78 inline const Aws::Vector<TimerDefinition>& GetTimers() const{ return m_timers; }
79 inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; }
80 inline void SetTimers(const Aws::Vector<TimerDefinition>& value) { m_timersHasBeenSet = true; m_timers = value; }
81 inline void SetTimers(Aws::Vector<TimerDefinition>&& value) { m_timersHasBeenSet = true; m_timers = std::move(value); }
82 inline DetectorStateDefinition& WithTimers(const Aws::Vector<TimerDefinition>& value) { SetTimers(value); return *this;}
83 inline DetectorStateDefinition& WithTimers(Aws::Vector<TimerDefinition>&& value) { SetTimers(std::move(value)); return *this;}
84 inline DetectorStateDefinition& AddTimers(const TimerDefinition& value) { m_timersHasBeenSet = true; m_timers.push_back(value); return *this; }
85 inline DetectorStateDefinition& AddTimers(TimerDefinition&& value) { m_timersHasBeenSet = true; m_timers.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::String m_stateName;
90 bool m_stateNameHasBeenSet = false;
91
93 bool m_variablesHasBeenSet = false;
94
96 bool m_timersHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoTEventsData
101} // namespace Aws
void SetVariables(const Aws::Vector< VariableDefinition > &value)
DetectorStateDefinition & WithVariables(const Aws::Vector< VariableDefinition > &value)
DetectorStateDefinition & AddVariables(VariableDefinition &&value)
DetectorStateDefinition & AddVariables(const VariableDefinition &value)
const Aws::Vector< TimerDefinition > & GetTimers() const
void SetTimers(const Aws::Vector< TimerDefinition > &value)
DetectorStateDefinition & WithStateName(const char *value)
void SetTimers(Aws::Vector< TimerDefinition > &&value)
DetectorStateDefinition & WithStateName(const Aws::String &value)
DetectorStateDefinition & WithTimers(Aws::Vector< TimerDefinition > &&value)
const Aws::Vector< VariableDefinition > & GetVariables() const
DetectorStateDefinition & WithTimers(const Aws::Vector< TimerDefinition > &value)
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTSDATA_API DetectorStateDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectorStateDefinition & WithStateName(Aws::String &&value)
AWS_IOTEVENTSDATA_API DetectorStateDefinition(Aws::Utils::Json::JsonView jsonValue)
DetectorStateDefinition & AddTimers(TimerDefinition &&value)
void SetVariables(Aws::Vector< VariableDefinition > &&value)
DetectorStateDefinition & WithVariables(Aws::Vector< VariableDefinition > &&value)
DetectorStateDefinition & AddTimers(const TimerDefinition &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