AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFullyQualifiedName(const Aws::String& value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName = value; }
52 inline void SetFullyQualifiedName(Aws::String&& value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName = std::move(value); }
53 inline void SetFullyQualifiedName(const char* value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName.assign(value); }
54 inline Sensor& WithFullyQualifiedName(const Aws::String& value) { SetFullyQualifiedName(value); return *this;}
55 inline Sensor& WithFullyQualifiedName(Aws::String&& value) { SetFullyQualifiedName(std::move(value)); return *this;}
56 inline Sensor& WithFullyQualifiedName(const char* value) { SetFullyQualifiedName(value); return *this;}
58
60
63 inline const NodeDataType& GetDataType() const{ return m_dataType; }
64 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
65 inline void SetDataType(const NodeDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
66 inline void SetDataType(NodeDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
67 inline Sensor& WithDataType(const NodeDataType& value) { SetDataType(value); return *this;}
68 inline Sensor& WithDataType(NodeDataType&& value) { SetDataType(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline Sensor& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline Sensor& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline Sensor& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
89 inline const Aws::String& GetUnit() const{ return m_unit; }
90 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
91 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
92 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
93 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
94 inline Sensor& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
95 inline Sensor& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
96 inline Sensor& WithUnit(const char* value) { SetUnit(value); return *this;}
98
100
103 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
104 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
105 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
106 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
107 inline Sensor& WithAllowedValues(const Aws::Vector<Aws::String>& value) { SetAllowedValues(value); return *this;}
108 inline Sensor& WithAllowedValues(Aws::Vector<Aws::String>&& value) { SetAllowedValues(std::move(value)); return *this;}
109 inline Sensor& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
110 inline Sensor& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
111 inline Sensor& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
113
115
118 inline double GetMin() const{ return m_min; }
119 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
120 inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; }
121 inline Sensor& WithMin(double value) { SetMin(value); return *this;}
123
125
128 inline double GetMax() const{ return m_max; }
129 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
130 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
131 inline Sensor& WithMax(double value) { SetMax(value); return *this;}
133
135
139 inline const Aws::String& GetDeprecationMessage() const{ return m_deprecationMessage; }
140 inline bool DeprecationMessageHasBeenSet() const { return m_deprecationMessageHasBeenSet; }
141 inline void SetDeprecationMessage(const Aws::String& value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage = value; }
142 inline void SetDeprecationMessage(Aws::String&& value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage = std::move(value); }
143 inline void SetDeprecationMessage(const char* value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage.assign(value); }
144 inline Sensor& WithDeprecationMessage(const Aws::String& value) { SetDeprecationMessage(value); return *this;}
145 inline Sensor& WithDeprecationMessage(Aws::String&& value) { SetDeprecationMessage(std::move(value)); return *this;}
146 inline Sensor& WithDeprecationMessage(const char* value) { SetDeprecationMessage(value); return *this;}
148
150
153 inline const Aws::String& GetComment() const{ return m_comment; }
154 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
155 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
156 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
157 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
158 inline Sensor& WithComment(const Aws::String& value) { SetComment(value); return *this;}
159 inline Sensor& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
160 inline Sensor& WithComment(const char* value) { SetComment(value); return *this;}
162
164
170 inline const Aws::String& GetStructFullyQualifiedName() const{ return m_structFullyQualifiedName; }
171 inline bool StructFullyQualifiedNameHasBeenSet() const { return m_structFullyQualifiedNameHasBeenSet; }
172 inline void SetStructFullyQualifiedName(const Aws::String& value) { m_structFullyQualifiedNameHasBeenSet = true; m_structFullyQualifiedName = value; }
173 inline void SetStructFullyQualifiedName(Aws::String&& value) { m_structFullyQualifiedNameHasBeenSet = true; m_structFullyQualifiedName = std::move(value); }
174 inline void SetStructFullyQualifiedName(const char* value) { m_structFullyQualifiedNameHasBeenSet = true; m_structFullyQualifiedName.assign(value); }
175 inline Sensor& WithStructFullyQualifiedName(const Aws::String& value) { SetStructFullyQualifiedName(value); return *this;}
176 inline Sensor& WithStructFullyQualifiedName(Aws::String&& value) { SetStructFullyQualifiedName(std::move(value)); return *this;}
177 inline Sensor& WithStructFullyQualifiedName(const char* value) { SetStructFullyQualifiedName(value); return *this;}
179 private:
180
181 Aws::String m_fullyQualifiedName;
182 bool m_fullyQualifiedNameHasBeenSet = false;
183
184 NodeDataType m_dataType;
185 bool m_dataTypeHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 Aws::String m_unit;
191 bool m_unitHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_allowedValues;
194 bool m_allowedValuesHasBeenSet = false;
195
196 double m_min;
197 bool m_minHasBeenSet = false;
198
199 double m_max;
200 bool m_maxHasBeenSet = false;
201
202 Aws::String m_deprecationMessage;
203 bool m_deprecationMessageHasBeenSet = false;
204
205 Aws::String m_comment;
206 bool m_commentHasBeenSet = false;
207
208 Aws::String m_structFullyQualifiedName;
209 bool m_structFullyQualifiedNameHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace IoTFleetWise
214} // namespace Aws
void SetComment(const char *value)
Definition Sensor.h:157
void SetDataType(const NodeDataType &value)
Definition Sensor.h:65
void SetUnit(const char *value)
Definition Sensor.h:93
Sensor & WithComment(Aws::String &&value)
Definition Sensor.h:159
const Aws::String & GetComment() const
Definition Sensor.h:153
Sensor & WithAllowedValues(const Aws::Vector< Aws::String > &value)
Definition Sensor.h:107
const Aws::String & GetDescription() const
Definition Sensor.h:75
void SetUnit(Aws::String &&value)
Definition Sensor.h:92
Sensor & WithDeprecationMessage(const char *value)
Definition Sensor.h:146
Sensor & WithDataType(NodeDataType &&value)
Definition Sensor.h:68
Sensor & WithFullyQualifiedName(const char *value)
Definition Sensor.h:56
AWS_IOTFLEETWISE_API Sensor & operator=(Aws::Utils::Json::JsonView jsonValue)
Sensor & WithAllowedValues(Aws::Vector< Aws::String > &&value)
Definition Sensor.h:108
Sensor & WithUnit(const Aws::String &value)
Definition Sensor.h:94
Sensor & WithDescription(Aws::String &&value)
Definition Sensor.h:81
bool DescriptionHasBeenSet() const
Definition Sensor.h:76
void SetDataType(NodeDataType &&value)
Definition Sensor.h:66
AWS_IOTFLEETWISE_API Sensor()
const Aws::Vector< Aws::String > & GetAllowedValues() const
Definition Sensor.h:103
Sensor & WithMin(double value)
Definition Sensor.h:121
Sensor & WithComment(const Aws::String &value)
Definition Sensor.h:158
void SetStructFullyQualifiedName(const char *value)
Definition Sensor.h:174
Sensor & WithComment(const char *value)
Definition Sensor.h:160
void SetMin(double value)
Definition Sensor.h:120
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
Definition Sensor.h:105
Sensor & AddAllowedValues(const Aws::String &value)
Definition Sensor.h:109
void SetDeprecationMessage(const char *value)
Definition Sensor.h:143
void SetFullyQualifiedName(const Aws::String &value)
Definition Sensor.h:51
const Aws::String & GetDeprecationMessage() const
Definition Sensor.h:139
Sensor & WithUnit(const char *value)
Definition Sensor.h:96
Sensor & WithDescription(const Aws::String &value)
Definition Sensor.h:80
Sensor & WithDeprecationMessage(const Aws::String &value)
Definition Sensor.h:144
Sensor & WithUnit(Aws::String &&value)
Definition Sensor.h:95
void SetAllowedValues(Aws::Vector< Aws::String > &&value)
Definition Sensor.h:106
Sensor & AddAllowedValues(Aws::String &&value)
Definition Sensor.h:110
bool AllowedValuesHasBeenSet() const
Definition Sensor.h:104
void SetFullyQualifiedName(Aws::String &&value)
Definition Sensor.h:52
void SetDescription(const char *value)
Definition Sensor.h:79
const NodeDataType & GetDataType() const
Definition Sensor.h:63
const Aws::String & GetUnit() const
Definition Sensor.h:89
void SetDescription(const Aws::String &value)
Definition Sensor.h:77
Sensor & WithDeprecationMessage(Aws::String &&value)
Definition Sensor.h:145
bool DataTypeHasBeenSet() const
Definition Sensor.h:64
Sensor & WithDataType(const NodeDataType &value)
Definition Sensor.h:67
const Aws::String & GetStructFullyQualifiedName() const
Definition Sensor.h:170
AWS_IOTFLEETWISE_API Sensor(Aws::Utils::Json::JsonView jsonValue)
Sensor & WithDescription(const char *value)
Definition Sensor.h:82
bool DeprecationMessageHasBeenSet() const
Definition Sensor.h:140
Sensor & WithStructFullyQualifiedName(const char *value)
Definition Sensor.h:177
Sensor & WithFullyQualifiedName(const Aws::String &value)
Definition Sensor.h:54
void SetComment(const Aws::String &value)
Definition Sensor.h:155
void SetDeprecationMessage(const Aws::String &value)
Definition Sensor.h:141
void SetDeprecationMessage(Aws::String &&value)
Definition Sensor.h:142
void SetFullyQualifiedName(const char *value)
Definition Sensor.h:53
Sensor & WithFullyQualifiedName(Aws::String &&value)
Definition Sensor.h:55
const Aws::String & GetFullyQualifiedName() const
Definition Sensor.h:49
Sensor & AddAllowedValues(const char *value)
Definition Sensor.h:111
Sensor & WithStructFullyQualifiedName(const Aws::String &value)
Definition Sensor.h:175
bool FullyQualifiedNameHasBeenSet() const
Definition Sensor.h:50
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMax(double value)
Definition Sensor.h:130
void SetStructFullyQualifiedName(const Aws::String &value)
Definition Sensor.h:172
bool StructFullyQualifiedNameHasBeenSet() const
Definition Sensor.h:171
void SetUnit(const Aws::String &value)
Definition Sensor.h:91
Sensor & WithMax(double value)
Definition Sensor.h:131
void SetStructFullyQualifiedName(Aws::String &&value)
Definition Sensor.h:173
void SetComment(Aws::String &&value)
Definition Sensor.h:156
Sensor & WithStructFullyQualifiedName(Aws::String &&value)
Definition Sensor.h:176
void SetDescription(Aws::String &&value)
Definition Sensor.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue