AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetManagedThingResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
12#include <aws/iot-managed-integrations/model/HubNetworkMode.h>
13#include <aws/iot-managed-integrations/model/ProvisioningStatus.h>
14#include <aws/iot-managed-integrations/model/Role.h>
15#include <aws/iot-managed-integrations/model/WiFiSimpleSetupConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace IoTManagedIntegrations {
29namespace Model {
31 public:
32 AWS_IOTMANAGEDINTEGRATIONS_API GetManagedThingResult() = default;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetOwner() const { return m_owner; }
76 template <typename OwnerT = Aws::String>
77 void SetOwner(OwnerT&& value) {
78 m_ownerHasBeenSet = true;
79 m_owner = std::forward<OwnerT>(value);
80 }
81 template <typename OwnerT = Aws::String>
83 SetOwner(std::forward<OwnerT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetCredentialLockerId() const { return m_credentialLockerId; }
93 template <typename CredentialLockerIdT = Aws::String>
94 void SetCredentialLockerId(CredentialLockerIdT&& value) {
95 m_credentialLockerIdHasBeenSet = true;
96 m_credentialLockerId = std::forward<CredentialLockerIdT>(value);
97 }
98 template <typename CredentialLockerIdT = Aws::String>
99 GetManagedThingResult& WithCredentialLockerId(CredentialLockerIdT&& value) {
100 SetCredentialLockerId(std::forward<CredentialLockerIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetAdvertisedProductId() const { return m_advertisedProductId; }
110 template <typename AdvertisedProductIdT = Aws::String>
111 void SetAdvertisedProductId(AdvertisedProductIdT&& value) {
112 m_advertisedProductIdHasBeenSet = true;
113 m_advertisedProductId = std::forward<AdvertisedProductIdT>(value);
114 }
115 template <typename AdvertisedProductIdT = Aws::String>
116 GetManagedThingResult& WithAdvertisedProductId(AdvertisedProductIdT&& value) {
117 SetAdvertisedProductId(std::forward<AdvertisedProductIdT>(value));
118 return *this;
119 }
121
123
127 inline Role GetRole() const { return m_role; }
128 inline void SetRole(Role value) {
129 m_roleHasBeenSet = true;
130 m_role = value;
131 }
133 SetRole(value);
134 return *this;
135 }
137
139
145 inline ProvisioningStatus GetProvisioningStatus() const { return m_provisioningStatus; }
147 m_provisioningStatusHasBeenSet = true;
148 m_provisioningStatus = value;
149 }
152 return *this;
153 }
155
157
160 inline const Aws::String& GetName() const { return m_name; }
161 template <typename NameT = Aws::String>
162 void SetName(NameT&& value) {
163 m_nameHasBeenSet = true;
164 m_name = std::forward<NameT>(value);
165 }
166 template <typename NameT = Aws::String>
168 SetName(std::forward<NameT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetModel() const { return m_model; }
178 template <typename ModelT = Aws::String>
179 void SetModel(ModelT&& value) {
180 m_modelHasBeenSet = true;
181 m_model = std::forward<ModelT>(value);
182 }
183 template <typename ModelT = Aws::String>
185 SetModel(std::forward<ModelT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetBrand() const { return m_brand; }
195 template <typename BrandT = Aws::String>
196 void SetBrand(BrandT&& value) {
197 m_brandHasBeenSet = true;
198 m_brand = std::forward<BrandT>(value);
199 }
200 template <typename BrandT = Aws::String>
202 SetBrand(std::forward<BrandT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
212 template <typename SerialNumberT = Aws::String>
213 void SetSerialNumber(SerialNumberT&& value) {
214 m_serialNumberHasBeenSet = true;
215 m_serialNumber = std::forward<SerialNumberT>(value);
216 }
217 template <typename SerialNumberT = Aws::String>
218 GetManagedThingResult& WithSerialNumber(SerialNumberT&& value) {
219 SetSerialNumber(std::forward<SerialNumberT>(value));
220 return *this;
221 }
223
225
229 inline const Aws::String& GetUniversalProductCode() const { return m_universalProductCode; }
230 template <typename UniversalProductCodeT = Aws::String>
231 void SetUniversalProductCode(UniversalProductCodeT&& value) {
232 m_universalProductCodeHasBeenSet = true;
233 m_universalProductCode = std::forward<UniversalProductCodeT>(value);
234 }
235 template <typename UniversalProductCodeT = Aws::String>
236 GetManagedThingResult& WithUniversalProductCode(UniversalProductCodeT&& value) {
237 SetUniversalProductCode(std::forward<UniversalProductCodeT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetInternationalArticleNumber() const { return m_internationalArticleNumber; }
247 template <typename InternationalArticleNumberT = Aws::String>
248 void SetInternationalArticleNumber(InternationalArticleNumberT&& value) {
249 m_internationalArticleNumberHasBeenSet = true;
250 m_internationalArticleNumber = std::forward<InternationalArticleNumberT>(value);
251 }
252 template <typename InternationalArticleNumberT = Aws::String>
253 GetManagedThingResult& WithInternationalArticleNumber(InternationalArticleNumberT&& value) {
254 SetInternationalArticleNumber(std::forward<InternationalArticleNumberT>(value));
255 return *this;
256 }
258
260
264 inline const Aws::String& GetConnectorDestinationId() const { return m_connectorDestinationId; }
265 template <typename ConnectorDestinationIdT = Aws::String>
266 void SetConnectorDestinationId(ConnectorDestinationIdT&& value) {
267 m_connectorDestinationIdHasBeenSet = true;
268 m_connectorDestinationId = std::forward<ConnectorDestinationIdT>(value);
269 }
270 template <typename ConnectorDestinationIdT = Aws::String>
271 GetManagedThingResult& WithConnectorDestinationId(ConnectorDestinationIdT&& value) {
272 SetConnectorDestinationId(std::forward<ConnectorDestinationIdT>(value));
273 return *this;
274 }
276
278
283 inline const Aws::String& GetConnectorDeviceId() const { return m_connectorDeviceId; }
284 template <typename ConnectorDeviceIdT = Aws::String>
285 void SetConnectorDeviceId(ConnectorDeviceIdT&& value) {
286 m_connectorDeviceIdHasBeenSet = true;
287 m_connectorDeviceId = std::forward<ConnectorDeviceIdT>(value);
288 }
289 template <typename ConnectorDeviceIdT = Aws::String>
290 GetManagedThingResult& WithConnectorDeviceId(ConnectorDeviceIdT&& value) {
291 SetConnectorDeviceId(std::forward<ConnectorDeviceIdT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::String& GetDeviceSpecificKey() const { return m_deviceSpecificKey; }
302 template <typename DeviceSpecificKeyT = Aws::String>
303 void SetDeviceSpecificKey(DeviceSpecificKeyT&& value) {
304 m_deviceSpecificKeyHasBeenSet = true;
305 m_deviceSpecificKey = std::forward<DeviceSpecificKeyT>(value);
306 }
307 template <typename DeviceSpecificKeyT = Aws::String>
308 GetManagedThingResult& WithDeviceSpecificKey(DeviceSpecificKeyT&& value) {
309 SetDeviceSpecificKey(std::forward<DeviceSpecificKeyT>(value));
310 return *this;
311 }
313
315
320 inline const Aws::String& GetMacAddress() const { return m_macAddress; }
321 template <typename MacAddressT = Aws::String>
322 void SetMacAddress(MacAddressT&& value) {
323 m_macAddressHasBeenSet = true;
324 m_macAddress = std::forward<MacAddressT>(value);
325 }
326 template <typename MacAddressT = Aws::String>
327 GetManagedThingResult& WithMacAddress(MacAddressT&& value) {
328 SetMacAddress(std::forward<MacAddressT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::String& GetParentControllerId() const { return m_parentControllerId; }
338 template <typename ParentControllerIdT = Aws::String>
339 void SetParentControllerId(ParentControllerIdT&& value) {
340 m_parentControllerIdHasBeenSet = true;
341 m_parentControllerId = std::forward<ParentControllerIdT>(value);
342 }
343 template <typename ParentControllerIdT = Aws::String>
344 GetManagedThingResult& WithParentControllerId(ParentControllerIdT&& value) {
345 SetParentControllerId(std::forward<ParentControllerIdT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::String& GetClassification() const { return m_classification; }
355 template <typename ClassificationT = Aws::String>
356 void SetClassification(ClassificationT&& value) {
357 m_classificationHasBeenSet = true;
358 m_classification = std::forward<ClassificationT>(value);
359 }
360 template <typename ClassificationT = Aws::String>
361 GetManagedThingResult& WithClassification(ClassificationT&& value) {
362 SetClassification(std::forward<ClassificationT>(value));
363 return *this;
364 }
366
368
371 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
372 template <typename CreatedAtT = Aws::Utils::DateTime>
373 void SetCreatedAt(CreatedAtT&& value) {
374 m_createdAtHasBeenSet = true;
375 m_createdAt = std::forward<CreatedAtT>(value);
376 }
377 template <typename CreatedAtT = Aws::Utils::DateTime>
379 SetCreatedAt(std::forward<CreatedAtT>(value));
380 return *this;
381 }
383
385
388 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
389 template <typename UpdatedAtT = Aws::Utils::DateTime>
390 void SetUpdatedAt(UpdatedAtT&& value) {
391 m_updatedAtHasBeenSet = true;
392 m_updatedAt = std::forward<UpdatedAtT>(value);
393 }
394 template <typename UpdatedAtT = Aws::Utils::DateTime>
396 SetUpdatedAt(std::forward<UpdatedAtT>(value));
397 return *this;
398 }
400
402
405 inline const Aws::Utils::DateTime& GetActivatedAt() const { return m_activatedAt; }
406 template <typename ActivatedAtT = Aws::Utils::DateTime>
407 void SetActivatedAt(ActivatedAtT&& value) {
408 m_activatedAtHasBeenSet = true;
409 m_activatedAt = std::forward<ActivatedAtT>(value);
410 }
411 template <typename ActivatedAtT = Aws::Utils::DateTime>
412 GetManagedThingResult& WithActivatedAt(ActivatedAtT&& value) {
413 SetActivatedAt(std::forward<ActivatedAtT>(value));
414 return *this;
415 }
417
419
422 inline HubNetworkMode GetHubNetworkMode() const { return m_hubNetworkMode; }
424 m_hubNetworkModeHasBeenSet = true;
425 m_hubNetworkMode = value;
426 }
428 SetHubNetworkMode(value);
429 return *this;
430 }
432
434
437 inline const Aws::Map<Aws::String, Aws::String>& GetMetaData() const { return m_metaData; }
438 template <typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
439 void SetMetaData(MetaDataT&& value) {
440 m_metaDataHasBeenSet = true;
441 m_metaData = std::forward<MetaDataT>(value);
442 }
443 template <typename MetaDataT = Aws::Map<Aws::String, Aws::String>>
445 SetMetaData(std::forward<MetaDataT>(value));
446 return *this;
447 }
448 template <typename MetaDataKeyT = Aws::String, typename MetaDataValueT = Aws::String>
449 GetManagedThingResult& AddMetaData(MetaDataKeyT&& key, MetaDataValueT&& value) {
450 m_metaDataHasBeenSet = true;
451 m_metaData.emplace(std::forward<MetaDataKeyT>(key), std::forward<MetaDataValueT>(value));
452 return *this;
453 }
455
457
460 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
461 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
462 void SetTags(TagsT&& value) {
463 m_tagsHasBeenSet = true;
464 m_tags = std::forward<TagsT>(value);
465 }
466 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
468 SetTags(std::forward<TagsT>(value));
469 return *this;
470 }
471 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
472 GetManagedThingResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
473 m_tagsHasBeenSet = true;
474 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
475 return *this;
476 }
478
480
484 inline const WiFiSimpleSetupConfiguration& GetWiFiSimpleSetupConfiguration() const { return m_wiFiSimpleSetupConfiguration; }
485 template <typename WiFiSimpleSetupConfigurationT = WiFiSimpleSetupConfiguration>
486 void SetWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT&& value) {
487 m_wiFiSimpleSetupConfigurationHasBeenSet = true;
488 m_wiFiSimpleSetupConfiguration = std::forward<WiFiSimpleSetupConfigurationT>(value);
489 }
490 template <typename WiFiSimpleSetupConfigurationT = WiFiSimpleSetupConfiguration>
491 GetManagedThingResult& WithWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT&& value) {
492 SetWiFiSimpleSetupConfiguration(std::forward<WiFiSimpleSetupConfigurationT>(value));
493 return *this;
494 }
496
498
499 inline const Aws::String& GetRequestId() const { return m_requestId; }
500 template <typename RequestIdT = Aws::String>
501 void SetRequestId(RequestIdT&& value) {
502 m_requestIdHasBeenSet = true;
503 m_requestId = std::forward<RequestIdT>(value);
504 }
505 template <typename RequestIdT = Aws::String>
507 SetRequestId(std::forward<RequestIdT>(value));
508 return *this;
509 }
511 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
512
513 private:
514 Aws::String m_id;
515
516 Aws::String m_arn;
517
518 Aws::String m_owner;
519
520 Aws::String m_credentialLockerId;
521
522 Aws::String m_advertisedProductId;
523
524 Role m_role{Role::NOT_SET};
525
527
528 Aws::String m_name;
529
530 Aws::String m_model;
531
532 Aws::String m_brand;
533
534 Aws::String m_serialNumber;
535
536 Aws::String m_universalProductCode;
537
538 Aws::String m_internationalArticleNumber;
539
540 Aws::String m_connectorDestinationId;
541
542 Aws::String m_connectorDeviceId;
543
544 Aws::String m_deviceSpecificKey;
545
546 Aws::String m_macAddress;
547
548 Aws::String m_parentControllerId;
549
550 Aws::String m_classification;
551
552 Aws::Utils::DateTime m_createdAt{};
553
554 Aws::Utils::DateTime m_updatedAt{};
555
556 Aws::Utils::DateTime m_activatedAt{};
557
558 HubNetworkMode m_hubNetworkMode{HubNetworkMode::NOT_SET};
559
561
563
564 WiFiSimpleSetupConfiguration m_wiFiSimpleSetupConfiguration;
565
566 Aws::String m_requestId;
567 Aws::Http::HttpResponseCode m_HttpResponseCode;
568 bool m_idHasBeenSet = false;
569 bool m_arnHasBeenSet = false;
570 bool m_ownerHasBeenSet = false;
571 bool m_credentialLockerIdHasBeenSet = false;
572 bool m_advertisedProductIdHasBeenSet = false;
573 bool m_roleHasBeenSet = false;
574 bool m_provisioningStatusHasBeenSet = false;
575 bool m_nameHasBeenSet = false;
576 bool m_modelHasBeenSet = false;
577 bool m_brandHasBeenSet = false;
578 bool m_serialNumberHasBeenSet = false;
579 bool m_universalProductCodeHasBeenSet = false;
580 bool m_internationalArticleNumberHasBeenSet = false;
581 bool m_connectorDestinationIdHasBeenSet = false;
582 bool m_connectorDeviceIdHasBeenSet = false;
583 bool m_deviceSpecificKeyHasBeenSet = false;
584 bool m_macAddressHasBeenSet = false;
585 bool m_parentControllerIdHasBeenSet = false;
586 bool m_classificationHasBeenSet = false;
587 bool m_createdAtHasBeenSet = false;
588 bool m_updatedAtHasBeenSet = false;
589 bool m_activatedAtHasBeenSet = false;
590 bool m_hubNetworkModeHasBeenSet = false;
591 bool m_metaDataHasBeenSet = false;
592 bool m_tagsHasBeenSet = false;
593 bool m_wiFiSimpleSetupConfigurationHasBeenSet = false;
594 bool m_requestIdHasBeenSet = false;
595};
596
597} // namespace Model
598} // namespace IoTManagedIntegrations
599} // namespace Aws
GetManagedThingResult & WithCredentialLockerId(CredentialLockerIdT &&value)
GetManagedThingResult & WithConnectorDeviceId(ConnectorDeviceIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetManagedThingResult()=default
const Aws::Map< Aws::String, Aws::String > & GetMetaData() const
void SetInternationalArticleNumber(InternationalArticleNumberT &&value)
GetManagedThingResult & WithHubNetworkMode(HubNetworkMode value)
GetManagedThingResult & WithSerialNumber(SerialNumberT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetManagedThingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetManagedThingResult & WithActivatedAt(ActivatedAtT &&value)
const WiFiSimpleSetupConfiguration & GetWiFiSimpleSetupConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOTMANAGEDINTEGRATIONS_API GetManagedThingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetManagedThingResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetManagedThingResult & WithUniversalProductCode(UniversalProductCodeT &&value)
GetManagedThingResult & WithClassification(ClassificationT &&value)
void SetWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT &&value)
GetManagedThingResult & AddMetaData(MetaDataKeyT &&key, MetaDataValueT &&value)
GetManagedThingResult & WithDeviceSpecificKey(DeviceSpecificKeyT &&value)
GetManagedThingResult & WithProvisioningStatus(ProvisioningStatus value)
GetManagedThingResult & WithAdvertisedProductId(AdvertisedProductIdT &&value)
GetManagedThingResult & WithWiFiSimpleSetupConfiguration(WiFiSimpleSetupConfigurationT &&value)
GetManagedThingResult & WithRequestId(RequestIdT &&value)
GetManagedThingResult & WithInternationalArticleNumber(InternationalArticleNumberT &&value)
GetManagedThingResult & WithConnectorDestinationId(ConnectorDestinationIdT &&value)
GetManagedThingResult & WithMetaData(MetaDataT &&value)
GetManagedThingResult & WithMacAddress(MacAddressT &&value)
void SetConnectorDestinationId(ConnectorDestinationIdT &&value)
GetManagedThingResult & WithParentControllerId(ParentControllerIdT &&value)
GetManagedThingResult & WithCreatedAt(CreatedAtT &&value)
GetManagedThingResult & WithUpdatedAt(UpdatedAtT &&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