AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Attribute.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
30class Attribute {
31 public:
32 AWS_IOTFLEETWISE_API Attribute() = default;
33 AWS_IOTFLEETWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTFLEETWISE_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetFullyQualifiedName() const { return m_fullyQualifiedName; }
43 inline bool FullyQualifiedNameHasBeenSet() const { return m_fullyQualifiedNameHasBeenSet; }
44 template <typename FullyQualifiedNameT = Aws::String>
45 void SetFullyQualifiedName(FullyQualifiedNameT&& value) {
46 m_fullyQualifiedNameHasBeenSet = true;
47 m_fullyQualifiedName = std::forward<FullyQualifiedNameT>(value);
48 }
49 template <typename FullyQualifiedNameT = Aws::String>
50 Attribute& WithFullyQualifiedName(FullyQualifiedNameT&& value) {
51 SetFullyQualifiedName(std::forward<FullyQualifiedNameT>(value));
52 return *this;
53 }
55
57
60 inline NodeDataType GetDataType() const { return m_dataType; }
61 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
62 inline void SetDataType(NodeDataType value) {
63 m_dataTypeHasBeenSet = true;
64 m_dataType = value;
65 }
67 SetDataType(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 Attribute& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetUnit() const { return m_unit; }
95 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
96 template <typename UnitT = Aws::String>
97 void SetUnit(UnitT&& value) {
98 m_unitHasBeenSet = true;
99 m_unit = std::forward<UnitT>(value);
100 }
101 template <typename UnitT = Aws::String>
102 Attribute& WithUnit(UnitT&& value) {
103 SetUnit(std::forward<UnitT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
113 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
114 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
115 void SetAllowedValues(AllowedValuesT&& value) {
116 m_allowedValuesHasBeenSet = true;
117 m_allowedValues = std::forward<AllowedValuesT>(value);
118 }
119 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
120 Attribute& WithAllowedValues(AllowedValuesT&& value) {
121 SetAllowedValues(std::forward<AllowedValuesT>(value));
122 return *this;
123 }
124 template <typename AllowedValuesT = Aws::String>
125 Attribute& AddAllowedValues(AllowedValuesT&& value) {
126 m_allowedValuesHasBeenSet = true;
127 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
128 return *this;
129 }
131
133
136 inline double GetMin() const { return m_min; }
137 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
138 inline void SetMin(double value) {
139 m_minHasBeenSet = true;
140 m_min = value;
141 }
142 inline Attribute& WithMin(double value) {
143 SetMin(value);
144 return *this;
145 }
147
149
152 inline double GetMax() const { return m_max; }
153 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
154 inline void SetMax(double value) {
155 m_maxHasBeenSet = true;
156 m_max = value;
157 }
158 inline Attribute& WithMax(double value) {
159 SetMax(value);
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
169 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
170 template <typename DefaultValueT = Aws::String>
171 void SetDefaultValue(DefaultValueT&& value) {
172 m_defaultValueHasBeenSet = true;
173 m_defaultValue = std::forward<DefaultValueT>(value);
174 }
175 template <typename DefaultValueT = Aws::String>
176 Attribute& WithDefaultValue(DefaultValueT&& value) {
177 SetDefaultValue(std::forward<DefaultValueT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::String& GetDeprecationMessage() const { return m_deprecationMessage; }
188 inline bool DeprecationMessageHasBeenSet() const { return m_deprecationMessageHasBeenSet; }
189 template <typename DeprecationMessageT = Aws::String>
190 void SetDeprecationMessage(DeprecationMessageT&& value) {
191 m_deprecationMessageHasBeenSet = true;
192 m_deprecationMessage = std::forward<DeprecationMessageT>(value);
193 }
194 template <typename DeprecationMessageT = Aws::String>
195 Attribute& WithDeprecationMessage(DeprecationMessageT&& value) {
196 SetDeprecationMessage(std::forward<DeprecationMessageT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetComment() const { return m_comment; }
206 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
207 template <typename CommentT = Aws::String>
208 void SetComment(CommentT&& value) {
209 m_commentHasBeenSet = true;
210 m_comment = std::forward<CommentT>(value);
211 }
212 template <typename CommentT = Aws::String>
213 Attribute& WithComment(CommentT&& value) {
214 SetComment(std::forward<CommentT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_fullyQualifiedName;
220
222
223 Aws::String m_description;
224
225 Aws::String m_unit;
226
227 Aws::Vector<Aws::String> m_allowedValues;
228
229 double m_min{0.0};
230
231 double m_max{0.0};
232
233 Aws::String m_defaultValue;
234
235 Aws::String m_deprecationMessage;
236
237 Aws::String m_comment;
238 bool m_fullyQualifiedNameHasBeenSet = false;
239 bool m_dataTypeHasBeenSet = false;
240 bool m_descriptionHasBeenSet = false;
241 bool m_unitHasBeenSet = false;
242 bool m_allowedValuesHasBeenSet = false;
243 bool m_minHasBeenSet = false;
244 bool m_maxHasBeenSet = false;
245 bool m_defaultValueHasBeenSet = false;
246 bool m_deprecationMessageHasBeenSet = false;
247 bool m_commentHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace IoTFleetWise
252} // namespace Aws
void SetComment(CommentT &&value)
Definition Attribute.h:208
const Aws::String & GetDefaultValue() const
Definition Attribute.h:168
AWS_IOTFLEETWISE_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition Attribute.h:94
const Aws::String & GetComment() const
Definition Attribute.h:205
void SetDefaultValue(DefaultValueT &&value)
Definition Attribute.h:171
void SetDataType(NodeDataType value)
Definition Attribute.h:62
void SetDeprecationMessage(DeprecationMessageT &&value)
Definition Attribute.h:190
Attribute & AddAllowedValues(AllowedValuesT &&value)
Definition Attribute.h:125
const Aws::String & GetDescription() const
Definition Attribute.h:76
NodeDataType GetDataType() const
Definition Attribute.h:60
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Attribute & WithAllowedValues(AllowedValuesT &&value)
Definition Attribute.h:120
const Aws::String & GetDeprecationMessage() const
Definition Attribute.h:187
Attribute & WithUnit(UnitT &&value)
Definition Attribute.h:102
AWS_IOTFLEETWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithMin(double value)
Definition Attribute.h:142
void SetDescription(DescriptionT &&value)
Definition Attribute.h:79
const Aws::String & GetFullyQualifiedName() const
Definition Attribute.h:42
Attribute & WithDataType(NodeDataType value)
Definition Attribute.h:66
void SetAllowedValues(AllowedValuesT &&value)
Definition Attribute.h:115
Attribute & WithDefaultValue(DefaultValueT &&value)
Definition Attribute.h:176
Attribute & WithComment(CommentT &&value)
Definition Attribute.h:213
const Aws::Vector< Aws::String > & GetAllowedValues() const
Definition Attribute.h:112
Attribute & WithMax(double value)
Definition Attribute.h:158
Attribute & WithDescription(DescriptionT &&value)
Definition Attribute.h:84
AWS_IOTFLEETWISE_API Attribute()=default
void SetFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Attribute.h:45
Attribute & WithDeprecationMessage(DeprecationMessageT &&value)
Definition Attribute.h:195
Attribute & WithFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Attribute.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue