AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces-thin-client/WorkSpacesThinClient_EXPORTS.h>
10#include <aws/workspaces-thin-client/model/DeviceSoftwareSetComplianceStatus.h>
11#include <aws/workspaces-thin-client/model/DeviceStatus.h>
12#include <aws/workspaces-thin-client/model/SoftwareSetUpdateSchedule.h>
13#include <aws/workspaces-thin-client/model/SoftwareSetUpdateStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkSpacesThinClient {
25namespace Model {
26
32class Device {
33 public:
34 AWS_WORKSPACESTHINCLIENT_API Device() = default;
35 AWS_WORKSPACESTHINCLIENT_API Device(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACESTHINCLIENT_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 Device& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
62 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
63 template <typename SerialNumberT = Aws::String>
64 void SetSerialNumber(SerialNumberT&& value) {
65 m_serialNumberHasBeenSet = true;
66 m_serialNumber = std::forward<SerialNumberT>(value);
67 }
68 template <typename SerialNumberT = Aws::String>
69 Device& WithSerialNumber(SerialNumberT&& value) {
70 SetSerialNumber(std::forward<SerialNumberT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 Device& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetModel() const { return m_model; }
98 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
99 template <typename ModelT = Aws::String>
100 void SetModel(ModelT&& value) {
101 m_modelHasBeenSet = true;
102 m_model = std::forward<ModelT>(value);
103 }
104 template <typename ModelT = Aws::String>
105 Device& WithModel(ModelT&& value) {
106 SetModel(std::forward<ModelT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
116 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
117 template <typename EnvironmentIdT = Aws::String>
118 void SetEnvironmentId(EnvironmentIdT&& value) {
119 m_environmentIdHasBeenSet = true;
120 m_environmentId = std::forward<EnvironmentIdT>(value);
121 }
122 template <typename EnvironmentIdT = Aws::String>
123 Device& WithEnvironmentId(EnvironmentIdT&& value) {
124 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
125 return *this;
126 }
128
130
133 inline DeviceStatus GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(DeviceStatus value) {
136 m_statusHasBeenSet = true;
137 m_status = value;
138 }
140 SetStatus(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetCurrentSoftwareSetId() const { return m_currentSoftwareSetId; }
150 inline bool CurrentSoftwareSetIdHasBeenSet() const { return m_currentSoftwareSetIdHasBeenSet; }
151 template <typename CurrentSoftwareSetIdT = Aws::String>
152 void SetCurrentSoftwareSetId(CurrentSoftwareSetIdT&& value) {
153 m_currentSoftwareSetIdHasBeenSet = true;
154 m_currentSoftwareSetId = std::forward<CurrentSoftwareSetIdT>(value);
155 }
156 template <typename CurrentSoftwareSetIdT = Aws::String>
157 Device& WithCurrentSoftwareSetId(CurrentSoftwareSetIdT&& value) {
158 SetCurrentSoftwareSetId(std::forward<CurrentSoftwareSetIdT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetCurrentSoftwareSetVersion() const { return m_currentSoftwareSetVersion; }
168 inline bool CurrentSoftwareSetVersionHasBeenSet() const { return m_currentSoftwareSetVersionHasBeenSet; }
169 template <typename CurrentSoftwareSetVersionT = Aws::String>
170 void SetCurrentSoftwareSetVersion(CurrentSoftwareSetVersionT&& value) {
171 m_currentSoftwareSetVersionHasBeenSet = true;
172 m_currentSoftwareSetVersion = std::forward<CurrentSoftwareSetVersionT>(value);
173 }
174 template <typename CurrentSoftwareSetVersionT = Aws::String>
175 Device& WithCurrentSoftwareSetVersion(CurrentSoftwareSetVersionT&& value) {
176 SetCurrentSoftwareSetVersion(std::forward<CurrentSoftwareSetVersionT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetDesiredSoftwareSetId() const { return m_desiredSoftwareSetId; }
186 inline bool DesiredSoftwareSetIdHasBeenSet() const { return m_desiredSoftwareSetIdHasBeenSet; }
187 template <typename DesiredSoftwareSetIdT = Aws::String>
188 void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
189 m_desiredSoftwareSetIdHasBeenSet = true;
190 m_desiredSoftwareSetId = std::forward<DesiredSoftwareSetIdT>(value);
191 }
192 template <typename DesiredSoftwareSetIdT = Aws::String>
193 Device& WithDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
194 SetDesiredSoftwareSetId(std::forward<DesiredSoftwareSetIdT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetPendingSoftwareSetId() const { return m_pendingSoftwareSetId; }
204 inline bool PendingSoftwareSetIdHasBeenSet() const { return m_pendingSoftwareSetIdHasBeenSet; }
205 template <typename PendingSoftwareSetIdT = Aws::String>
206 void SetPendingSoftwareSetId(PendingSoftwareSetIdT&& value) {
207 m_pendingSoftwareSetIdHasBeenSet = true;
208 m_pendingSoftwareSetId = std::forward<PendingSoftwareSetIdT>(value);
209 }
210 template <typename PendingSoftwareSetIdT = Aws::String>
211 Device& WithPendingSoftwareSetId(PendingSoftwareSetIdT&& value) {
212 SetPendingSoftwareSetId(std::forward<PendingSoftwareSetIdT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::String& GetPendingSoftwareSetVersion() const { return m_pendingSoftwareSetVersion; }
223 inline bool PendingSoftwareSetVersionHasBeenSet() const { return m_pendingSoftwareSetVersionHasBeenSet; }
224 template <typename PendingSoftwareSetVersionT = Aws::String>
225 void SetPendingSoftwareSetVersion(PendingSoftwareSetVersionT&& value) {
226 m_pendingSoftwareSetVersionHasBeenSet = true;
227 m_pendingSoftwareSetVersion = std::forward<PendingSoftwareSetVersionT>(value);
228 }
229 template <typename PendingSoftwareSetVersionT = Aws::String>
230 Device& WithPendingSoftwareSetVersion(PendingSoftwareSetVersionT&& value) {
231 SetPendingSoftwareSetVersion(std::forward<PendingSoftwareSetVersionT>(value));
232 return *this;
233 }
235
237
241 inline SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const { return m_softwareSetUpdateSchedule; }
242 inline bool SoftwareSetUpdateScheduleHasBeenSet() const { return m_softwareSetUpdateScheduleHasBeenSet; }
244 m_softwareSetUpdateScheduleHasBeenSet = true;
245 m_softwareSetUpdateSchedule = value;
246 }
252
254
258 inline DeviceSoftwareSetComplianceStatus GetSoftwareSetComplianceStatus() const { return m_softwareSetComplianceStatus; }
259 inline bool SoftwareSetComplianceStatusHasBeenSet() const { return m_softwareSetComplianceStatusHasBeenSet; }
261 m_softwareSetComplianceStatusHasBeenSet = true;
262 m_softwareSetComplianceStatus = value;
263 }
269
271
274 inline SoftwareSetUpdateStatus GetSoftwareSetUpdateStatus() const { return m_softwareSetUpdateStatus; }
275 inline bool SoftwareSetUpdateStatusHasBeenSet() const { return m_softwareSetUpdateStatusHasBeenSet; }
277 m_softwareSetUpdateStatusHasBeenSet = true;
278 m_softwareSetUpdateStatus = value;
279 }
282 return *this;
283 }
285
287
290 inline const Aws::Utils::DateTime& GetLastConnectedAt() const { return m_lastConnectedAt; }
291 inline bool LastConnectedAtHasBeenSet() const { return m_lastConnectedAtHasBeenSet; }
292 template <typename LastConnectedAtT = Aws::Utils::DateTime>
293 void SetLastConnectedAt(LastConnectedAtT&& value) {
294 m_lastConnectedAtHasBeenSet = true;
295 m_lastConnectedAt = std::forward<LastConnectedAtT>(value);
296 }
297 template <typename LastConnectedAtT = Aws::Utils::DateTime>
298 Device& WithLastConnectedAt(LastConnectedAtT&& value) {
299 SetLastConnectedAt(std::forward<LastConnectedAtT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Utils::DateTime& GetLastPostureAt() const { return m_lastPostureAt; }
309 inline bool LastPostureAtHasBeenSet() const { return m_lastPostureAtHasBeenSet; }
310 template <typename LastPostureAtT = Aws::Utils::DateTime>
311 void SetLastPostureAt(LastPostureAtT&& value) {
312 m_lastPostureAtHasBeenSet = true;
313 m_lastPostureAt = std::forward<LastPostureAtT>(value);
314 }
315 template <typename LastPostureAtT = Aws::Utils::DateTime>
316 Device& WithLastPostureAt(LastPostureAtT&& value) {
317 SetLastPostureAt(std::forward<LastPostureAtT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
327 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
328 template <typename CreatedAtT = Aws::Utils::DateTime>
329 void SetCreatedAt(CreatedAtT&& value) {
330 m_createdAtHasBeenSet = true;
331 m_createdAt = std::forward<CreatedAtT>(value);
332 }
333 template <typename CreatedAtT = Aws::Utils::DateTime>
334 Device& WithCreatedAt(CreatedAtT&& value) {
335 SetCreatedAt(std::forward<CreatedAtT>(value));
336 return *this;
337 }
339
341
344 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
345 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
346 template <typename UpdatedAtT = Aws::Utils::DateTime>
347 void SetUpdatedAt(UpdatedAtT&& value) {
348 m_updatedAtHasBeenSet = true;
349 m_updatedAt = std::forward<UpdatedAtT>(value);
350 }
351 template <typename UpdatedAtT = Aws::Utils::DateTime>
352 Device& WithUpdatedAt(UpdatedAtT&& value) {
353 SetUpdatedAt(std::forward<UpdatedAtT>(value));
354 return *this;
355 }
357
359
362 inline const Aws::String& GetArn() const { return m_arn; }
363 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
364 template <typename ArnT = Aws::String>
365 void SetArn(ArnT&& value) {
366 m_arnHasBeenSet = true;
367 m_arn = std::forward<ArnT>(value);
368 }
369 template <typename ArnT = Aws::String>
370 Device& WithArn(ArnT&& value) {
371 SetArn(std::forward<ArnT>(value));
372 return *this;
373 }
375
377
381 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
382 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
383 template <typename KmsKeyArnT = Aws::String>
384 void SetKmsKeyArn(KmsKeyArnT&& value) {
385 m_kmsKeyArnHasBeenSet = true;
386 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
387 }
388 template <typename KmsKeyArnT = Aws::String>
389 Device& WithKmsKeyArn(KmsKeyArnT&& value) {
390 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
391 return *this;
392 }
394
396
399 inline const Aws::String& GetLastUserId() const { return m_lastUserId; }
400 inline bool LastUserIdHasBeenSet() const { return m_lastUserIdHasBeenSet; }
401 template <typename LastUserIdT = Aws::String>
402 void SetLastUserId(LastUserIdT&& value) {
403 m_lastUserIdHasBeenSet = true;
404 m_lastUserId = std::forward<LastUserIdT>(value);
405 }
406 template <typename LastUserIdT = Aws::String>
407 Device& WithLastUserId(LastUserIdT&& value) {
408 SetLastUserId(std::forward<LastUserIdT>(value));
409 return *this;
410 }
412 private:
413 Aws::String m_id;
414
415 Aws::String m_serialNumber;
416
417 Aws::String m_name;
418
419 Aws::String m_model;
420
421 Aws::String m_environmentId;
422
424
425 Aws::String m_currentSoftwareSetId;
426
427 Aws::String m_currentSoftwareSetVersion;
428
429 Aws::String m_desiredSoftwareSetId;
430
431 Aws::String m_pendingSoftwareSetId;
432
433 Aws::String m_pendingSoftwareSetVersion;
434
436
438
440
441 Aws::Utils::DateTime m_lastConnectedAt{};
442
443 Aws::Utils::DateTime m_lastPostureAt{};
444
445 Aws::Utils::DateTime m_createdAt{};
446
447 Aws::Utils::DateTime m_updatedAt{};
448
449 Aws::String m_arn;
450
451 Aws::String m_kmsKeyArn;
452
453 Aws::String m_lastUserId;
454 bool m_idHasBeenSet = false;
455 bool m_serialNumberHasBeenSet = false;
456 bool m_nameHasBeenSet = false;
457 bool m_modelHasBeenSet = false;
458 bool m_environmentIdHasBeenSet = false;
459 bool m_statusHasBeenSet = false;
460 bool m_currentSoftwareSetIdHasBeenSet = false;
461 bool m_currentSoftwareSetVersionHasBeenSet = false;
462 bool m_desiredSoftwareSetIdHasBeenSet = false;
463 bool m_pendingSoftwareSetIdHasBeenSet = false;
464 bool m_pendingSoftwareSetVersionHasBeenSet = false;
465 bool m_softwareSetUpdateScheduleHasBeenSet = false;
466 bool m_softwareSetComplianceStatusHasBeenSet = false;
467 bool m_softwareSetUpdateStatusHasBeenSet = false;
468 bool m_lastConnectedAtHasBeenSet = false;
469 bool m_lastPostureAtHasBeenSet = false;
470 bool m_createdAtHasBeenSet = false;
471 bool m_updatedAtHasBeenSet = false;
472 bool m_arnHasBeenSet = false;
473 bool m_kmsKeyArnHasBeenSet = false;
474 bool m_lastUserIdHasBeenSet = false;
475};
476
477} // namespace Model
478} // namespace WorkSpacesThinClient
479} // namespace Aws
Device & WithSoftwareSetComplianceStatus(DeviceSoftwareSetComplianceStatus value)
Definition Device.h:264
void SetPendingSoftwareSetVersion(PendingSoftwareSetVersionT &&value)
Definition Device.h:225
Device & WithPendingSoftwareSetId(PendingSoftwareSetIdT &&value)
Definition Device.h:211
void SetSoftwareSetUpdateStatus(SoftwareSetUpdateStatus value)
Definition Device.h:276
const Aws::String & GetModel() const
Definition Device.h:97
Device & WithDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
Definition Device.h:193
const Aws::String & GetName() const
Definition Device.h:79
const Aws::String & GetCurrentSoftwareSetVersion() const
Definition Device.h:167
Device & WithCurrentSoftwareSetId(CurrentSoftwareSetIdT &&value)
Definition Device.h:157
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Device.h:118
void SetLastConnectedAt(LastConnectedAtT &&value)
Definition Device.h:293
const Aws::String & GetPendingSoftwareSetVersion() const
Definition Device.h:222
void SetLastUserId(LastUserIdT &&value)
Definition Device.h:402
Device & WithPendingSoftwareSetVersion(PendingSoftwareSetVersionT &&value)
Definition Device.h:230
const Aws::String & GetPendingSoftwareSetId() const
Definition Device.h:203
void SetLastPostureAt(LastPostureAtT &&value)
Definition Device.h:311
DeviceSoftwareSetComplianceStatus GetSoftwareSetComplianceStatus() const
Definition Device.h:258
AWS_WORKSPACESTHINCLIENT_API Device()=default
Device & WithSerialNumber(SerialNumberT &&value)
Definition Device.h:69
AWS_WORKSPACESTHINCLIENT_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSerialNumber(SerialNumberT &&value)
Definition Device.h:64
const Aws::String & GetLastUserId() const
Definition Device.h:399
const Aws::String & GetKmsKeyArn() const
Definition Device.h:381
Device & WithModel(ModelT &&value)
Definition Device.h:105
void SetStatus(DeviceStatus value)
Definition Device.h:135
const Aws::String & GetDesiredSoftwareSetId() const
Definition Device.h:185
Device & WithEnvironmentId(EnvironmentIdT &&value)
Definition Device.h:123
Device & WithCurrentSoftwareSetVersion(CurrentSoftwareSetVersionT &&value)
Definition Device.h:175
Device & WithLastPostureAt(LastPostureAtT &&value)
Definition Device.h:316
Device & WithKmsKeyArn(KmsKeyArnT &&value)
Definition Device.h:389
SoftwareSetUpdateStatus GetSoftwareSetUpdateStatus() const
Definition Device.h:274
const Aws::String & GetId() const
Definition Device.h:43
Device & WithStatus(DeviceStatus value)
Definition Device.h:139
void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
Definition Device.h:188
const Aws::Utils::DateTime & GetLastConnectedAt() const
Definition Device.h:290
Device & WithArn(ArnT &&value)
Definition Device.h:370
SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const
Definition Device.h:241
Device & WithLastUserId(LastUserIdT &&value)
Definition Device.h:407
bool SoftwareSetComplianceStatusHasBeenSet() const
Definition Device.h:259
const Aws::String & GetSerialNumber() const
Definition Device.h:61
Device & WithCreatedAt(CreatedAtT &&value)
Definition Device.h:334
Device & WithSoftwareSetUpdateStatus(SoftwareSetUpdateStatus value)
Definition Device.h:280
Device & WithUpdatedAt(UpdatedAtT &&value)
Definition Device.h:352
AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastPostureAt() const
Definition Device.h:308
const Aws::String & GetEnvironmentId() const
Definition Device.h:115
void SetSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
Definition Device.h:243
Device & WithSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
Definition Device.h:247
Device & WithLastConnectedAt(LastConnectedAtT &&value)
Definition Device.h:298
const Aws::String & GetArn() const
Definition Device.h:362
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition Device.h:384
void SetSoftwareSetComplianceStatus(DeviceSoftwareSetComplianceStatus value)
Definition Device.h:260
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Device.h:326
void SetCurrentSoftwareSetVersion(CurrentSoftwareSetVersionT &&value)
Definition Device.h:170
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Device.h:344
void SetCreatedAt(CreatedAtT &&value)
Definition Device.h:329
const Aws::String & GetCurrentSoftwareSetId() const
Definition Device.h:149
void SetPendingSoftwareSetId(PendingSoftwareSetIdT &&value)
Definition Device.h:206
Device & WithName(NameT &&value)
Definition Device.h:87
AWS_WORKSPACESTHINCLIENT_API Device(Aws::Utils::Json::JsonView jsonValue)
void SetCurrentSoftwareSetId(CurrentSoftwareSetIdT &&value)
Definition Device.h:152
void SetUpdatedAt(UpdatedAtT &&value)
Definition Device.h:347
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue