AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspacesPool.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/workspaces/WorkSpaces_EXPORTS.h>
12#include <aws/workspaces/model/ApplicationSettingsResponse.h>
13#include <aws/workspaces/model/CapacityStatus.h>
14#include <aws/workspaces/model/PoolsRunningMode.h>
15#include <aws/workspaces/model/TimeoutSettings.h>
16#include <aws/workspaces/model/WorkspacesPoolError.h>
17#include <aws/workspaces/model/WorkspacesPoolState.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace WorkSpaces {
28namespace Model {
29
36 public:
37 AWS_WORKSPACES_API WorkspacesPool() = default;
38 AWS_WORKSPACES_API WorkspacesPool(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API WorkspacesPool& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline const Aws::String& GetPoolId() const { return m_poolId; }
47 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
48 template <typename PoolIdT = Aws::String>
49 void SetPoolId(PoolIdT&& value) {
50 m_poolIdHasBeenSet = true;
51 m_poolId = std::forward<PoolIdT>(value);
52 }
53 template <typename PoolIdT = Aws::String>
54 WorkspacesPool& WithPoolId(PoolIdT&& value) {
55 SetPoolId(std::forward<PoolIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetPoolArn() const { return m_poolArn; }
65 inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; }
66 template <typename PoolArnT = Aws::String>
67 void SetPoolArn(PoolArnT&& value) {
68 m_poolArnHasBeenSet = true;
69 m_poolArn = std::forward<PoolArnT>(value);
70 }
71 template <typename PoolArnT = Aws::String>
72 WorkspacesPool& WithPoolArn(PoolArnT&& value) {
73 SetPoolArn(std::forward<PoolArnT>(value));
74 return *this;
75 }
77
79
82 inline const CapacityStatus& GetCapacityStatus() const { return m_capacityStatus; }
83 inline bool CapacityStatusHasBeenSet() const { return m_capacityStatusHasBeenSet; }
84 template <typename CapacityStatusT = CapacityStatus>
85 void SetCapacityStatus(CapacityStatusT&& value) {
86 m_capacityStatusHasBeenSet = true;
87 m_capacityStatus = std::forward<CapacityStatusT>(value);
88 }
89 template <typename CapacityStatusT = CapacityStatus>
90 WorkspacesPool& WithCapacityStatus(CapacityStatusT&& value) {
91 SetCapacityStatus(std::forward<CapacityStatusT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetPoolName() const { return m_poolName; }
101 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
102 template <typename PoolNameT = Aws::String>
103 void SetPoolName(PoolNameT&& value) {
104 m_poolNameHasBeenSet = true;
105 m_poolName = std::forward<PoolNameT>(value);
106 }
107 template <typename PoolNameT = Aws::String>
108 WorkspacesPool& WithPoolName(PoolNameT&& value) {
109 SetPoolName(std::forward<PoolNameT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template <typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) {
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
126 WorkspacesPool& WithDescription(DescriptionT&& value) {
127 SetDescription(std::forward<DescriptionT>(value));
128 return *this;
129 }
131
133
136 inline WorkspacesPoolState GetState() const { return m_state; }
137 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 inline void SetState(WorkspacesPoolState value) {
139 m_stateHasBeenSet = true;
140 m_state = value;
141 }
143 SetState(value);
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
153 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
154 template <typename CreatedAtT = Aws::Utils::DateTime>
155 void SetCreatedAt(CreatedAtT&& value) {
156 m_createdAtHasBeenSet = true;
157 m_createdAt = std::forward<CreatedAtT>(value);
158 }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
160 WorkspacesPool& WithCreatedAt(CreatedAtT&& value) {
161 SetCreatedAt(std::forward<CreatedAtT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetBundleId() const { return m_bundleId; }
171 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
172 template <typename BundleIdT = Aws::String>
173 void SetBundleId(BundleIdT&& value) {
174 m_bundleIdHasBeenSet = true;
175 m_bundleId = std::forward<BundleIdT>(value);
176 }
177 template <typename BundleIdT = Aws::String>
178 WorkspacesPool& WithBundleId(BundleIdT&& value) {
179 SetBundleId(std::forward<BundleIdT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
189 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
190 template <typename DirectoryIdT = Aws::String>
191 void SetDirectoryId(DirectoryIdT&& value) {
192 m_directoryIdHasBeenSet = true;
193 m_directoryId = std::forward<DirectoryIdT>(value);
194 }
195 template <typename DirectoryIdT = Aws::String>
196 WorkspacesPool& WithDirectoryId(DirectoryIdT&& value) {
197 SetDirectoryId(std::forward<DirectoryIdT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Vector<WorkspacesPoolError>& GetErrors() const { return m_errors; }
207 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
208 template <typename ErrorsT = Aws::Vector<WorkspacesPoolError>>
209 void SetErrors(ErrorsT&& value) {
210 m_errorsHasBeenSet = true;
211 m_errors = std::forward<ErrorsT>(value);
212 }
213 template <typename ErrorsT = Aws::Vector<WorkspacesPoolError>>
214 WorkspacesPool& WithErrors(ErrorsT&& value) {
215 SetErrors(std::forward<ErrorsT>(value));
216 return *this;
217 }
218 template <typename ErrorsT = WorkspacesPoolError>
219 WorkspacesPool& AddErrors(ErrorsT&& value) {
220 m_errorsHasBeenSet = true;
221 m_errors.emplace_back(std::forward<ErrorsT>(value));
222 return *this;
223 }
225
227
230 inline const ApplicationSettingsResponse& GetApplicationSettings() const { return m_applicationSettings; }
231 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
232 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
233 void SetApplicationSettings(ApplicationSettingsT&& value) {
234 m_applicationSettingsHasBeenSet = true;
235 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
236 }
237 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
238 WorkspacesPool& WithApplicationSettings(ApplicationSettingsT&& value) {
239 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
240 return *this;
241 }
243
245
252 inline const TimeoutSettings& GetTimeoutSettings() const { return m_timeoutSettings; }
253 inline bool TimeoutSettingsHasBeenSet() const { return m_timeoutSettingsHasBeenSet; }
254 template <typename TimeoutSettingsT = TimeoutSettings>
255 void SetTimeoutSettings(TimeoutSettingsT&& value) {
256 m_timeoutSettingsHasBeenSet = true;
257 m_timeoutSettings = std::forward<TimeoutSettingsT>(value);
258 }
259 template <typename TimeoutSettingsT = TimeoutSettings>
260 WorkspacesPool& WithTimeoutSettings(TimeoutSettingsT&& value) {
261 SetTimeoutSettings(std::forward<TimeoutSettingsT>(value));
262 return *this;
263 }
265
267
270 inline PoolsRunningMode GetRunningMode() const { return m_runningMode; }
271 inline bool RunningModeHasBeenSet() const { return m_runningModeHasBeenSet; }
272 inline void SetRunningMode(PoolsRunningMode value) {
273 m_runningModeHasBeenSet = true;
274 m_runningMode = value;
275 }
277 SetRunningMode(value);
278 return *this;
279 }
281 private:
282 Aws::String m_poolId;
283
284 Aws::String m_poolArn;
285
286 CapacityStatus m_capacityStatus;
287
288 Aws::String m_poolName;
289
290 Aws::String m_description;
291
293
294 Aws::Utils::DateTime m_createdAt{};
295
296 Aws::String m_bundleId;
297
298 Aws::String m_directoryId;
299
301
302 ApplicationSettingsResponse m_applicationSettings;
303
304 TimeoutSettings m_timeoutSettings;
305
307 bool m_poolIdHasBeenSet = false;
308 bool m_poolArnHasBeenSet = false;
309 bool m_capacityStatusHasBeenSet = false;
310 bool m_poolNameHasBeenSet = false;
311 bool m_descriptionHasBeenSet = false;
312 bool m_stateHasBeenSet = false;
313 bool m_createdAtHasBeenSet = false;
314 bool m_bundleIdHasBeenSet = false;
315 bool m_directoryIdHasBeenSet = false;
316 bool m_errorsHasBeenSet = false;
317 bool m_applicationSettingsHasBeenSet = false;
318 bool m_timeoutSettingsHasBeenSet = false;
319 bool m_runningModeHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace WorkSpaces
324} // namespace Aws
WorkspacesPoolState GetState() const
WorkspacesPool & WithDescription(DescriptionT &&value)
WorkspacesPool & WithErrors(ErrorsT &&value)
const Aws::Vector< WorkspacesPoolError > & GetErrors() const
WorkspacesPool & WithApplicationSettings(ApplicationSettingsT &&value)
WorkspacesPool & WithTimeoutSettings(TimeoutSettingsT &&value)
const TimeoutSettings & GetTimeoutSettings() const
const Aws::Utils::DateTime & GetCreatedAt() const
WorkspacesPool & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
WorkspacesPool & WithCapacityStatus(CapacityStatusT &&value)
WorkspacesPool & WithPoolName(PoolNameT &&value)
void SetTimeoutSettings(TimeoutSettingsT &&value)
void SetState(WorkspacesPoolState value)
PoolsRunningMode GetRunningMode() const
const Aws::String & GetPoolName() const
WorkspacesPool & WithState(WorkspacesPoolState value)
void SetApplicationSettings(ApplicationSettingsT &&value)
const Aws::String & GetBundleId() const
const Aws::String & GetPoolId() const
const Aws::String & GetPoolArn() const
AWS_WORKSPACES_API WorkspacesPool & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetCapacityStatus(CapacityStatusT &&value)
const Aws::String & GetDescription() const
WorkspacesPool & AddErrors(ErrorsT &&value)
void SetRunningMode(PoolsRunningMode value)
WorkspacesPool & WithPoolId(PoolIdT &&value)
WorkspacesPool & WithPoolArn(PoolArnT &&value)
void SetDescription(DescriptionT &&value)
AWS_WORKSPACES_API WorkspacesPool(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDirectoryId() const
WorkspacesPool & WithBundleId(BundleIdT &&value)
const ApplicationSettingsResponse & GetApplicationSettings() const
WorkspacesPool & WithDirectoryId(DirectoryIdT &&value)
void SetDirectoryId(DirectoryIdT &&value)
WorkspacesPool & WithRunningMode(PoolsRunningMode value)
AWS_WORKSPACES_API WorkspacesPool()=default
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const CapacityStatus & GetCapacityStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector