AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFullyQualifiedName(const Aws::String& value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName = value; }
51 inline void SetFullyQualifiedName(Aws::String&& value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName = std::move(value); }
52 inline void SetFullyQualifiedName(const char* value) { m_fullyQualifiedNameHasBeenSet = true; m_fullyQualifiedName.assign(value); }
53 inline Attribute& WithFullyQualifiedName(const Aws::String& value) { SetFullyQualifiedName(value); return *this;}
54 inline Attribute& WithFullyQualifiedName(Aws::String&& value) { SetFullyQualifiedName(std::move(value)); return *this;}
55 inline Attribute& WithFullyQualifiedName(const char* value) { SetFullyQualifiedName(value); return *this;}
57
59
62 inline const NodeDataType& GetDataType() const{ return m_dataType; }
63 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
64 inline void SetDataType(const NodeDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
65 inline void SetDataType(NodeDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
66 inline Attribute& WithDataType(const NodeDataType& value) { SetDataType(value); return *this;}
67 inline Attribute& WithDataType(NodeDataType&& value) { SetDataType(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline Attribute& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline Attribute& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline Attribute& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
88 inline const Aws::String& GetUnit() const{ return m_unit; }
89 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
90 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
91 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
92 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
93 inline Attribute& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
94 inline Attribute& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
95 inline Attribute& WithUnit(const char* value) { SetUnit(value); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
103 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
104 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
105 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
106 inline Attribute& WithAllowedValues(const Aws::Vector<Aws::String>& value) { SetAllowedValues(value); return *this;}
107 inline Attribute& WithAllowedValues(Aws::Vector<Aws::String>&& value) { SetAllowedValues(std::move(value)); return *this;}
108 inline Attribute& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
109 inline Attribute& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
110 inline Attribute& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
112
114
117 inline double GetMin() const{ return m_min; }
118 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
119 inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; }
120 inline Attribute& WithMin(double value) { SetMin(value); return *this;}
122
124
127 inline double GetMax() const{ return m_max; }
128 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
129 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
130 inline Attribute& WithMax(double value) { SetMax(value); return *this;}
132
134
137 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
138 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
139 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
140 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
141 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
142 inline Attribute& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
143 inline Attribute& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
144 inline Attribute& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
146
148
152 inline const Aws::String& GetDeprecationMessage() const{ return m_deprecationMessage; }
153 inline bool DeprecationMessageHasBeenSet() const { return m_deprecationMessageHasBeenSet; }
154 inline void SetDeprecationMessage(const Aws::String& value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage = value; }
155 inline void SetDeprecationMessage(Aws::String&& value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage = std::move(value); }
156 inline void SetDeprecationMessage(const char* value) { m_deprecationMessageHasBeenSet = true; m_deprecationMessage.assign(value); }
157 inline Attribute& WithDeprecationMessage(const Aws::String& value) { SetDeprecationMessage(value); return *this;}
158 inline Attribute& WithDeprecationMessage(Aws::String&& value) { SetDeprecationMessage(std::move(value)); return *this;}
159 inline Attribute& WithDeprecationMessage(const char* value) { SetDeprecationMessage(value); return *this;}
161
163
166 inline const Aws::String& GetComment() const{ return m_comment; }
167 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
168 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
169 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
170 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
171 inline Attribute& WithComment(const Aws::String& value) { SetComment(value); return *this;}
172 inline Attribute& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
173 inline Attribute& WithComment(const char* value) { SetComment(value); return *this;}
175 private:
176
177 Aws::String m_fullyQualifiedName;
178 bool m_fullyQualifiedNameHasBeenSet = false;
179
180 NodeDataType m_dataType;
181 bool m_dataTypeHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 Aws::String m_unit;
187 bool m_unitHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_allowedValues;
190 bool m_allowedValuesHasBeenSet = false;
191
192 double m_min;
193 bool m_minHasBeenSet = false;
194
195 double m_max;
196 bool m_maxHasBeenSet = false;
197
198 Aws::String m_defaultValue;
199 bool m_defaultValueHasBeenSet = false;
200
201 Aws::String m_deprecationMessage;
202 bool m_deprecationMessageHasBeenSet = false;
203
204 Aws::String m_comment;
205 bool m_commentHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace IoTFleetWise
210} // namespace Aws
Attribute & WithUnit(const char *value)
Definition Attribute.h:95
Attribute & WithComment(Aws::String &&value)
Definition Attribute.h:172
const Aws::String & GetDefaultValue() const
Definition Attribute.h:137
AWS_IOTFLEETWISE_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition Attribute.h:88
const Aws::String & GetComment() const
Definition Attribute.h:166
void SetFullyQualifiedName(const char *value)
Definition Attribute.h:52
Attribute & WithDeprecationMessage(const Aws::String &value)
Definition Attribute.h:157
void SetDefaultValue(const char *value)
Definition Attribute.h:141
void SetFullyQualifiedName(const Aws::String &value)
Definition Attribute.h:50
void SetAllowedValues(Aws::Vector< Aws::String > &&value)
Definition Attribute.h:105
const Aws::String & GetDescription() const
Definition Attribute.h:74
Attribute & WithUnit(const Aws::String &value)
Definition Attribute.h:93
Attribute & WithAllowedValues(const Aws::Vector< Aws::String > &value)
Definition Attribute.h:106
void SetDataType(const NodeDataType &value)
Definition Attribute.h:64
Attribute & AddAllowedValues(Aws::String &&value)
Definition Attribute.h:109
Attribute & WithDataType(const NodeDataType &value)
Definition Attribute.h:66
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComment(Aws::String &&value)
Definition Attribute.h:169
AWS_IOTFLEETWISE_API Attribute()
void SetUnit(Aws::String &&value)
Definition Attribute.h:91
void SetDeprecationMessage(const Aws::String &value)
Definition Attribute.h:154
void SetComment(const char *value)
Definition Attribute.h:170
Attribute & WithFullyQualifiedName(const char *value)
Definition Attribute.h:55
const Aws::String & GetDeprecationMessage() const
Definition Attribute.h:152
void SetUnit(const Aws::String &value)
Definition Attribute.h:90
Attribute & WithFullyQualifiedName(const Aws::String &value)
Definition Attribute.h:53
Attribute & WithDescription(const char *value)
Definition Attribute.h:81
void SetDeprecationMessage(const char *value)
Definition Attribute.h:156
void SetDataType(NodeDataType &&value)
Definition Attribute.h:65
void SetComment(const Aws::String &value)
Definition Attribute.h:168
AWS_IOTFLEETWISE_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithMin(double value)
Definition Attribute.h:120
Attribute & WithFullyQualifiedName(Aws::String &&value)
Definition Attribute.h:54
void SetDefaultValue(Aws::String &&value)
Definition Attribute.h:140
Attribute & WithComment(const char *value)
Definition Attribute.h:173
Attribute & WithDataType(NodeDataType &&value)
Definition Attribute.h:67
void SetDescription(const Aws::String &value)
Definition Attribute.h:76
const NodeDataType & GetDataType() const
Definition Attribute.h:62
const Aws::String & GetFullyQualifiedName() const
Definition Attribute.h:48
Attribute & WithUnit(Aws::String &&value)
Definition Attribute.h:94
Attribute & WithDefaultValue(Aws::String &&value)
Definition Attribute.h:143
Attribute & WithAllowedValues(Aws::Vector< Aws::String > &&value)
Definition Attribute.h:107
void SetUnit(const char *value)
Definition Attribute.h:92
void SetFullyQualifiedName(Aws::String &&value)
Definition Attribute.h:51
Attribute & WithDeprecationMessage(const char *value)
Definition Attribute.h:159
Attribute & WithDefaultValue(const char *value)
Definition Attribute.h:144
const Aws::Vector< Aws::String > & GetAllowedValues() const
Definition Attribute.h:102
Attribute & WithMax(double value)
Definition Attribute.h:130
void SetDescription(Aws::String &&value)
Definition Attribute.h:77
void SetDescription(const char *value)
Definition Attribute.h:78
void SetDeprecationMessage(Aws::String &&value)
Definition Attribute.h:155
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
Definition Attribute.h:104
Attribute & WithComment(const Aws::String &value)
Definition Attribute.h:171
Attribute & WithDescription(Aws::String &&value)
Definition Attribute.h:80
Attribute & AddAllowedValues(const Aws::String &value)
Definition Attribute.h:108
Attribute & WithDefaultValue(const Aws::String &value)
Definition Attribute.h:142
Attribute & AddAllowedValues(const char *value)
Definition Attribute.h:110
void SetDefaultValue(const Aws::String &value)
Definition Attribute.h:139
Attribute & WithDescription(const Aws::String &value)
Definition Attribute.h:79
Attribute & WithDeprecationMessage(Aws::String &&value)
Definition Attribute.h:158
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue