AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkspacesPool.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/CapacityStatus.h>
10#include <aws/workspaces/model/WorkspacesPoolState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/workspaces/model/ApplicationSettingsResponse.h>
14#include <aws/workspaces/model/TimeoutSettings.h>
15#include <aws/workspaces/model/PoolsRunningMode.h>
16#include <aws/workspaces/model/WorkspacesPoolError.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace WorkSpaces
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_WORKSPACES_API WorkspacesPool() = default;
43 AWS_WORKSPACES_API WorkspacesPool(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WORKSPACES_API WorkspacesPool& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetPoolId() const { return m_poolId; }
53 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
54 template<typename PoolIdT = Aws::String>
55 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
56 template<typename PoolIdT = Aws::String>
57 WorkspacesPool& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
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) { m_poolArnHasBeenSet = true; m_poolArn = std::forward<PoolArnT>(value); }
68 template<typename PoolArnT = Aws::String>
69 WorkspacesPool& WithPoolArn(PoolArnT&& value) { SetPoolArn(std::forward<PoolArnT>(value)); return *this;}
71
73
76 inline const CapacityStatus& GetCapacityStatus() const { return m_capacityStatus; }
77 inline bool CapacityStatusHasBeenSet() const { return m_capacityStatusHasBeenSet; }
78 template<typename CapacityStatusT = CapacityStatus>
79 void SetCapacityStatus(CapacityStatusT&& value) { m_capacityStatusHasBeenSet = true; m_capacityStatus = std::forward<CapacityStatusT>(value); }
80 template<typename CapacityStatusT = CapacityStatus>
81 WorkspacesPool& WithCapacityStatus(CapacityStatusT&& value) { SetCapacityStatus(std::forward<CapacityStatusT>(value)); return *this;}
83
85
88 inline const Aws::String& GetPoolName() const { return m_poolName; }
89 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
90 template<typename PoolNameT = Aws::String>
91 void SetPoolName(PoolNameT&& value) { m_poolNameHasBeenSet = true; m_poolName = std::forward<PoolNameT>(value); }
92 template<typename PoolNameT = Aws::String>
93 WorkspacesPool& WithPoolName(PoolNameT&& value) { SetPoolName(std::forward<PoolNameT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 WorkspacesPool& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
112 inline WorkspacesPoolState GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
114 inline void SetState(WorkspacesPoolState value) { m_stateHasBeenSet = true; m_state = value; }
115 inline WorkspacesPool& WithState(WorkspacesPoolState value) { SetState(value); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
123 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
124 template<typename CreatedAtT = Aws::Utils::DateTime>
125 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
126 template<typename CreatedAtT = Aws::Utils::DateTime>
127 WorkspacesPool& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
129
131
134 inline const Aws::String& GetBundleId() const { return m_bundleId; }
135 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
136 template<typename BundleIdT = Aws::String>
137 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
138 template<typename BundleIdT = Aws::String>
139 WorkspacesPool& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
141
143
146 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
147 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
148 template<typename DirectoryIdT = Aws::String>
149 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
150 template<typename DirectoryIdT = Aws::String>
151 WorkspacesPool& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
153
155
158 inline const Aws::Vector<WorkspacesPoolError>& GetErrors() const { return m_errors; }
159 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
160 template<typename ErrorsT = Aws::Vector<WorkspacesPoolError>>
161 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
162 template<typename ErrorsT = Aws::Vector<WorkspacesPoolError>>
163 WorkspacesPool& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
164 template<typename ErrorsT = WorkspacesPoolError>
165 WorkspacesPool& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
167
169
172 inline const ApplicationSettingsResponse& GetApplicationSettings() const { return m_applicationSettings; }
173 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
174 template<typename ApplicationSettingsT = ApplicationSettingsResponse>
175 void SetApplicationSettings(ApplicationSettingsT&& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = std::forward<ApplicationSettingsT>(value); }
176 template<typename ApplicationSettingsT = ApplicationSettingsResponse>
177 WorkspacesPool& WithApplicationSettings(ApplicationSettingsT&& value) { SetApplicationSettings(std::forward<ApplicationSettingsT>(value)); return *this;}
179
181
188 inline const TimeoutSettings& GetTimeoutSettings() const { return m_timeoutSettings; }
189 inline bool TimeoutSettingsHasBeenSet() const { return m_timeoutSettingsHasBeenSet; }
190 template<typename TimeoutSettingsT = TimeoutSettings>
191 void SetTimeoutSettings(TimeoutSettingsT&& value) { m_timeoutSettingsHasBeenSet = true; m_timeoutSettings = std::forward<TimeoutSettingsT>(value); }
192 template<typename TimeoutSettingsT = TimeoutSettings>
193 WorkspacesPool& WithTimeoutSettings(TimeoutSettingsT&& value) { SetTimeoutSettings(std::forward<TimeoutSettingsT>(value)); return *this;}
195
197
200 inline PoolsRunningMode GetRunningMode() const { return m_runningMode; }
201 inline bool RunningModeHasBeenSet() const { return m_runningModeHasBeenSet; }
202 inline void SetRunningMode(PoolsRunningMode value) { m_runningModeHasBeenSet = true; m_runningMode = value; }
203 inline WorkspacesPool& WithRunningMode(PoolsRunningMode value) { SetRunningMode(value); return *this;}
205 private:
206
207 Aws::String m_poolId;
208 bool m_poolIdHasBeenSet = false;
209
210 Aws::String m_poolArn;
211 bool m_poolArnHasBeenSet = false;
212
213 CapacityStatus m_capacityStatus;
214 bool m_capacityStatusHasBeenSet = false;
215
216 Aws::String m_poolName;
217 bool m_poolNameHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
223 bool m_stateHasBeenSet = false;
224
225 Aws::Utils::DateTime m_createdAt{};
226 bool m_createdAtHasBeenSet = false;
227
228 Aws::String m_bundleId;
229 bool m_bundleIdHasBeenSet = false;
230
231 Aws::String m_directoryId;
232 bool m_directoryIdHasBeenSet = false;
233
235 bool m_errorsHasBeenSet = false;
236
237 ApplicationSettingsResponse m_applicationSettings;
238 bool m_applicationSettingsHasBeenSet = false;
239
240 TimeoutSettings m_timeoutSettings;
241 bool m_timeoutSettingsHasBeenSet = false;
242
244 bool m_runningModeHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace WorkSpaces
249} // 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)
AWS_WORKSPACES_API WorkspacesPool(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBundleId() const
const Aws::String & GetPoolId() const
AWS_WORKSPACES_API WorkspacesPool & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPoolArn() const
void SetCapacityStatus(CapacityStatusT &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
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)
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
const CapacityStatus & GetCapacityStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue