AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attribute.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 {
36 public:
37 AWS_IOTFLEETWISE_API Attribute() = default;
38 AWS_IOTFLEETWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTFLEETWISE_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetFullyQualifiedName() const { return m_fullyQualifiedName; }
49 inline bool FullyQualifiedNameHasBeenSet() const { return m_fullyQualifiedNameHasBeenSet; }
50 template<typename FullyQualifiedNameT = Aws::String>
51 void SetFullyQualifiedName(FullyQualifiedNameT&& value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName = std::forward<FullyQualifiedNameT>(value); }
52 template<typename FullyQualifiedNameT = Aws::String>
53 Attribute& WithFullyQualifiedName(FullyQualifiedNameT&& value) { SetFullyQualifiedName(std::forward<FullyQualifiedNameT>(value)); return *this;}
55
57
60 inline NodeDataType GetDataType() const { return m_dataType; }
61 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
62 inline void SetDataType(NodeDataType value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
63 inline Attribute& WithDataType(NodeDataType value) { SetDataType(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 Attribute& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetUnit() const { return m_unit; }
83 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
84 template<typename UnitT = Aws::String>
85 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
86 template<typename UnitT = Aws::String>
87 Attribute& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
89
91
94 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
95 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
96 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
97 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
98 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
99 Attribute& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
100 template<typename AllowedValuesT = Aws::String>
101 Attribute& AddAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value)); return *this; }
103
105
108 inline double GetMin() const { return m_min; }
109 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
110 inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; }
111 inline Attribute& WithMin(double value) { SetMin(value); return *this;}
113
115
118 inline double GetMax() const { return m_max; }
119 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
120 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
121 inline Attribute& WithMax(double value) { SetMax(value); return *this;}
123
125
128 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
129 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
130 template<typename DefaultValueT = Aws::String>
131 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
132 template<typename DefaultValueT = Aws::String>
133 Attribute& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
135
137
141 inline const Aws::String& GetDeprecationMessage() const { return m_deprecationMessage; }
142 inline bool DeprecationMessageHasBeenSet() const { return m_deprecationMessageHasBeenSet; }
143 template<typename DeprecationMessageT = Aws::String>
144 void SetDeprecationMessage(DeprecationMessageT&& value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage = std::forward<DeprecationMessageT>(value); }
145 template<typename DeprecationMessageT = Aws::String>
146 Attribute& WithDeprecationMessage(DeprecationMessageT&& value) { SetDeprecationMessage(std::forward<DeprecationMessageT>(value)); return *this;}
148
150
153 inline const Aws::String& GetComment() const { return m_comment; }
154 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
155 template<typename CommentT = Aws::String>
156 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
157 template<typename CommentT = Aws::String>
158 Attribute& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
160 private:
161
162 Aws::String m_fullyQualifiedName;
163 bool m_fullyQualifiedNameHasBeenSet = false;
164
166 bool m_dataTypeHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_unit;
172 bool m_unitHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_allowedValues;
175 bool m_allowedValuesHasBeenSet = false;
176
177 double m_min{0.0};
178 bool m_minHasBeenSet = false;
179
180 double m_max{0.0};
181 bool m_maxHasBeenSet = false;
182
183 Aws::String m_defaultValue;
184 bool m_defaultValueHasBeenSet = false;
185
186 Aws::String m_deprecationMessage;
187 bool m_deprecationMessageHasBeenSet = false;
188
189 Aws::String m_comment;
190 bool m_commentHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace IoTFleetWise
195} // namespace Aws
void SetComment(CommentT &&value)
Definition Attribute.h:156
const Aws::String & GetDefaultValue() const
Definition Attribute.h:128
AWS_IOTFLEETWISE_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition Attribute.h:82
const Aws::String & GetComment() const
Definition Attribute.h:153
void SetDefaultValue(DefaultValueT &&value)
Definition Attribute.h:131
void SetDataType(NodeDataType value)
Definition Attribute.h:62
void SetDeprecationMessage(DeprecationMessageT &&value)
Definition Attribute.h:144
Attribute & AddAllowedValues(AllowedValuesT &&value)
Definition Attribute.h:101
const Aws::String & GetDescription() const
Definition Attribute.h:70
NodeDataType GetDataType() const
Definition Attribute.h:60
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Attribute & WithAllowedValues(AllowedValuesT &&value)
Definition Attribute.h:99
const Aws::String & GetDeprecationMessage() const
Definition Attribute.h:141
Attribute & WithUnit(UnitT &&value)
Definition Attribute.h:87
AWS_IOTFLEETWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithMin(double value)
Definition Attribute.h:111
void SetDescription(DescriptionT &&value)
Definition Attribute.h:73
const Aws::String & GetFullyQualifiedName() const
Definition Attribute.h:48
Attribute & WithDataType(NodeDataType value)
Definition Attribute.h:63
void SetAllowedValues(AllowedValuesT &&value)
Definition Attribute.h:97
Attribute & WithDefaultValue(DefaultValueT &&value)
Definition Attribute.h:133
Attribute & WithComment(CommentT &&value)
Definition Attribute.h:158
const Aws::Vector< Aws::String > & GetAllowedValues() const
Definition Attribute.h:94
Attribute & WithMax(double value)
Definition Attribute.h:121
Attribute & WithDescription(DescriptionT &&value)
Definition Attribute.h:75
AWS_IOTFLEETWISE_API Attribute()=default
void SetFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Attribute.h:51
Attribute & WithDeprecationMessage(DeprecationMessageT &&value)
Definition Attribute.h:146
Attribute & WithFullyQualifiedName(FullyQualifiedNameT &&value)
Definition Attribute.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue