AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeDeviceResult.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/panorama/Panorama_EXPORTS.h>
13#include <aws/panorama/model/AlternateSoftwareMetadata.h>
14#include <aws/panorama/model/DeviceAggregatedStatus.h>
15#include <aws/panorama/model/DeviceBrand.h>
16#include <aws/panorama/model/DeviceConnectionStatus.h>
17#include <aws/panorama/model/DeviceStatus.h>
18#include <aws/panorama/model/DeviceType.h>
19#include <aws/panorama/model/LatestDeviceJob.h>
20#include <aws/panorama/model/NetworkPayload.h>
21#include <aws/panorama/model/NetworkStatus.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace Panorama {
35namespace Model {
37 public:
38 AWS_PANORAMA_API DescribeDeviceResult() = default;
41
43
46 inline const Aws::Vector<AlternateSoftwareMetadata>& GetAlternateSoftwares() const { return m_alternateSoftwares; }
47 template <typename AlternateSoftwaresT = Aws::Vector<AlternateSoftwareMetadata>>
48 void SetAlternateSoftwares(AlternateSoftwaresT&& value) {
49 m_alternateSoftwaresHasBeenSet = true;
50 m_alternateSoftwares = std::forward<AlternateSoftwaresT>(value);
51 }
52 template <typename AlternateSoftwaresT = Aws::Vector<AlternateSoftwareMetadata>>
53 DescribeDeviceResult& WithAlternateSoftwares(AlternateSoftwaresT&& value) {
54 SetAlternateSoftwares(std::forward<AlternateSoftwaresT>(value));
55 return *this;
56 }
57 template <typename AlternateSoftwaresT = AlternateSoftwareMetadata>
58 DescribeDeviceResult& AddAlternateSoftwares(AlternateSoftwaresT&& value) {
59 m_alternateSoftwaresHasBeenSet = true;
60 m_alternateSoftwares.emplace_back(std::forward<AlternateSoftwaresT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetArn() const { return m_arn; }
70 template <typename ArnT = Aws::String>
71 void SetArn(ArnT&& value) {
72 m_arnHasBeenSet = true;
73 m_arn = std::forward<ArnT>(value);
74 }
75 template <typename ArnT = Aws::String>
77 SetArn(std::forward<ArnT>(value));
78 return *this;
79 }
81
83
86 inline DeviceBrand GetBrand() const { return m_brand; }
87 inline void SetBrand(DeviceBrand value) {
88 m_brandHasBeenSet = true;
89 m_brand = value;
90 }
92 SetBrand(value);
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
102 template <typename CreatedTimeT = Aws::Utils::DateTime>
103 void SetCreatedTime(CreatedTimeT&& value) {
104 m_createdTimeHasBeenSet = true;
105 m_createdTime = std::forward<CreatedTimeT>(value);
106 }
107 template <typename CreatedTimeT = Aws::Utils::DateTime>
108 DescribeDeviceResult& WithCreatedTime(CreatedTimeT&& value) {
109 SetCreatedTime(std::forward<CreatedTimeT>(value));
110 return *this;
111 }
113
115
118 inline const NetworkStatus& GetCurrentNetworkingStatus() const { return m_currentNetworkingStatus; }
119 template <typename CurrentNetworkingStatusT = NetworkStatus>
120 void SetCurrentNetworkingStatus(CurrentNetworkingStatusT&& value) {
121 m_currentNetworkingStatusHasBeenSet = true;
122 m_currentNetworkingStatus = std::forward<CurrentNetworkingStatusT>(value);
123 }
124 template <typename CurrentNetworkingStatusT = NetworkStatus>
125 DescribeDeviceResult& WithCurrentNetworkingStatus(CurrentNetworkingStatusT&& value) {
126 SetCurrentNetworkingStatus(std::forward<CurrentNetworkingStatusT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetCurrentSoftware() const { return m_currentSoftware; }
136 template <typename CurrentSoftwareT = Aws::String>
137 void SetCurrentSoftware(CurrentSoftwareT&& value) {
138 m_currentSoftwareHasBeenSet = true;
139 m_currentSoftware = std::forward<CurrentSoftwareT>(value);
140 }
141 template <typename CurrentSoftwareT = Aws::String>
142 DescribeDeviceResult& WithCurrentSoftware(CurrentSoftwareT&& value) {
143 SetCurrentSoftware(std::forward<CurrentSoftwareT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetDescription() const { return m_description; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
159 DescribeDeviceResult& WithDescription(DescriptionT&& value) {
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
170 inline DeviceAggregatedStatus GetDeviceAggregatedStatus() const { return m_deviceAggregatedStatus; }
172 m_deviceAggregatedStatusHasBeenSet = true;
173 m_deviceAggregatedStatus = value;
174 }
177 return *this;
178 }
180
182
185 inline DeviceConnectionStatus GetDeviceConnectionStatus() const { return m_deviceConnectionStatus; }
187 m_deviceConnectionStatusHasBeenSet = true;
188 m_deviceConnectionStatus = value;
189 }
192 return *this;
193 }
195
197
200 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
201 template <typename DeviceIdT = Aws::String>
202 void SetDeviceId(DeviceIdT&& value) {
203 m_deviceIdHasBeenSet = true;
204 m_deviceId = std::forward<DeviceIdT>(value);
205 }
206 template <typename DeviceIdT = Aws::String>
207 DescribeDeviceResult& WithDeviceId(DeviceIdT&& value) {
208 SetDeviceId(std::forward<DeviceIdT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetLatestAlternateSoftware() const { return m_latestAlternateSoftware; }
218 template <typename LatestAlternateSoftwareT = Aws::String>
219 void SetLatestAlternateSoftware(LatestAlternateSoftwareT&& value) {
220 m_latestAlternateSoftwareHasBeenSet = true;
221 m_latestAlternateSoftware = std::forward<LatestAlternateSoftwareT>(value);
222 }
223 template <typename LatestAlternateSoftwareT = Aws::String>
224 DescribeDeviceResult& WithLatestAlternateSoftware(LatestAlternateSoftwareT&& value) {
225 SetLatestAlternateSoftware(std::forward<LatestAlternateSoftwareT>(value));
226 return *this;
227 }
229
231
235 inline const LatestDeviceJob& GetLatestDeviceJob() const { return m_latestDeviceJob; }
236 template <typename LatestDeviceJobT = LatestDeviceJob>
237 void SetLatestDeviceJob(LatestDeviceJobT&& value) {
238 m_latestDeviceJobHasBeenSet = true;
239 m_latestDeviceJob = std::forward<LatestDeviceJobT>(value);
240 }
241 template <typename LatestDeviceJobT = LatestDeviceJob>
242 DescribeDeviceResult& WithLatestDeviceJob(LatestDeviceJobT&& value) {
243 SetLatestDeviceJob(std::forward<LatestDeviceJobT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::String& GetLatestSoftware() const { return m_latestSoftware; }
253 template <typename LatestSoftwareT = Aws::String>
254 void SetLatestSoftware(LatestSoftwareT&& value) {
255 m_latestSoftwareHasBeenSet = true;
256 m_latestSoftware = std::forward<LatestSoftwareT>(value);
257 }
258 template <typename LatestSoftwareT = Aws::String>
259 DescribeDeviceResult& WithLatestSoftware(LatestSoftwareT&& value) {
260 SetLatestSoftware(std::forward<LatestSoftwareT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::Utils::DateTime& GetLeaseExpirationTime() const { return m_leaseExpirationTime; }
270 template <typename LeaseExpirationTimeT = Aws::Utils::DateTime>
271 void SetLeaseExpirationTime(LeaseExpirationTimeT&& value) {
272 m_leaseExpirationTimeHasBeenSet = true;
273 m_leaseExpirationTime = std::forward<LeaseExpirationTimeT>(value);
274 }
275 template <typename LeaseExpirationTimeT = Aws::Utils::DateTime>
276 DescribeDeviceResult& WithLeaseExpirationTime(LeaseExpirationTimeT&& value) {
277 SetLeaseExpirationTime(std::forward<LeaseExpirationTimeT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::String& GetName() const { return m_name; }
287 template <typename NameT = Aws::String>
288 void SetName(NameT&& value) {
289 m_nameHasBeenSet = true;
290 m_name = std::forward<NameT>(value);
291 }
292 template <typename NameT = Aws::String>
294 SetName(std::forward<NameT>(value));
295 return *this;
296 }
298
300
303 inline const NetworkPayload& GetNetworkingConfiguration() const { return m_networkingConfiguration; }
304 template <typename NetworkingConfigurationT = NetworkPayload>
305 void SetNetworkingConfiguration(NetworkingConfigurationT&& value) {
306 m_networkingConfigurationHasBeenSet = true;
307 m_networkingConfiguration = std::forward<NetworkingConfigurationT>(value);
308 }
309 template <typename NetworkingConfigurationT = NetworkPayload>
310 DescribeDeviceResult& WithNetworkingConfiguration(NetworkingConfigurationT&& value) {
311 SetNetworkingConfiguration(std::forward<NetworkingConfigurationT>(value));
312 return *this;
313 }
315
317
320 inline DeviceStatus GetProvisioningStatus() const { return m_provisioningStatus; }
322 m_provisioningStatusHasBeenSet = true;
323 m_provisioningStatus = value;
324 }
327 return *this;
328 }
330
332
335 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
336 template <typename SerialNumberT = Aws::String>
337 void SetSerialNumber(SerialNumberT&& value) {
338 m_serialNumberHasBeenSet = true;
339 m_serialNumber = std::forward<SerialNumberT>(value);
340 }
341 template <typename SerialNumberT = Aws::String>
342 DescribeDeviceResult& WithSerialNumber(SerialNumberT&& value) {
343 SetSerialNumber(std::forward<SerialNumberT>(value));
344 return *this;
345 }
347
349
352 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
353 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
354 void SetTags(TagsT&& value) {
355 m_tagsHasBeenSet = true;
356 m_tags = std::forward<TagsT>(value);
357 }
358 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
360 SetTags(std::forward<TagsT>(value));
361 return *this;
362 }
363 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
364 DescribeDeviceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
365 m_tagsHasBeenSet = true;
366 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
367 return *this;
368 }
370
372
375 inline DeviceType GetType() const { return m_type; }
376 inline void SetType(DeviceType value) {
377 m_typeHasBeenSet = true;
378 m_type = value;
379 }
381 SetType(value);
382 return *this;
383 }
385
387
388 inline const Aws::String& GetRequestId() const { return m_requestId; }
389 template <typename RequestIdT = Aws::String>
390 void SetRequestId(RequestIdT&& value) {
391 m_requestIdHasBeenSet = true;
392 m_requestId = std::forward<RequestIdT>(value);
393 }
394 template <typename RequestIdT = Aws::String>
395 DescribeDeviceResult& WithRequestId(RequestIdT&& value) {
396 SetRequestId(std::forward<RequestIdT>(value));
397 return *this;
398 }
400 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
401
402 private:
403 Aws::Vector<AlternateSoftwareMetadata> m_alternateSoftwares;
404
405 Aws::String m_arn;
406
408
409 Aws::Utils::DateTime m_createdTime{};
410
411 NetworkStatus m_currentNetworkingStatus;
412
413 Aws::String m_currentSoftware;
414
415 Aws::String m_description;
416
418
420
421 Aws::String m_deviceId;
422
423 Aws::String m_latestAlternateSoftware;
424
425 LatestDeviceJob m_latestDeviceJob;
426
427 Aws::String m_latestSoftware;
428
429 Aws::Utils::DateTime m_leaseExpirationTime{};
430
431 Aws::String m_name;
432
433 NetworkPayload m_networkingConfiguration;
434
435 DeviceStatus m_provisioningStatus{DeviceStatus::NOT_SET};
436
437 Aws::String m_serialNumber;
438
440
442
443 Aws::String m_requestId;
444 Aws::Http::HttpResponseCode m_HttpResponseCode;
445 bool m_alternateSoftwaresHasBeenSet = false;
446 bool m_arnHasBeenSet = false;
447 bool m_brandHasBeenSet = false;
448 bool m_createdTimeHasBeenSet = false;
449 bool m_currentNetworkingStatusHasBeenSet = false;
450 bool m_currentSoftwareHasBeenSet = false;
451 bool m_descriptionHasBeenSet = false;
452 bool m_deviceAggregatedStatusHasBeenSet = false;
453 bool m_deviceConnectionStatusHasBeenSet = false;
454 bool m_deviceIdHasBeenSet = false;
455 bool m_latestAlternateSoftwareHasBeenSet = false;
456 bool m_latestDeviceJobHasBeenSet = false;
457 bool m_latestSoftwareHasBeenSet = false;
458 bool m_leaseExpirationTimeHasBeenSet = false;
459 bool m_nameHasBeenSet = false;
460 bool m_networkingConfigurationHasBeenSet = false;
461 bool m_provisioningStatusHasBeenSet = false;
462 bool m_serialNumberHasBeenSet = false;
463 bool m_tagsHasBeenSet = false;
464 bool m_typeHasBeenSet = false;
465 bool m_requestIdHasBeenSet = false;
466};
467
468} // namespace Model
469} // namespace Panorama
470} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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