AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Sensor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
10#include <aws/iotfleetwise/model/NodeDataType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTFleetWise {
22namespace Model {
23
31class Sensor {
32 public:
33 AWS_IOTFLEETWISE_API Sensor() = default;
34 AWS_IOTFLEETWISE_API Sensor(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTFLEETWISE_API Sensor& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetFullyQualifiedName() const { return m_fullyQualifiedName; }
44 inline bool FullyQualifiedNameHasBeenSet() const { return m_fullyQualifiedNameHasBeenSet; }
45 template <typename FullyQualifiedNameT = Aws::String>
46 void SetFullyQualifiedName(FullyQualifiedNameT&& value) {
47 m_fullyQualifiedNameHasBeenSet = true;
48 m_fullyQualifiedName = std::forward<FullyQualifiedNameT>(value);
49 }
50 template <typename FullyQualifiedNameT = Aws::String>
51 Sensor& WithFullyQualifiedName(FullyQualifiedNameT&& value) {
52 SetFullyQualifiedName(std::forward<FullyQualifiedNameT>(value));
53 return *this;
54 }
56
58
61 inline NodeDataType GetDataType() const { return m_dataType; }
62 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
63 inline void SetDataType(NodeDataType value) {
64 m_dataTypeHasBeenSet = true;
65 m_dataType = value;
66 }
68 SetDataType(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 Sensor& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetUnit() const { return m_unit; }
96 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
97 template <typename UnitT = Aws::String>
98 void SetUnit(UnitT&& value) {
99 m_unitHasBeenSet = true;
100 m_unit = std::forward<UnitT>(value);
101 }
102 template <typename UnitT = Aws::String>
103 Sensor& WithUnit(UnitT&& value) {
104 SetUnit(std::forward<UnitT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
114 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
115 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
116 void SetAllowedValues(AllowedValuesT&& value) {
117 m_allowedValuesHasBeenSet = true;
118 m_allowedValues = std::forward<AllowedValuesT>(value);
119 }
120 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
121 Sensor& WithAllowedValues(AllowedValuesT&& value) {
122 SetAllowedValues(std::forward<AllowedValuesT>(value));
123 return *this;
124 }
125 template <typename AllowedValuesT = Aws::String>
126 Sensor& AddAllowedValues(AllowedValuesT&& value) {
127 m_allowedValuesHasBeenSet = true;
128 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
129 return *this;
130 }
132
134
137 inline double GetMin() const { return m_min; }
138 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
139 inline void SetMin(double value) {
140 m_minHasBeenSet = true;
141 m_min = value;
142 }
143 inline Sensor& WithMin(double value) {
144 SetMin(value);
145 return *this;
146 }
148
150
153 inline double GetMax() const { return m_max; }
154 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
155 inline void SetMax(double value) {
156 m_maxHasBeenSet = true;
157 m_max = value;
158 }
159 inline Sensor& WithMax(double value) {
160 SetMax(value);
161 return *this;
162 }
164
166
170 inline const Aws::String& GetDeprecationMessage() const { return m_deprecationMessage; }
171 inline bool DeprecationMessageHasBeenSet() const { return m_deprecationMessageHasBeenSet; }
172 template <typename DeprecationMessageT = Aws::String>
173 void SetDeprecationMessage(DeprecationMessageT&& value) {
174 m_deprecationMessageHasBeenSet = true;
175 m_deprecationMessage = std::forward<DeprecationMessageT>(value);
176 }
177 template <typename DeprecationMessageT = Aws::String>
178 Sensor& WithDeprecationMessage(DeprecationMessageT&& value) {
179 SetDeprecationMessage(std::forward<DeprecationMessageT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetComment() const { return m_comment; }
189 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
190 template <typename CommentT = Aws::String>
191 void SetComment(CommentT&& value) {
192 m_commentHasBeenSet = true;
193 m_comment = std::forward<CommentT>(value);
194 }
195 template <typename CommentT = Aws::String>
196 Sensor& WithComment(CommentT&& value) {
197 SetComment(std::forward<CommentT>(value));
198 return *this;
199 }
201
203
209 inline const Aws::String& GetStructFullyQualifiedName() const { return m_structFullyQualifiedName; }
210 inline bool StructFullyQualifiedNameHasBeenSet() const { return m_structFullyQualifiedNameHasBeenSet; }
211 template <typename StructFullyQualifiedNameT = Aws::String>
212 void SetStructFullyQualifiedName(StructFullyQualifiedNameT&& value) {
213 m_structFullyQualifiedNameHasBeenSet = true;
214 m_structFullyQualifiedName = std::forward<StructFullyQualifiedNameT>(value);
215 }
216 template <typename StructFullyQualifiedNameT = Aws::String>
217 Sensor& WithStructFullyQualifiedName(StructFullyQualifiedNameT&& value) {
218 SetStructFullyQualifiedName(std::forward<StructFullyQualifiedNameT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_fullyQualifiedName;
224
226
227 Aws::String m_description;
228
229 Aws::String m_unit;
230
231 Aws::Vector<Aws::String> m_allowedValues;
232
233 double m_min{0.0};
234
235 double m_max{0.0};
236
237 Aws::String m_deprecationMessage;
238
239 Aws::String m_comment;
240
241 Aws::String m_structFullyQualifiedName;
242 bool m_fullyQualifiedNameHasBeenSet = false;
243 bool m_dataTypeHasBeenSet = false;
244 bool m_descriptionHasBeenSet = false;
245 bool m_unitHasBeenSet = false;
246 bool m_allowedValuesHasBeenSet = false;
247 bool m_minHasBeenSet = false;
248 bool m_maxHasBeenSet = false;
249 bool m_deprecationMessageHasBeenSet = false;
250 bool m_commentHasBeenSet = false;
251 bool m_structFullyQualifiedNameHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace IoTFleetWise
256} // namespace Aws
const Aws::String & GetComment() const
Definition Sensor.h:188
const Aws::String & GetDescription() const
Definition Sensor.h:77
NodeDataType GetDataType() const
Definition Sensor.h:61
AWS_IOTFLEETWISE_API Sensor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(UnitT &&value)
Definition Sensor.h:98
bool DescriptionHasBeenSet() const
Definition Sensor.h:78
void SetDataType(NodeDataType value)
Definition Sensor.h:63
const Aws::Vector< Aws::String > & GetAllowedValues() const
Definition Sensor.h:113
Sensor & WithMin(double value)
Definition Sensor.h:143
void SetMin(double value)
Definition Sensor.h:139
const Aws::String & GetDeprecationMessage() const
Definition Sensor.h:170
void SetDeprecationMessage(DeprecationMessageT &&value)
Definition Sensor.h:173
void SetDescription(DescriptionT &&value)
Definition Sensor.h:80
void SetFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Sensor.h:46
Sensor & WithUnit(UnitT &&value)
Definition Sensor.h:103
AWS_IOTFLEETWISE_API Sensor()=default
bool AllowedValuesHasBeenSet() const
Definition Sensor.h:114
const Aws::String & GetUnit() const
Definition Sensor.h:95
bool DataTypeHasBeenSet() const
Definition Sensor.h:62
const Aws::String & GetStructFullyQualifiedName() const
Definition Sensor.h:209
Sensor & WithDataType(NodeDataType value)
Definition Sensor.h:67
AWS_IOTFLEETWISE_API Sensor(Aws::Utils::Json::JsonView jsonValue)
void SetStructFullyQualifiedName(StructFullyQualifiedNameT &&value)
Definition Sensor.h:212
bool DeprecationMessageHasBeenSet() const
Definition Sensor.h:171
Sensor & WithDeprecationMessage(DeprecationMessageT &&value)
Definition Sensor.h:178
void SetAllowedValues(AllowedValuesT &&value)
Definition Sensor.h:116
Sensor & WithDescription(DescriptionT &&value)
Definition Sensor.h:85
Sensor & AddAllowedValues(AllowedValuesT &&value)
Definition Sensor.h:126
const Aws::String & GetFullyQualifiedName() const
Definition Sensor.h:43
void SetComment(CommentT &&value)
Definition Sensor.h:191
bool FullyQualifiedNameHasBeenSet() const
Definition Sensor.h:44
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMax(double value)
Definition Sensor.h:155
bool StructFullyQualifiedNameHasBeenSet() const
Definition Sensor.h:210
Sensor & WithStructFullyQualifiedName(StructFullyQualifiedNameT &&value)
Definition Sensor.h:217
Sensor & WithMax(double value)
Definition Sensor.h:159
Sensor & WithFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Sensor.h:51
Sensor & WithAllowedValues(AllowedValuesT &&value)
Definition Sensor.h:121
Sensor & WithComment(CommentT &&value)
Definition Sensor.h:196
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue