AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
EnvironmentSummary.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/DesktopType.h>
11#include <aws/workspaces-thin-client/model/MaintenanceWindow.h>
12#include <aws/workspaces-thin-client/model/SoftwareSetUpdateMode.h>
13#include <aws/workspaces-thin-client/model/SoftwareSetUpdateSchedule.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
33 public:
34 AWS_WORKSPACESTHINCLIENT_API EnvironmentSummary() = default;
35 AWS_WORKSPACESTHINCLIENT_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKSPACESTHINCLIENT_API EnvironmentSummary& 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 EnvironmentSummary& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 EnvironmentSummary& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDesktopArn() const { return m_desktopArn; }
81 inline bool DesktopArnHasBeenSet() const { return m_desktopArnHasBeenSet; }
82 template <typename DesktopArnT = Aws::String>
83 void SetDesktopArn(DesktopArnT&& value) {
84 m_desktopArnHasBeenSet = true;
85 m_desktopArn = std::forward<DesktopArnT>(value);
86 }
87 template <typename DesktopArnT = Aws::String>
88 EnvironmentSummary& WithDesktopArn(DesktopArnT&& value) {
89 SetDesktopArn(std::forward<DesktopArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDesktopEndpoint() const { return m_desktopEndpoint; }
100 inline bool DesktopEndpointHasBeenSet() const { return m_desktopEndpointHasBeenSet; }
101 template <typename DesktopEndpointT = Aws::String>
102 void SetDesktopEndpoint(DesktopEndpointT&& value) {
103 m_desktopEndpointHasBeenSet = true;
104 m_desktopEndpoint = std::forward<DesktopEndpointT>(value);
105 }
106 template <typename DesktopEndpointT = Aws::String>
107 EnvironmentSummary& WithDesktopEndpoint(DesktopEndpointT&& value) {
108 SetDesktopEndpoint(std::forward<DesktopEndpointT>(value));
109 return *this;
110 }
112
114
117 inline DesktopType GetDesktopType() const { return m_desktopType; }
118 inline bool DesktopTypeHasBeenSet() const { return m_desktopTypeHasBeenSet; }
119 inline void SetDesktopType(DesktopType value) {
120 m_desktopTypeHasBeenSet = true;
121 m_desktopType = value;
122 }
124 SetDesktopType(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetActivationCode() const { return m_activationCode; }
134 inline bool ActivationCodeHasBeenSet() const { return m_activationCodeHasBeenSet; }
135 template <typename ActivationCodeT = Aws::String>
136 void SetActivationCode(ActivationCodeT&& value) {
137 m_activationCodeHasBeenSet = true;
138 m_activationCode = std::forward<ActivationCodeT>(value);
139 }
140 template <typename ActivationCodeT = Aws::String>
141 EnvironmentSummary& WithActivationCode(ActivationCodeT&& value) {
142 SetActivationCode(std::forward<ActivationCodeT>(value));
143 return *this;
144 }
146
148
152 inline SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const { return m_softwareSetUpdateSchedule; }
153 inline bool SoftwareSetUpdateScheduleHasBeenSet() const { return m_softwareSetUpdateScheduleHasBeenSet; }
155 m_softwareSetUpdateScheduleHasBeenSet = true;
156 m_softwareSetUpdateSchedule = value;
157 }
163
165
168 inline const MaintenanceWindow& GetMaintenanceWindow() const { return m_maintenanceWindow; }
169 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
170 template <typename MaintenanceWindowT = MaintenanceWindow>
171 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
172 m_maintenanceWindowHasBeenSet = true;
173 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
174 }
175 template <typename MaintenanceWindowT = MaintenanceWindow>
176 EnvironmentSummary& WithMaintenanceWindow(MaintenanceWindowT&& value) {
177 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
178 return *this;
179 }
181
183
186 inline SoftwareSetUpdateMode GetSoftwareSetUpdateMode() const { return m_softwareSetUpdateMode; }
187 inline bool SoftwareSetUpdateModeHasBeenSet() const { return m_softwareSetUpdateModeHasBeenSet; }
189 m_softwareSetUpdateModeHasBeenSet = true;
190 m_softwareSetUpdateMode = value;
191 }
197
199
202 inline const Aws::String& GetDesiredSoftwareSetId() const { return m_desiredSoftwareSetId; }
203 inline bool DesiredSoftwareSetIdHasBeenSet() const { return m_desiredSoftwareSetIdHasBeenSet; }
204 template <typename DesiredSoftwareSetIdT = Aws::String>
205 void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
206 m_desiredSoftwareSetIdHasBeenSet = true;
207 m_desiredSoftwareSetId = std::forward<DesiredSoftwareSetIdT>(value);
208 }
209 template <typename DesiredSoftwareSetIdT = Aws::String>
210 EnvironmentSummary& WithDesiredSoftwareSetId(DesiredSoftwareSetIdT&& value) {
211 SetDesiredSoftwareSetId(std::forward<DesiredSoftwareSetIdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetPendingSoftwareSetId() const { return m_pendingSoftwareSetId; }
221 inline bool PendingSoftwareSetIdHasBeenSet() const { return m_pendingSoftwareSetIdHasBeenSet; }
222 template <typename PendingSoftwareSetIdT = Aws::String>
223 void SetPendingSoftwareSetId(PendingSoftwareSetIdT&& value) {
224 m_pendingSoftwareSetIdHasBeenSet = true;
225 m_pendingSoftwareSetId = std::forward<PendingSoftwareSetIdT>(value);
226 }
227 template <typename PendingSoftwareSetIdT = Aws::String>
228 EnvironmentSummary& WithPendingSoftwareSetId(PendingSoftwareSetIdT&& value) {
229 SetPendingSoftwareSetId(std::forward<PendingSoftwareSetIdT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
239 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
240 template <typename CreatedAtT = Aws::Utils::DateTime>
241 void SetCreatedAt(CreatedAtT&& value) {
242 m_createdAtHasBeenSet = true;
243 m_createdAt = std::forward<CreatedAtT>(value);
244 }
245 template <typename CreatedAtT = Aws::Utils::DateTime>
246 EnvironmentSummary& WithCreatedAt(CreatedAtT&& value) {
247 SetCreatedAt(std::forward<CreatedAtT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
257 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
258 template <typename UpdatedAtT = Aws::Utils::DateTime>
259 void SetUpdatedAt(UpdatedAtT&& value) {
260 m_updatedAtHasBeenSet = true;
261 m_updatedAt = std::forward<UpdatedAtT>(value);
262 }
263 template <typename UpdatedAtT = Aws::Utils::DateTime>
264 EnvironmentSummary& WithUpdatedAt(UpdatedAtT&& value) {
265 SetUpdatedAt(std::forward<UpdatedAtT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetArn() const { return m_arn; }
275 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
276 template <typename ArnT = Aws::String>
277 void SetArn(ArnT&& value) {
278 m_arnHasBeenSet = true;
279 m_arn = std::forward<ArnT>(value);
280 }
281 template <typename ArnT = Aws::String>
283 SetArn(std::forward<ArnT>(value));
284 return *this;
285 }
287 private:
288 Aws::String m_id;
289
290 Aws::String m_name;
291
292 Aws::String m_desktopArn;
293
294 Aws::String m_desktopEndpoint;
295
296 DesktopType m_desktopType{DesktopType::NOT_SET};
297
298 Aws::String m_activationCode;
299
301
302 MaintenanceWindow m_maintenanceWindow;
303
305
306 Aws::String m_desiredSoftwareSetId;
307
308 Aws::String m_pendingSoftwareSetId;
309
310 Aws::Utils::DateTime m_createdAt{};
311
312 Aws::Utils::DateTime m_updatedAt{};
313
314 Aws::String m_arn;
315 bool m_idHasBeenSet = false;
316 bool m_nameHasBeenSet = false;
317 bool m_desktopArnHasBeenSet = false;
318 bool m_desktopEndpointHasBeenSet = false;
319 bool m_desktopTypeHasBeenSet = false;
320 bool m_activationCodeHasBeenSet = false;
321 bool m_softwareSetUpdateScheduleHasBeenSet = false;
322 bool m_maintenanceWindowHasBeenSet = false;
323 bool m_softwareSetUpdateModeHasBeenSet = false;
324 bool m_desiredSoftwareSetIdHasBeenSet = false;
325 bool m_pendingSoftwareSetIdHasBeenSet = false;
326 bool m_createdAtHasBeenSet = false;
327 bool m_updatedAtHasBeenSet = false;
328 bool m_arnHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace WorkSpacesThinClient
333} // namespace Aws
AWS_WORKSPACESTHINCLIENT_API EnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSoftwareSetUpdateMode(SoftwareSetUpdateMode value)
EnvironmentSummary & WithMaintenanceWindow(MaintenanceWindowT &&value)
void SetSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
EnvironmentSummary & WithSoftwareSetUpdateSchedule(SoftwareSetUpdateSchedule value)
EnvironmentSummary & WithPendingSoftwareSetId(PendingSoftwareSetIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_WORKSPACESTHINCLIENT_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentSummary & WithDesktopArn(DesktopArnT &&value)
AWS_WORKSPACESTHINCLIENT_API EnvironmentSummary()=default
void SetDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
SoftwareSetUpdateSchedule GetSoftwareSetUpdateSchedule() const
EnvironmentSummary & WithDesktopType(DesktopType value)
EnvironmentSummary & WithSoftwareSetUpdateMode(SoftwareSetUpdateMode value)
void SetPendingSoftwareSetId(PendingSoftwareSetIdT &&value)
EnvironmentSummary & WithDesktopEndpoint(DesktopEndpointT &&value)
EnvironmentSummary & WithCreatedAt(CreatedAtT &&value)
AWS_WORKSPACESTHINCLIENT_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
EnvironmentSummary & WithActivationCode(ActivationCodeT &&value)
EnvironmentSummary & WithDesiredSoftwareSetId(DesiredSoftwareSetIdT &&value)
EnvironmentSummary & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue