AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateManagedThingRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
12#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
13#include <aws/iot-managed-integrations/model/AuthMaterialType.h>
14#include <aws/iot-managed-integrations/model/CapabilityReport.h>
15#include <aws/iot-managed-integrations/model/CapabilitySchemaItem.h>
16#include <aws/iot-managed-integrations/model/Role.h>
17#include <aws/iot-managed-integrations/model/WiFiSimpleSetupConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22namespace IoTManagedIntegrations {
23namespace Model {
24
28 public:
29 AWS_IOTMANAGEDINTEGRATIONS_API CreateManagedThingRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateManagedThing"; }
36
37 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
38
40
44 inline Role GetRole() const { return m_role; }
45 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
46 inline void SetRole(Role value) {
47 m_roleHasBeenSet = true;
48 m_role = value;
49 }
51 SetRole(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetOwner() const { return m_owner; }
62 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
63 template <typename OwnerT = Aws::String>
64 void SetOwner(OwnerT&& value) {
65 m_ownerHasBeenSet = true;
66 m_owner = std::forward<OwnerT>(value);
67 }
68 template <typename OwnerT = Aws::String>
70 SetOwner(std::forward<OwnerT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCredentialLockerId() const { return m_credentialLockerId; }
80 inline bool CredentialLockerIdHasBeenSet() const { return m_credentialLockerIdHasBeenSet; }
81 template <typename CredentialLockerIdT = Aws::String>
82 void SetCredentialLockerId(CredentialLockerIdT&& value) {
83 m_credentialLockerIdHasBeenSet = true;
84 m_credentialLockerId = std::forward<CredentialLockerIdT>(value);
85 }
86 template <typename CredentialLockerIdT = Aws::String>
87 CreateManagedThingRequest& WithCredentialLockerId(CredentialLockerIdT&& value) {
88 SetCredentialLockerId(std::forward<CredentialLockerIdT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetAuthenticationMaterial() const { return m_authenticationMaterial; }
99 inline bool AuthenticationMaterialHasBeenSet() const { return m_authenticationMaterialHasBeenSet; }
100 template <typename AuthenticationMaterialT = Aws::String>
101 void SetAuthenticationMaterial(AuthenticationMaterialT&& value) {
102 m_authenticationMaterialHasBeenSet = true;
103 m_authenticationMaterial = std::forward<AuthenticationMaterialT>(value);
104 }
105 template <typename AuthenticationMaterialT = Aws::String>
106 CreateManagedThingRequest& WithAuthenticationMaterial(AuthenticationMaterialT&& value) {
107 SetAuthenticationMaterial(std::forward<AuthenticationMaterialT>(value));
108 return *this;
109 }
111
113
117 inline AuthMaterialType GetAuthenticationMaterialType() const { return m_authenticationMaterialType; }
118 inline bool AuthenticationMaterialTypeHasBeenSet() const { return m_authenticationMaterialTypeHasBeenSet; }
120 m_authenticationMaterialTypeHasBeenSet = true;
121 m_authenticationMaterialType = value;
122 }
128
130
134 inline const WiFiSimpleSetupConfiguration& GetWiFiSimpleSetupConfiguration() const { return m_wiFiSimpleSetupConfiguration; }
135 inline bool WiFiSimpleSetupConfigurationHasBeenSet() const { return m_wiFiSimpleSetupConfigurationHasBeenSet; }
136 template <typename WiFiSimpleSetupConfigurationT = WiFiSimpleSetupConfiguration>
137 void SetWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT&& value) {
138 m_wiFiSimpleSetupConfigurationHasBeenSet = true;
139 m_wiFiSimpleSetupConfiguration = std::forward<WiFiSimpleSetupConfigurationT>(value);
140 }
141 template <typename WiFiSimpleSetupConfigurationT = WiFiSimpleSetupConfiguration>
142 CreateManagedThingRequest& WithWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT&& value) {
143 SetWiFiSimpleSetupConfiguration(std::forward<WiFiSimpleSetupConfigurationT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
153 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
154 template <typename SerialNumberT = Aws::String>
155 void SetSerialNumber(SerialNumberT&& value) {
156 m_serialNumberHasBeenSet = true;
157 m_serialNumber = std::forward<SerialNumberT>(value);
158 }
159 template <typename SerialNumberT = Aws::String>
161 SetSerialNumber(std::forward<SerialNumberT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetBrand() const { return m_brand; }
171 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
172 template <typename BrandT = Aws::String>
173 void SetBrand(BrandT&& value) {
174 m_brandHasBeenSet = true;
175 m_brand = std::forward<BrandT>(value);
176 }
177 template <typename BrandT = Aws::String>
179 SetBrand(std::forward<BrandT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetModel() const { return m_model; }
189 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
190 template <typename ModelT = Aws::String>
191 void SetModel(ModelT&& value) {
192 m_modelHasBeenSet = true;
193 m_model = std::forward<ModelT>(value);
194 }
195 template <typename ModelT = Aws::String>
197 SetModel(std::forward<ModelT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetName() const { return m_name; }
207 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
208 template <typename NameT = Aws::String>
209 void SetName(NameT&& value) {
210 m_nameHasBeenSet = true;
211 m_name = std::forward<NameT>(value);
212 }
213 template <typename NameT = Aws::String>
215 SetName(std::forward<NameT>(value));
216 return *this;
217 }
219
221
224 inline const CapabilityReport& GetCapabilityReport() const { return m_capabilityReport; }
225 inline bool CapabilityReportHasBeenSet() const { return m_capabilityReportHasBeenSet; }
226 template <typename CapabilityReportT = CapabilityReport>
227 void SetCapabilityReport(CapabilityReportT&& value) {
228 m_capabilityReportHasBeenSet = true;
229 m_capabilityReport = std::forward<CapabilityReportT>(value);
230 }
231 template <typename CapabilityReportT = CapabilityReport>
233 SetCapabilityReport(std::forward<CapabilityReportT>(value));
234 return *this;
235 }
237
239
244 inline const Aws::Vector<CapabilitySchemaItem>& GetCapabilitySchemas() const { return m_capabilitySchemas; }
245 inline bool CapabilitySchemasHasBeenSet() const { return m_capabilitySchemasHasBeenSet; }
246 template <typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
247 void SetCapabilitySchemas(CapabilitySchemasT&& value) {
248 m_capabilitySchemasHasBeenSet = true;
249 m_capabilitySchemas = std::forward<CapabilitySchemasT>(value);
250 }
251 template <typename CapabilitySchemasT = Aws::Vector<CapabilitySchemaItem>>
253 SetCapabilitySchemas(std::forward<CapabilitySchemasT>(value));
254 return *this;
255 }
256 template <typename CapabilitySchemasT = CapabilitySchemaItem>
257 CreateManagedThingRequest& AddCapabilitySchemas(CapabilitySchemasT&& value) {
258 m_capabilitySchemasHasBeenSet = true;
259 m_capabilitySchemas.emplace_back(std::forward<CapabilitySchemasT>(value));
260 return *this;
261 }
263
265
270 inline const Aws::String& GetClientToken() const { return m_clientToken; }
271 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
272 template <typename ClientTokenT = Aws::String>
273 void SetClientToken(ClientTokenT&& value) {
274 m_clientTokenHasBeenSet = true;
275 m_clientToken = std::forward<ClientTokenT>(value);
276 }
277 template <typename ClientTokenT = Aws::String>
279 SetClientToken(std::forward<ClientTokenT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetClassification() const { return m_classification; }
289 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
290 template <typename ClassificationT = Aws::String>
291 void SetClassification(ClassificationT&& value) {
292 m_classificationHasBeenSet = true;
293 m_classification = std::forward<ClassificationT>(value);
294 }
295 template <typename ClassificationT = Aws::String>
297 SetClassification(std::forward<ClassificationT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
307 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
308 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
309 void SetTags(TagsT&& value) {
310 m_tagsHasBeenSet = true;
311 m_tags = std::forward<TagsT>(value);
312 }
313 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
315 SetTags(std::forward<TagsT>(value));
316 return *this;
317 }
318 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
319 CreateManagedThingRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
320 m_tagsHasBeenSet = true;
321 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
322 return *this;
323 }
325
327
335 inline const Aws::Map<Aws::String, Aws::String>& GetMetaData() const { return m_metaData; }
336 inline bool MetaDataHasBeenSet() const { return m_metaDataHasBeenSet; }
337 template <typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
338 void SetMetaData(MetaDataT&& value) {
339 m_metaDataHasBeenSet = true;
340 m_metaData = std::forward<MetaDataT>(value);
341 }
342 template <typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
344 SetMetaData(std::forward<MetaDataT>(value));
345 return *this;
346 }
347 template <typename MetaDataKeyT = Aws::String, typename MetaDataValueT = Aws::String>
348 CreateManagedThingRequest& AddMetaData(MetaDataKeyT&& key, MetaDataValueT&& value) {
349 m_metaDataHasBeenSet = true;
350 m_metaData.emplace(std::forward<MetaDataKeyT>(key), std::forward<MetaDataValueT>(value));
351 return *this;
352 }
354 private:
355 Role m_role{Role::NOT_SET};
356
357 Aws::String m_owner;
358
359 Aws::String m_credentialLockerId;
360
361 Aws::String m_authenticationMaterial;
362
363 AuthMaterialType m_authenticationMaterialType{AuthMaterialType::NOT_SET};
364
365 WiFiSimpleSetupConfiguration m_wiFiSimpleSetupConfiguration;
366
367 Aws::String m_serialNumber;
368
369 Aws::String m_brand;
370
371 Aws::String m_model;
372
373 Aws::String m_name;
374
375 CapabilityReport m_capabilityReport;
376
377 Aws::Vector<CapabilitySchemaItem> m_capabilitySchemas;
378
380
381 Aws::String m_classification;
382
384
386 bool m_roleHasBeenSet = false;
387 bool m_ownerHasBeenSet = false;
388 bool m_credentialLockerIdHasBeenSet = false;
389 bool m_authenticationMaterialHasBeenSet = false;
390 bool m_authenticationMaterialTypeHasBeenSet = false;
391 bool m_wiFiSimpleSetupConfigurationHasBeenSet = false;
392 bool m_serialNumberHasBeenSet = false;
393 bool m_brandHasBeenSet = false;
394 bool m_modelHasBeenSet = false;
395 bool m_nameHasBeenSet = false;
396 bool m_capabilityReportHasBeenSet = false;
397 bool m_capabilitySchemasHasBeenSet = false;
398 bool m_clientTokenHasBeenSet = true;
399 bool m_classificationHasBeenSet = false;
400 bool m_tagsHasBeenSet = false;
401 bool m_metaDataHasBeenSet = false;
402};
403
404} // namespace Model
405} // namespace IoTManagedIntegrations
406} // namespace Aws
const Aws::Vector< CapabilitySchemaItem > & GetCapabilitySchemas() const
CreateManagedThingRequest & WithCredentialLockerId(CredentialLockerIdT &&value)
CreateManagedThingRequest & WithCapabilityReport(CapabilityReportT &&value)
CreateManagedThingRequest & WithAuthenticationMaterial(AuthenticationMaterialT &&value)
CreateManagedThingRequest & WithCapabilitySchemas(CapabilitySchemasT &&value)
CreateManagedThingRequest & AddCapabilitySchemas(CapabilitySchemasT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetaData() const
CreateManagedThingRequest & WithWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT &&value)
CreateManagedThingRequest & WithSerialNumber(SerialNumberT &&value)
CreateManagedThingRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateManagedThingRequest & WithClassification(ClassificationT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateManagedThingRequest & WithClientToken(ClientTokenT &&value)
CreateManagedThingRequest & WithAuthenticationMaterialType(AuthMaterialType value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateManagedThingRequest()=default
CreateManagedThingRequest & AddMetaData(MetaDataKeyT &&key, MetaDataValueT &&value)
const WiFiSimpleSetupConfiguration & GetWiFiSimpleSetupConfiguration() const
static Aws::Utils::UUID PseudoRandomUUID()
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
std::vector< T, Aws::Allocator< T > > Vector