AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeDeviceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/panorama/Panorama_EXPORTS.h>
12#include <aws/panorama/model/AlternateSoftwareMetadata.h>
13#include <aws/panorama/model/DeviceAggregatedStatus.h>
14#include <aws/panorama/model/DeviceBrand.h>
15#include <aws/panorama/model/DeviceConnectionStatus.h>
16#include <aws/panorama/model/DeviceStatus.h>
17#include <aws/panorama/model/DeviceType.h>
18#include <aws/panorama/model/LatestDeviceJob.h>
19#include <aws/panorama/model/NetworkPayload.h>
20#include <aws/panorama/model/NetworkStatus.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace Panorama {
34namespace Model {
36 public:
37 AWS_PANORAMA_API DescribeDeviceResult() = default;
40
42
45 inline const Aws::Vector<AlternateSoftwareMetadata>& GetAlternateSoftwares() const { return m_alternateSoftwares; }
46 template <typename AlternateSoftwaresT = Aws::Vector<AlternateSoftwareMetadata>>
47 void SetAlternateSoftwares(AlternateSoftwaresT&& value) {
48 m_alternateSoftwaresHasBeenSet = true;
49 m_alternateSoftwares = std::forward<AlternateSoftwaresT>(value);
50 }
51 template <typename AlternateSoftwaresT = Aws::Vector<AlternateSoftwareMetadata>>
52 DescribeDeviceResult& WithAlternateSoftwares(AlternateSoftwaresT&& value) {
53 SetAlternateSoftwares(std::forward<AlternateSoftwaresT>(value));
54 return *this;
55 }
56 template <typename AlternateSoftwaresT = AlternateSoftwareMetadata>
57 DescribeDeviceResult& AddAlternateSoftwares(AlternateSoftwaresT&& value) {
58 m_alternateSoftwaresHasBeenSet = true;
59 m_alternateSoftwares.emplace_back(std::forward<AlternateSoftwaresT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetArn() const { return m_arn; }
69 template <typename ArnT = Aws::String>
70 void SetArn(ArnT&& value) {
71 m_arnHasBeenSet = true;
72 m_arn = std::forward<ArnT>(value);
73 }
74 template <typename ArnT = Aws::String>
76 SetArn(std::forward<ArnT>(value));
77 return *this;
78 }
80
82
85 inline DeviceBrand GetBrand() const { return m_brand; }
86 inline void SetBrand(DeviceBrand value) {
87 m_brandHasBeenSet = true;
88 m_brand = value;
89 }
91 SetBrand(value);
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
101 template <typename CreatedTimeT = Aws::Utils::DateTime>
102 void SetCreatedTime(CreatedTimeT&& value) {
103 m_createdTimeHasBeenSet = true;
104 m_createdTime = std::forward<CreatedTimeT>(value);
105 }
106 template <typename CreatedTimeT = Aws::Utils::DateTime>
107 DescribeDeviceResult& WithCreatedTime(CreatedTimeT&& value) {
108 SetCreatedTime(std::forward<CreatedTimeT>(value));
109 return *this;
110 }
112
114
117 inline const NetworkStatus& GetCurrentNetworkingStatus() const { return m_currentNetworkingStatus; }
118 template <typename CurrentNetworkingStatusT = NetworkStatus>
119 void SetCurrentNetworkingStatus(CurrentNetworkingStatusT&& value) {
120 m_currentNetworkingStatusHasBeenSet = true;
121 m_currentNetworkingStatus = std::forward<CurrentNetworkingStatusT>(value);
122 }
123 template <typename CurrentNetworkingStatusT = NetworkStatus>
124 DescribeDeviceResult& WithCurrentNetworkingStatus(CurrentNetworkingStatusT&& value) {
125 SetCurrentNetworkingStatus(std::forward<CurrentNetworkingStatusT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetCurrentSoftware() const { return m_currentSoftware; }
135 template <typename CurrentSoftwareT = Aws::String>
136 void SetCurrentSoftware(CurrentSoftwareT&& value) {
137 m_currentSoftwareHasBeenSet = true;
138 m_currentSoftware = std::forward<CurrentSoftwareT>(value);
139 }
140 template <typename CurrentSoftwareT = Aws::String>
141 DescribeDeviceResult& WithCurrentSoftware(CurrentSoftwareT&& value) {
142 SetCurrentSoftware(std::forward<CurrentSoftwareT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 template <typename DescriptionT = Aws::String>
153 void SetDescription(DescriptionT&& value) {
154 m_descriptionHasBeenSet = true;
155 m_description = std::forward<DescriptionT>(value);
156 }
157 template <typename DescriptionT = Aws::String>
158 DescribeDeviceResult& WithDescription(DescriptionT&& value) {
159 SetDescription(std::forward<DescriptionT>(value));
160 return *this;
161 }
163
165
169 inline DeviceAggregatedStatus GetDeviceAggregatedStatus() const { return m_deviceAggregatedStatus; }
171 m_deviceAggregatedStatusHasBeenSet = true;
172 m_deviceAggregatedStatus = value;
173 }
176 return *this;
177 }
179
181
184 inline DeviceConnectionStatus GetDeviceConnectionStatus() const { return m_deviceConnectionStatus; }
186 m_deviceConnectionStatusHasBeenSet = true;
187 m_deviceConnectionStatus = value;
188 }
191 return *this;
192 }
194
196
199 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
200 template <typename DeviceIdT = Aws::String>
201 void SetDeviceId(DeviceIdT&& value) {
202 m_deviceIdHasBeenSet = true;
203 m_deviceId = std::forward<DeviceIdT>(value);
204 }
205 template <typename DeviceIdT = Aws::String>
206 DescribeDeviceResult& WithDeviceId(DeviceIdT&& value) {
207 SetDeviceId(std::forward<DeviceIdT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetLatestAlternateSoftware() const { return m_latestAlternateSoftware; }
217 template <typename LatestAlternateSoftwareT = Aws::String>
218 void SetLatestAlternateSoftware(LatestAlternateSoftwareT&& value) {
219 m_latestAlternateSoftwareHasBeenSet = true;
220 m_latestAlternateSoftware = std::forward<LatestAlternateSoftwareT>(value);
221 }
222 template <typename LatestAlternateSoftwareT = Aws::String>
223 DescribeDeviceResult& WithLatestAlternateSoftware(LatestAlternateSoftwareT&& value) {
224 SetLatestAlternateSoftware(std::forward<LatestAlternateSoftwareT>(value));
225 return *this;
226 }
228
230
234 inline const LatestDeviceJob& GetLatestDeviceJob() const { return m_latestDeviceJob; }
235 template <typename LatestDeviceJobT = LatestDeviceJob>
236 void SetLatestDeviceJob(LatestDeviceJobT&& value) {
237 m_latestDeviceJobHasBeenSet = true;
238 m_latestDeviceJob = std::forward<LatestDeviceJobT>(value);
239 }
240 template <typename LatestDeviceJobT = LatestDeviceJob>
241 DescribeDeviceResult& WithLatestDeviceJob(LatestDeviceJobT&& value) {
242 SetLatestDeviceJob(std::forward<LatestDeviceJobT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::String& GetLatestSoftware() const { return m_latestSoftware; }
252 template <typename LatestSoftwareT = Aws::String>
253 void SetLatestSoftware(LatestSoftwareT&& value) {
254 m_latestSoftwareHasBeenSet = true;
255 m_latestSoftware = std::forward<LatestSoftwareT>(value);
256 }
257 template <typename LatestSoftwareT = Aws::String>
258 DescribeDeviceResult& WithLatestSoftware(LatestSoftwareT&& value) {
259 SetLatestSoftware(std::forward<LatestSoftwareT>(value));
260 return *this;
261 }
263
265
268 inline const Aws::Utils::DateTime& GetLeaseExpirationTime() const { return m_leaseExpirationTime; }
269 template <typename LeaseExpirationTimeT = Aws::Utils::DateTime>
270 void SetLeaseExpirationTime(LeaseExpirationTimeT&& value) {
271 m_leaseExpirationTimeHasBeenSet = true;
272 m_leaseExpirationTime = std::forward<LeaseExpirationTimeT>(value);
273 }
274 template <typename LeaseExpirationTimeT = Aws::Utils::DateTime>
275 DescribeDeviceResult& WithLeaseExpirationTime(LeaseExpirationTimeT&& value) {
276 SetLeaseExpirationTime(std::forward<LeaseExpirationTimeT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::String& GetName() const { return m_name; }
286 template <typename NameT = Aws::String>
287 void SetName(NameT&& value) {
288 m_nameHasBeenSet = true;
289 m_name = std::forward<NameT>(value);
290 }
291 template <typename NameT = Aws::String>
293 SetName(std::forward<NameT>(value));
294 return *this;
295 }
297
299
302 inline const NetworkPayload& GetNetworkingConfiguration() const { return m_networkingConfiguration; }
303 template <typename NetworkingConfigurationT = NetworkPayload>
304 void SetNetworkingConfiguration(NetworkingConfigurationT&& value) {
305 m_networkingConfigurationHasBeenSet = true;
306 m_networkingConfiguration = std::forward<NetworkingConfigurationT>(value);
307 }
308 template <typename NetworkingConfigurationT = NetworkPayload>
309 DescribeDeviceResult& WithNetworkingConfiguration(NetworkingConfigurationT&& value) {
310 SetNetworkingConfiguration(std::forward<NetworkingConfigurationT>(value));
311 return *this;
312 }
314
316
319 inline DeviceStatus GetProvisioningStatus() const { return m_provisioningStatus; }
321 m_provisioningStatusHasBeenSet = true;
322 m_provisioningStatus = value;
323 }
326 return *this;
327 }
329
331
334 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
335 template <typename SerialNumberT = Aws::String>
336 void SetSerialNumber(SerialNumberT&& value) {
337 m_serialNumberHasBeenSet = true;
338 m_serialNumber = std::forward<SerialNumberT>(value);
339 }
340 template <typename SerialNumberT = Aws::String>
341 DescribeDeviceResult& WithSerialNumber(SerialNumberT&& value) {
342 SetSerialNumber(std::forward<SerialNumberT>(value));
343 return *this;
344 }
346
348
351 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
352 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
353 void SetTags(TagsT&& value) {
354 m_tagsHasBeenSet = true;
355 m_tags = std::forward<TagsT>(value);
356 }
357 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
359 SetTags(std::forward<TagsT>(value));
360 return *this;
361 }
362 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
363 DescribeDeviceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
364 m_tagsHasBeenSet = true;
365 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
366 return *this;
367 }
369
371
374 inline DeviceType GetType() const { return m_type; }
375 inline void SetType(DeviceType value) {
376 m_typeHasBeenSet = true;
377 m_type = value;
378 }
380 SetType(value);
381 return *this;
382 }
384
386
387 inline const Aws::String& GetRequestId() const { return m_requestId; }
388 template <typename RequestIdT = Aws::String>
389 void SetRequestId(RequestIdT&& value) {
390 m_requestIdHasBeenSet = true;
391 m_requestId = std::forward<RequestIdT>(value);
392 }
393 template <typename RequestIdT = Aws::String>
394 DescribeDeviceResult& WithRequestId(RequestIdT&& value) {
395 SetRequestId(std::forward<RequestIdT>(value));
396 return *this;
397 }
399 private:
400 Aws::Vector<AlternateSoftwareMetadata> m_alternateSoftwares;
401
402 Aws::String m_arn;
403
405
406 Aws::Utils::DateTime m_createdTime{};
407
408 NetworkStatus m_currentNetworkingStatus;
409
410 Aws::String m_currentSoftware;
411
412 Aws::String m_description;
413
415
417
418 Aws::String m_deviceId;
419
420 Aws::String m_latestAlternateSoftware;
421
422 LatestDeviceJob m_latestDeviceJob;
423
424 Aws::String m_latestSoftware;
425
426 Aws::Utils::DateTime m_leaseExpirationTime{};
427
428 Aws::String m_name;
429
430 NetworkPayload m_networkingConfiguration;
431
432 DeviceStatus m_provisioningStatus{DeviceStatus::NOT_SET};
433
434 Aws::String m_serialNumber;
435
437
439
440 Aws::String m_requestId;
441 bool m_alternateSoftwaresHasBeenSet = false;
442 bool m_arnHasBeenSet = false;
443 bool m_brandHasBeenSet = false;
444 bool m_createdTimeHasBeenSet = false;
445 bool m_currentNetworkingStatusHasBeenSet = false;
446 bool m_currentSoftwareHasBeenSet = false;
447 bool m_descriptionHasBeenSet = false;
448 bool m_deviceAggregatedStatusHasBeenSet = false;
449 bool m_deviceConnectionStatusHasBeenSet = false;
450 bool m_deviceIdHasBeenSet = false;
451 bool m_latestAlternateSoftwareHasBeenSet = false;
452 bool m_latestDeviceJobHasBeenSet = false;
453 bool m_latestSoftwareHasBeenSet = false;
454 bool m_leaseExpirationTimeHasBeenSet = false;
455 bool m_nameHasBeenSet = false;
456 bool m_networkingConfigurationHasBeenSet = false;
457 bool m_provisioningStatusHasBeenSet = false;
458 bool m_serialNumberHasBeenSet = false;
459 bool m_tagsHasBeenSet = false;
460 bool m_typeHasBeenSet = false;
461 bool m_requestIdHasBeenSet = false;
462};
463
464} // namespace Model
465} // namespace Panorama
466} // namespace Aws
DescribeDeviceResult & WithName(NameT &&value)
const Aws::Vector< AlternateSoftwareMetadata > & GetAlternateSoftwares() const
DescribeDeviceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeDeviceResult & WithNetworkingConfiguration(NetworkingConfigurationT &&value)
DescribeDeviceResult & WithDeviceId(DeviceIdT &&value)
DescribeDeviceResult & WithDeviceConnectionStatus(DeviceConnectionStatus value)
DescribeDeviceResult & WithBrand(DeviceBrand value)
const Aws::Utils::DateTime & GetLeaseExpirationTime() const
AWS_PANORAMA_API DescribeDeviceResult()=default
DescribeDeviceResult & WithTags(TagsT &&value)
DescribeDeviceResult & WithArn(ArnT &&value)
DescribeDeviceResult & WithDescription(DescriptionT &&value)
void SetDeviceAggregatedStatus(DeviceAggregatedStatus value)
DescribeDeviceResult & WithLatestAlternateSoftware(LatestAlternateSoftwareT &&value)
DescribeDeviceResult & WithLatestSoftware(LatestSoftwareT &&value)
DescribeDeviceResult & WithCurrentSoftware(CurrentSoftwareT &&value)
AWS_PANORAMA_API DescribeDeviceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDeviceResult & WithProvisioningStatus(DeviceStatus value)
void SetLeaseExpirationTime(LeaseExpirationTimeT &&value)
AWS_PANORAMA_API DescribeDeviceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDeviceResult & WithLatestDeviceJob(LatestDeviceJobT &&value)
const NetworkStatus & GetCurrentNetworkingStatus() const
void SetDeviceConnectionStatus(DeviceConnectionStatus value)
DescribeDeviceResult & WithCreatedTime(CreatedTimeT &&value)
void SetAlternateSoftwares(AlternateSoftwaresT &&value)
void SetNetworkingConfiguration(NetworkingConfigurationT &&value)
const NetworkPayload & GetNetworkingConfiguration() const
DescribeDeviceResult & WithSerialNumber(SerialNumberT &&value)
DescribeDeviceResult & AddAlternateSoftwares(AlternateSoftwaresT &&value)
DescribeDeviceResult & WithType(DeviceType value)
DescribeDeviceResult & WithRequestId(RequestIdT &&value)
DeviceAggregatedStatus GetDeviceAggregatedStatus() const
const Aws::Utils::DateTime & GetCreatedTime() const
void SetLatestAlternateSoftware(LatestAlternateSoftwareT &&value)
DeviceConnectionStatus GetDeviceConnectionStatus() const
void SetCurrentSoftware(CurrentSoftwareT &&value)
DescribeDeviceResult & WithAlternateSoftwares(AlternateSoftwaresT &&value)
void SetLatestDeviceJob(LatestDeviceJobT &&value)
DescribeDeviceResult & WithLeaseExpirationTime(LeaseExpirationTimeT &&value)
DescribeDeviceResult & WithCurrentNetworkingStatus(CurrentNetworkingStatusT &&value)
void SetLatestSoftware(LatestSoftwareT &&value)
const LatestDeviceJob & GetLatestDeviceJob() const
DescribeDeviceResult & WithDeviceAggregatedStatus(DeviceAggregatedStatus value)
void SetCurrentNetworkingStatus(CurrentNetworkingStatusT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetLatestAlternateSoftware() const
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
Aws::Utils::Json::JsonValue JsonValue