AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Sensor.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotfleetwise/model/NodeDataType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTFleetWise
24{
25namespace Model
26{
27
35 class Sensor
36 {
37 public:
38 AWS_IOTFLEETWISE_API Sensor() = default;
39 AWS_IOTFLEETWISE_API Sensor(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTFLEETWISE_API Sensor& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetFullyQualifiedName() const { return m_fullyQualifiedName; }
50 inline bool FullyQualifiedNameHasBeenSet() const { return m_fullyQualifiedNameHasBeenSet; }
51 template<typename FullyQualifiedNameT = Aws::String>
52 void SetFullyQualifiedName(FullyQualifiedNameT&& value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName = std::forward<FullyQualifiedNameT>(value); }
53 template<typename FullyQualifiedNameT = Aws::String>
54 Sensor& WithFullyQualifiedName(FullyQualifiedNameT&& value) { SetFullyQualifiedName(std::forward<FullyQualifiedNameT>(value)); return *this;}
56
58
61 inline NodeDataType GetDataType() const { return m_dataType; }
62 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
63 inline void SetDataType(NodeDataType value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
64 inline Sensor& WithDataType(NodeDataType value) { SetDataType(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 Sensor& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetUnit() const { return m_unit; }
84 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
85 template<typename UnitT = Aws::String>
86 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
87 template<typename UnitT = Aws::String>
88 Sensor& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
90
92
95 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
96 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
97 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
98 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
99 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
100 Sensor& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
101 template<typename AllowedValuesT = Aws::String>
102 Sensor& AddAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value)); return *this; }
104
106
109 inline double GetMin() const { return m_min; }
110 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
111 inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; }
112 inline Sensor& WithMin(double value) { SetMin(value); return *this;}
114
116
119 inline double GetMax() const { return m_max; }
120 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
121 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
122 inline Sensor& WithMax(double value) { SetMax(value); return *this;}
124
126
130 inline const Aws::String& GetDeprecationMessage() const { return m_deprecationMessage; }
131 inline bool DeprecationMessageHasBeenSet() const { return m_deprecationMessageHasBeenSet; }
132 template<typename DeprecationMessageT = Aws::String>
133 void SetDeprecationMessage(DeprecationMessageT&& value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage = std::forward<DeprecationMessageT>(value); }
134 template<typename DeprecationMessageT = Aws::String>
135 Sensor& WithDeprecationMessage(DeprecationMessageT&& value) { SetDeprecationMessage(std::forward<DeprecationMessageT>(value)); return *this;}
137
139
142 inline const Aws::String& GetComment() const { return m_comment; }
143 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
144 template<typename CommentT = Aws::String>
145 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
146 template<typename CommentT = Aws::String>
147 Sensor& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
149
151
157 inline const Aws::String& GetStructFullyQualifiedName() const { return m_structFullyQualifiedName; }
158 inline bool StructFullyQualifiedNameHasBeenSet() const { return m_structFullyQualifiedNameHasBeenSet; }
159 template<typename StructFullyQualifiedNameT = Aws::String>
160 void SetStructFullyQualifiedName(StructFullyQualifiedNameT&& value) { m_structFullyQualifiedNameHasBeenSet = true; m_structFullyQualifiedName = std::forward<StructFullyQualifiedNameT>(value); }
161 template<typename StructFullyQualifiedNameT = Aws::String>
162 Sensor& WithStructFullyQualifiedName(StructFullyQualifiedNameT&& value) { SetStructFullyQualifiedName(std::forward<StructFullyQualifiedNameT>(value)); return *this;}
164 private:
165
166 Aws::String m_fullyQualifiedName;
167 bool m_fullyQualifiedNameHasBeenSet = false;
168
170 bool m_dataTypeHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 Aws::String m_unit;
176 bool m_unitHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_allowedValues;
179 bool m_allowedValuesHasBeenSet = false;
180
181 double m_min{0.0};
182 bool m_minHasBeenSet = false;
183
184 double m_max{0.0};
185 bool m_maxHasBeenSet = false;
186
187 Aws::String m_deprecationMessage;
188 bool m_deprecationMessageHasBeenSet = false;
189
190 Aws::String m_comment;
191 bool m_commentHasBeenSet = false;
192
193 Aws::String m_structFullyQualifiedName;
194 bool m_structFullyQualifiedNameHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace IoTFleetWise
199} // namespace Aws
const Aws::String & GetComment() const
Definition Sensor.h:142
const Aws::String & GetDescription() const
Definition Sensor.h:71
NodeDataType GetDataType() const
Definition Sensor.h:61
AWS_IOTFLEETWISE_API Sensor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(UnitT &&value)
Definition Sensor.h:86
bool DescriptionHasBeenSet() const
Definition Sensor.h:72
void SetDataType(NodeDataType value)
Definition Sensor.h:63
const Aws::Vector< Aws::String > & GetAllowedValues() const
Definition Sensor.h:95
Sensor & WithMin(double value)
Definition Sensor.h:112
void SetMin(double value)
Definition Sensor.h:111
const Aws::String & GetDeprecationMessage() const
Definition Sensor.h:130
void SetDeprecationMessage(DeprecationMessageT &&value)
Definition Sensor.h:133
void SetDescription(DescriptionT &&value)
Definition Sensor.h:74
void SetFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Sensor.h:52
Sensor & WithUnit(UnitT &&value)
Definition Sensor.h:88
AWS_IOTFLEETWISE_API Sensor()=default
bool AllowedValuesHasBeenSet() const
Definition Sensor.h:96
const Aws::String & GetUnit() const
Definition Sensor.h:83
bool DataTypeHasBeenSet() const
Definition Sensor.h:62
const Aws::String & GetStructFullyQualifiedName() const
Definition Sensor.h:157
Sensor & WithDataType(NodeDataType value)
Definition Sensor.h:64
AWS_IOTFLEETWISE_API Sensor(Aws::Utils::Json::JsonView jsonValue)
void SetStructFullyQualifiedName(StructFullyQualifiedNameT &&value)
Definition Sensor.h:160
bool DeprecationMessageHasBeenSet() const
Definition Sensor.h:131
Sensor & WithDeprecationMessage(DeprecationMessageT &&value)
Definition Sensor.h:135
void SetAllowedValues(AllowedValuesT &&value)
Definition Sensor.h:98
Sensor & WithDescription(DescriptionT &&value)
Definition Sensor.h:76
Sensor & AddAllowedValues(AllowedValuesT &&value)
Definition Sensor.h:102
const Aws::String & GetFullyQualifiedName() const
Definition Sensor.h:49
void SetComment(CommentT &&value)
Definition Sensor.h:145
bool FullyQualifiedNameHasBeenSet() const
Definition Sensor.h:50
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMax(double value)
Definition Sensor.h:121
bool StructFullyQualifiedNameHasBeenSet() const
Definition Sensor.h:158
Sensor & WithStructFullyQualifiedName(StructFullyQualifiedNameT &&value)
Definition Sensor.h:162
Sensor & WithMax(double value)
Definition Sensor.h:122
Sensor & WithFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Sensor.h:54
Sensor & WithAllowedValues(AllowedValuesT &&value)
Definition Sensor.h:100
Sensor & WithComment(CommentT &&value)
Definition Sensor.h:147
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue