AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Environment.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/workspaces-thin-client/WorkSpacesThinClient_EXPORTS.h>
11#include <aws/workspaces-thin-client/model/DesktopType.h>
12#include <aws/workspaces-thin-client/model/EnvironmentSoftwareSetComplianceStatus.h>
13#include <aws/workspaces-thin-client/model/MaintenanceWindow.h>
14#include <aws/workspaces-thin-client/model/SoftwareSetUpdateMode.h>
15#include <aws/workspaces-thin-client/model/SoftwareSetUpdateSchedule.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WorkSpacesThinClient {
27namespace Model {
28
35 public:
36 AWS_WORKSPACESTHINCLIENT_API Environment() = default;
37 AWS_WORKSPACESTHINCLIENT_API Environment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACESTHINCLIENT_API Environment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 Environment& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 Environment& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetDesktopArn() const { return m_desktopArn; }
83 inline bool DesktopArnHasBeenSet() const { return m_desktopArnHasBeenSet; }
84 template <typename DesktopArnT = Aws::String>
85 void SetDesktopArn(DesktopArnT&& value) {
86 m_desktopArnHasBeenSet = true;
87 m_desktopArn = std::forward<DesktopArnT>(value);
88 }
89 template <typename DesktopArnT = Aws::String>
90 Environment& WithDesktopArn(DesktopArnT&& value) {
91 SetDesktopArn(std::forward<DesktopArnT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetDesktopEndpoint() const { return m_desktopEndpoint; }
102 inline bool DesktopEndpointHasBeenSet() const { return m_desktopEndpointHasBeenSet; }
103 template <typename DesktopEndpointT = Aws::String>
104 void SetDesktopEndpoint(DesktopEndpointT&& value) {
105 m_desktopEndpointHasBeenSet = true;
106 m_desktopEndpoint = std::forward<DesktopEndpointT>(value);
107 }
108 template <typename DesktopEndpointT = Aws::String>
109 Environment& WithDesktopEndpoint(DesktopEndpointT&& value) {
110 SetDesktopEndpoint(std::forward<DesktopEndpointT>(value));
111 return *this;
112 }
114
116
119 inline DesktopType GetDesktopType() const { return m_desktopType; }
120 inline bool DesktopTypeHasBeenSet() const { return m_desktopTypeHasBeenSet; }
121 inline void SetDesktopType(DesktopType value) {
122 m_desktopTypeHasBeenSet = true;
123 m_desktopType = value;
124 }
126 SetDesktopType(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetActivationCode() const { return m_activationCode; }
136 inline bool ActivationCodeHasBeenSet() const { return m_activationCodeHasBeenSet; }
137 template <typename ActivationCodeT = Aws::String>
138 void SetActivationCode(ActivationCodeT&& value) {
139 m_activationCodeHasBeenSet = true;
140 m_activationCode = std::forward<ActivationCodeT>(value);
141 }
142 template <typename ActivationCodeT = Aws::String>
143 Environment& WithActivationCode(ActivationCodeT&& value) {
144 SetActivationCode(std::forward<ActivationCodeT>(value));
145 return *this;
146 }
148
150
153 inline int GetRegisteredDevicesCount() const { return m_registeredDevicesCount; }
154 inline bool RegisteredDevicesCountHasBeenSet() const { return m_registeredDevicesCountHasBeenSet; }
155 inline void SetRegisteredDevicesCount(int value) {
156 m_registeredDevicesCountHasBeenSet = true;
157 m_registeredDevicesCount = value;
158 }
161 return *this;
162 }
164
166
170 inline SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const { return m_softwareSetUpdateSchedule; }
171 inline bool SoftwareSetUpdateScheduleHasBeenSet() const { return m_softwareSetUpdateScheduleHasBeenSet; }
173 m_softwareSetUpdateScheduleHasBeenSet = true;
174 m_softwareSetUpdateSchedule = value;
175 }
181
183
186 inline const MaintenanceWindow& GetMaintenanceWindow() const { return m_maintenanceWindow; }
187 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
188 template <typename MaintenanceWindowT = MaintenanceWindow>
189 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
190 m_maintenanceWindowHasBeenSet = true;
191 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
192 }
193 template <typename MaintenanceWindowT = MaintenanceWindow>
194 Environment& WithMaintenanceWindow(MaintenanceWindowT&& value) {
195 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
196 return *this;
197 }
199
201
204 inline SoftwareSetUpdateMode GetSoftwareSetUpdateMode() const { return m_softwareSetUpdateMode; }
205 inline bool SoftwareSetUpdateModeHasBeenSet() const { return m_softwareSetUpdateModeHasBeenSet; }
207 m_softwareSetUpdateModeHasBeenSet = true;
208 m_softwareSetUpdateMode = value;
209 }
212 return *this;
213 }
215
217
220 inline const Aws::String& GetDesiredSoftwareSetId() const { return m_desiredSoftwareSetId; }
221 inline bool DesiredSoftwareSetIdHasBeenSet() const { return m_desiredSoftwareSetIdHasBeenSet; }
222 template <typename DesiredSoftwareSetIdT = Aws::String>
223 void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
224 m_desiredSoftwareSetIdHasBeenSet = true;
225 m_desiredSoftwareSetId = std::forward<DesiredSoftwareSetIdT>(value);
226 }
227 template <typename DesiredSoftwareSetIdT = Aws::String>
228 Environment& WithDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
229 SetDesiredSoftwareSetId(std::forward<DesiredSoftwareSetIdT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetPendingSoftwareSetId() const { return m_pendingSoftwareSetId; }
239 inline bool PendingSoftwareSetIdHasBeenSet() const { return m_pendingSoftwareSetIdHasBeenSet; }
240 template <typename PendingSoftwareSetIdT = Aws::String>
241 void SetPendingSoftwareSetId(PendingSoftwareSetIdT&& value) {
242 m_pendingSoftwareSetIdHasBeenSet = true;
243 m_pendingSoftwareSetId = std::forward<PendingSoftwareSetIdT>(value);
244 }
245 template <typename PendingSoftwareSetIdT = Aws::String>
246 Environment& WithPendingSoftwareSetId(PendingSoftwareSetIdT&& value) {
247 SetPendingSoftwareSetId(std::forward<PendingSoftwareSetIdT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetPendingSoftwareSetVersion() const { return m_pendingSoftwareSetVersion; }
257 inline bool PendingSoftwareSetVersionHasBeenSet() const { return m_pendingSoftwareSetVersionHasBeenSet; }
258 template <typename PendingSoftwareSetVersionT = Aws::String>
259 void SetPendingSoftwareSetVersion(PendingSoftwareSetVersionT&& value) {
260 m_pendingSoftwareSetVersionHasBeenSet = true;
261 m_pendingSoftwareSetVersion = std::forward<PendingSoftwareSetVersionT>(value);
262 }
263 template <typename PendingSoftwareSetVersionT = Aws::String>
264 Environment& WithPendingSoftwareSetVersion(PendingSoftwareSetVersionT&& value) {
265 SetPendingSoftwareSetVersion(std::forward<PendingSoftwareSetVersionT>(value));
266 return *this;
267 }
269
271
275 inline EnvironmentSoftwareSetComplianceStatus GetSoftwareSetComplianceStatus() const { return m_softwareSetComplianceStatus; }
276 inline bool SoftwareSetComplianceStatusHasBeenSet() const { return m_softwareSetComplianceStatusHasBeenSet; }
278 m_softwareSetComplianceStatusHasBeenSet = true;
279 m_softwareSetComplianceStatus = value;
280 }
286
288
291 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
292 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
293 template <typename CreatedAtT = Aws::Utils::DateTime>
294 void SetCreatedAt(CreatedAtT&& value) {
295 m_createdAtHasBeenSet = true;
296 m_createdAt = std::forward<CreatedAtT>(value);
297 }
298 template <typename CreatedAtT = Aws::Utils::DateTime>
299 Environment& WithCreatedAt(CreatedAtT&& value) {
300 SetCreatedAt(std::forward<CreatedAtT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
310 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
311 template <typename UpdatedAtT = Aws::Utils::DateTime>
312 void SetUpdatedAt(UpdatedAtT&& value) {
313 m_updatedAtHasBeenSet = true;
314 m_updatedAt = std::forward<UpdatedAtT>(value);
315 }
316 template <typename UpdatedAtT = Aws::Utils::DateTime>
317 Environment& WithUpdatedAt(UpdatedAtT&& value) {
318 SetUpdatedAt(std::forward<UpdatedAtT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::String& GetArn() const { return m_arn; }
328 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
329 template <typename ArnT = Aws::String>
330 void SetArn(ArnT&& value) {
331 m_arnHasBeenSet = true;
332 m_arn = std::forward<ArnT>(value);
333 }
334 template <typename ArnT = Aws::String>
335 Environment& WithArn(ArnT&& value) {
336 SetArn(std::forward<ArnT>(value));
337 return *this;
338 }
340
342
346 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
347 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
348 template <typename KmsKeyArnT = Aws::String>
349 void SetKmsKeyArn(KmsKeyArnT&& value) {
350 m_kmsKeyArnHasBeenSet = true;
351 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
352 }
353 template <typename KmsKeyArnT = Aws::String>
354 Environment& WithKmsKeyArn(KmsKeyArnT&& value) {
355 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
356 return *this;
357 }
359
361
365 inline const Aws::Map<Aws::String, Aws::String>& GetDeviceCreationTags() const { return m_deviceCreationTags; }
366 inline bool DeviceCreationTagsHasBeenSet() const { return m_deviceCreationTagsHasBeenSet; }
367 template <typename DeviceCreationTagsT = Aws::Map<Aws::String, Aws::String>>
368 void SetDeviceCreationTags(DeviceCreationTagsT&& value) {
369 m_deviceCreationTagsHasBeenSet = true;
370 m_deviceCreationTags = std::forward<DeviceCreationTagsT>(value);
371 }
372 template <typename DeviceCreationTagsT = Aws::Map<Aws::String, Aws::String>>
373 Environment& WithDeviceCreationTags(DeviceCreationTagsT&& value) {
374 SetDeviceCreationTags(std::forward<DeviceCreationTagsT>(value));
375 return *this;
376 }
377 template <typename DeviceCreationTagsKeyT = Aws::String, typename DeviceCreationTagsValueT = Aws::String>
378 Environment& AddDeviceCreationTags(DeviceCreationTagsKeyT&& key, DeviceCreationTagsValueT&& value) {
379 m_deviceCreationTagsHasBeenSet = true;
380 m_deviceCreationTags.emplace(std::forward<DeviceCreationTagsKeyT>(key), std::forward<DeviceCreationTagsValueT>(value));
381 return *this;
382 }
384 private:
385 Aws::String m_id;
386
387 Aws::String m_name;
388
389 Aws::String m_desktopArn;
390
391 Aws::String m_desktopEndpoint;
392
393 DesktopType m_desktopType{DesktopType::NOT_SET};
394
395 Aws::String m_activationCode;
396
397 int m_registeredDevicesCount{0};
398
400
401 MaintenanceWindow m_maintenanceWindow;
402
404
405 Aws::String m_desiredSoftwareSetId;
406
407 Aws::String m_pendingSoftwareSetId;
408
409 Aws::String m_pendingSoftwareSetVersion;
410
412
413 Aws::Utils::DateTime m_createdAt{};
414
415 Aws::Utils::DateTime m_updatedAt{};
416
417 Aws::String m_arn;
418
419 Aws::String m_kmsKeyArn;
420
421 Aws::Map<Aws::String, Aws::String> m_deviceCreationTags;
422 bool m_idHasBeenSet = false;
423 bool m_nameHasBeenSet = false;
424 bool m_desktopArnHasBeenSet = false;
425 bool m_desktopEndpointHasBeenSet = false;
426 bool m_desktopTypeHasBeenSet = false;
427 bool m_activationCodeHasBeenSet = false;
428 bool m_registeredDevicesCountHasBeenSet = false;
429 bool m_softwareSetUpdateScheduleHasBeenSet = false;
430 bool m_maintenanceWindowHasBeenSet = false;
431 bool m_softwareSetUpdateModeHasBeenSet = false;
432 bool m_desiredSoftwareSetIdHasBeenSet = false;
433 bool m_pendingSoftwareSetIdHasBeenSet = false;
434 bool m_pendingSoftwareSetVersionHasBeenSet = false;
435 bool m_softwareSetComplianceStatusHasBeenSet = false;
436 bool m_createdAtHasBeenSet = false;
437 bool m_updatedAtHasBeenSet = false;
438 bool m_arnHasBeenSet = false;
439 bool m_kmsKeyArnHasBeenSet = false;
440 bool m_deviceCreationTagsHasBeenSet = false;
441};
442
443} // namespace Model
444} // namespace WorkSpacesThinClient
445} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetDesktopEndpoint(DesktopEndpointT &&value)
void SetSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
Environment & WithName(NameT &&value)
Definition Environment.h:71
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_WORKSPACESTHINCLIENT_API Environment(Aws::Utils::Json::JsonView jsonValue)
Environment & WithDesktopType(DesktopType value)
const Aws::String & GetPendingSoftwareSetId() const
Environment & WithSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
const Aws::String & GetDesktopEndpoint() const
const Aws::String & GetActivationCode() const
Environment & WithSoftwareSetUpdateMode(SoftwareSetUpdateMode value)
const Aws::String & GetDesktopArn() const
Definition Environment.h:82
const Aws::Map< Aws::String, Aws::String > & GetDeviceCreationTags() const
Environment & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetKmsKeyArn() const
Environment & WithSoftwareSetComplianceStatus(EnvironmentSoftwareSetComplianceStatus value)
EnvironmentSoftwareSetComplianceStatus GetSoftwareSetComplianceStatus() const
Environment & WithDesktopArn(DesktopArnT &&value)
Definition Environment.h:90
const Aws::String & GetPendingSoftwareSetVersion() const
Environment & WithDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
Environment & WithDesktopEndpoint(DesktopEndpointT &&value)
AWS_WORKSPACESTHINCLIENT_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
Environment & WithMaintenanceWindow(MaintenanceWindowT &&value)
AWS_WORKSPACESTHINCLIENT_API Environment()=default
Environment & WithUpdatedAt(UpdatedAtT &&value)
SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const
Environment & WithPendingSoftwareSetId(PendingSoftwareSetIdT &&value)
Environment & WithPendingSoftwareSetVersion(PendingSoftwareSetVersionT &&value)
void SetActivationCode(ActivationCodeT &&value)
Environment & WithRegisteredDevicesCount(int value)
SoftwareSetUpdateMode GetSoftwareSetUpdateMode() const
Environment & WithCreatedAt(CreatedAtT &&value)
void SetSoftwareSetComplianceStatus(EnvironmentSoftwareSetComplianceStatus value)
void SetDeviceCreationTags(DeviceCreationTagsT &&value)
void SetPendingSoftwareSetVersion(PendingSoftwareSetVersionT &&value)
Environment & AddDeviceCreationTags(DeviceCreationTagsKeyT &&key, DeviceCreationTagsValueT &&value)
AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const
const MaintenanceWindow & GetMaintenanceWindow() const
void SetPendingSoftwareSetId(PendingSoftwareSetIdT &&value)
void SetSoftwareSetUpdateMode(SoftwareSetUpdateMode value)
Environment & WithActivationCode(ActivationCodeT &&value)
Environment & WithDeviceCreationTags(DeviceCreationTagsT &&value)
void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
const Aws::String & GetDesiredSoftwareSetId() const
void SetMaintenanceWindow(MaintenanceWindowT &&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