AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyDefinitionResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/DataType.h>
11#include <aws/iottwinmaker/model/DataValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker {
23namespace Model {
24
32 public:
33 AWS_IOTTWINMAKER_API PropertyDefinitionResponse() = default;
36 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const DataType& GetDataType() const { return m_dataType; }
43 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
44 template <typename DataTypeT = DataType>
45 void SetDataType(DataTypeT&& value) {
46 m_dataTypeHasBeenSet = true;
47 m_dataType = std::forward<DataTypeT>(value);
48 }
49 template <typename DataTypeT = DataType>
51 SetDataType(std::forward<DataTypeT>(value));
52 return *this;
53 }
55
57
61 inline bool GetIsTimeSeries() const { return m_isTimeSeries; }
62 inline bool IsTimeSeriesHasBeenSet() const { return m_isTimeSeriesHasBeenSet; }
63 inline void SetIsTimeSeries(bool value) {
64 m_isTimeSeriesHasBeenSet = true;
65 m_isTimeSeries = value;
66 }
68 SetIsTimeSeries(value);
69 return *this;
70 }
72
74
78 inline bool GetIsRequiredInEntity() const { return m_isRequiredInEntity; }
79 inline bool IsRequiredInEntityHasBeenSet() const { return m_isRequiredInEntityHasBeenSet; }
80 inline void SetIsRequiredInEntity(bool value) {
81 m_isRequiredInEntityHasBeenSet = true;
82 m_isRequiredInEntity = value;
83 }
86 return *this;
87 }
89
91
95 inline bool GetIsExternalId() const { return m_isExternalId; }
96 inline bool IsExternalIdHasBeenSet() const { return m_isExternalIdHasBeenSet; }
97 inline void SetIsExternalId(bool value) {
98 m_isExternalIdHasBeenSet = true;
99 m_isExternalId = value;
100 }
102 SetIsExternalId(value);
103 return *this;
104 }
106
108
111 inline bool GetIsStoredExternally() const { return m_isStoredExternally; }
112 inline bool IsStoredExternallyHasBeenSet() const { return m_isStoredExternallyHasBeenSet; }
113 inline void SetIsStoredExternally(bool value) {
114 m_isStoredExternallyHasBeenSet = true;
115 m_isStoredExternally = value;
116 }
119 return *this;
120 }
122
124
128 inline bool GetIsImported() const { return m_isImported; }
129 inline bool IsImportedHasBeenSet() const { return m_isImportedHasBeenSet; }
130 inline void SetIsImported(bool value) {
131 m_isImportedHasBeenSet = true;
132 m_isImported = value;
133 }
135 SetIsImported(value);
136 return *this;
137 }
139
141
145 inline bool GetIsFinal() const { return m_isFinal; }
146 inline bool IsFinalHasBeenSet() const { return m_isFinalHasBeenSet; }
147 inline void SetIsFinal(bool value) {
148 m_isFinalHasBeenSet = true;
149 m_isFinal = value;
150 }
152 SetIsFinal(value);
153 return *this;
154 }
156
158
162 inline bool GetIsInherited() const { return m_isInherited; }
163 inline bool IsInheritedHasBeenSet() const { return m_isInheritedHasBeenSet; }
164 inline void SetIsInherited(bool value) {
165 m_isInheritedHasBeenSet = true;
166 m_isInherited = value;
167 }
169 SetIsInherited(value);
170 return *this;
171 }
173
175
178 inline const DataValue& GetDefaultValue() const { return m_defaultValue; }
179 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
180 template <typename DefaultValueT = DataValue>
181 void SetDefaultValue(DefaultValueT&& value) {
182 m_defaultValueHasBeenSet = true;
183 m_defaultValue = std::forward<DefaultValueT>(value);
184 }
185 template <typename DefaultValueT = DataValue>
187 SetDefaultValue(std::forward<DefaultValueT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
197 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
198 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
199 void SetConfiguration(ConfigurationT&& value) {
200 m_configurationHasBeenSet = true;
201 m_configuration = std::forward<ConfigurationT>(value);
202 }
203 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
205 SetConfiguration(std::forward<ConfigurationT>(value));
206 return *this;
207 }
208 template <typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
209 PropertyDefinitionResponse& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
210 m_configurationHasBeenSet = true;
211 m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetDisplayName() const { return m_displayName; }
221 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
222 template <typename DisplayNameT = Aws::String>
223 void SetDisplayName(DisplayNameT&& value) {
224 m_displayNameHasBeenSet = true;
225 m_displayName = std::forward<DisplayNameT>(value);
226 }
227 template <typename DisplayNameT = Aws::String>
229 SetDisplayName(std::forward<DisplayNameT>(value));
230 return *this;
231 }
233 private:
234 DataType m_dataType;
235
236 bool m_isTimeSeries{false};
237
238 bool m_isRequiredInEntity{false};
239
240 bool m_isExternalId{false};
241
242 bool m_isStoredExternally{false};
243
244 bool m_isImported{false};
245
246 bool m_isFinal{false};
247
248 bool m_isInherited{false};
249
250 DataValue m_defaultValue;
251
253
254 Aws::String m_displayName;
255 bool m_dataTypeHasBeenSet = false;
256 bool m_isTimeSeriesHasBeenSet = false;
257 bool m_isRequiredInEntityHasBeenSet = false;
258 bool m_isExternalIdHasBeenSet = false;
259 bool m_isStoredExternallyHasBeenSet = false;
260 bool m_isImportedHasBeenSet = false;
261 bool m_isFinalHasBeenSet = false;
262 bool m_isInheritedHasBeenSet = false;
263 bool m_defaultValueHasBeenSet = false;
264 bool m_configurationHasBeenSet = false;
265 bool m_displayNameHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace IoTTwinMaker
270} // namespace Aws
PropertyDefinitionResponse & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
PropertyDefinitionResponse & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
PropertyDefinitionResponse & WithIsTimeSeries(bool value)
AWS_IOTTWINMAKER_API PropertyDefinitionResponse()=default
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTTWINMAKER_API PropertyDefinitionResponse(Aws::Utils::Json::JsonView jsonValue)
PropertyDefinitionResponse & WithConfiguration(ConfigurationT &&value)
PropertyDefinitionResponse & WithDefaultValue(DefaultValueT &&value)
PropertyDefinitionResponse & WithIsStoredExternally(bool value)
PropertyDefinitionResponse & WithIsExternalId(bool value)
PropertyDefinitionResponse & WithIsRequiredInEntity(bool value)
AWS_IOTTWINMAKER_API PropertyDefinitionResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyDefinitionResponse & WithDataType(DataTypeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue