AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/WorkspacesPoolError.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace WorkSpaces
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_WORKSPACES_API WorkspacesPool();
42 AWS_WORKSPACES_API WorkspacesPool(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKSPACES_API WorkspacesPool& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetPoolId() const{ return m_poolId; }
52 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
53 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
54 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
55 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
56 inline WorkspacesPool& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
57 inline WorkspacesPool& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
58 inline WorkspacesPool& WithPoolId(const char* value) { SetPoolId(value); return *this;}
60
62
65 inline const Aws::String& GetPoolArn() const{ return m_poolArn; }
66 inline bool PoolArnHasBeenSet() const { return m_poolArnHasBeenSet; }
67 inline void SetPoolArn(const Aws::String& value) { m_poolArnHasBeenSet = true; m_poolArn = value; }
68 inline void SetPoolArn(Aws::String&& value) { m_poolArnHasBeenSet = true; m_poolArn = std::move(value); }
69 inline void SetPoolArn(const char* value) { m_poolArnHasBeenSet = true; m_poolArn.assign(value); }
70 inline WorkspacesPool& WithPoolArn(const Aws::String& value) { SetPoolArn(value); return *this;}
71 inline WorkspacesPool& WithPoolArn(Aws::String&& value) { SetPoolArn(std::move(value)); return *this;}
72 inline WorkspacesPool& WithPoolArn(const char* value) { SetPoolArn(value); return *this;}
74
76
79 inline const CapacityStatus& GetCapacityStatus() const{ return m_capacityStatus; }
80 inline bool CapacityStatusHasBeenSet() const { return m_capacityStatusHasBeenSet; }
81 inline void SetCapacityStatus(const CapacityStatus& value) { m_capacityStatusHasBeenSet = true; m_capacityStatus = value; }
82 inline void SetCapacityStatus(CapacityStatus&& value) { m_capacityStatusHasBeenSet = true; m_capacityStatus = std::move(value); }
83 inline WorkspacesPool& WithCapacityStatus(const CapacityStatus& value) { SetCapacityStatus(value); return *this;}
84 inline WorkspacesPool& WithCapacityStatus(CapacityStatus&& value) { SetCapacityStatus(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetPoolName() const{ return m_poolName; }
92 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
93 inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; }
94 inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); }
95 inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); }
96 inline WorkspacesPool& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;}
97 inline WorkspacesPool& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;}
98 inline WorkspacesPool& WithPoolName(const char* value) { SetPoolName(value); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline WorkspacesPool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline WorkspacesPool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline WorkspacesPool& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline const WorkspacesPoolState& GetState() const{ return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(const WorkspacesPoolState& value) { m_stateHasBeenSet = true; m_state = value; }
122 inline void SetState(WorkspacesPoolState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
123 inline WorkspacesPool& WithState(const WorkspacesPoolState& value) { SetState(value); return *this;}
124 inline WorkspacesPool& WithState(WorkspacesPoolState&& value) { SetState(std::move(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
132 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
133 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
134 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
135 inline WorkspacesPool& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
136 inline WorkspacesPool& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
138
140
143 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
144 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
145 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
146 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
147 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
148 inline WorkspacesPool& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
149 inline WorkspacesPool& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
150 inline WorkspacesPool& WithBundleId(const char* value) { SetBundleId(value); return *this;}
152
154
157 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
158 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
159 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
160 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
161 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
162 inline WorkspacesPool& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
163 inline WorkspacesPool& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
164 inline WorkspacesPool& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
166
168
171 inline const Aws::Vector<WorkspacesPoolError>& GetErrors() const{ return m_errors; }
172 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
173 inline void SetErrors(const Aws::Vector<WorkspacesPoolError>& value) { m_errorsHasBeenSet = true; m_errors = value; }
174 inline void SetErrors(Aws::Vector<WorkspacesPoolError>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
175 inline WorkspacesPool& WithErrors(const Aws::Vector<WorkspacesPoolError>& value) { SetErrors(value); return *this;}
176 inline WorkspacesPool& WithErrors(Aws::Vector<WorkspacesPoolError>&& value) { SetErrors(std::move(value)); return *this;}
177 inline WorkspacesPool& AddErrors(const WorkspacesPoolError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
178 inline WorkspacesPool& AddErrors(WorkspacesPoolError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
180
182
185 inline const ApplicationSettingsResponse& GetApplicationSettings() const{ return m_applicationSettings; }
186 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
187 inline void SetApplicationSettings(const ApplicationSettingsResponse& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = value; }
188 inline void SetApplicationSettings(ApplicationSettingsResponse&& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = std::move(value); }
192
194
201 inline const TimeoutSettings& GetTimeoutSettings() const{ return m_timeoutSettings; }
202 inline bool TimeoutSettingsHasBeenSet() const { return m_timeoutSettingsHasBeenSet; }
203 inline void SetTimeoutSettings(const TimeoutSettings& value) { m_timeoutSettingsHasBeenSet = true; m_timeoutSettings = value; }
204 inline void SetTimeoutSettings(TimeoutSettings&& value) { m_timeoutSettingsHasBeenSet = true; m_timeoutSettings = std::move(value); }
205 inline WorkspacesPool& WithTimeoutSettings(const TimeoutSettings& value) { SetTimeoutSettings(value); return *this;}
206 inline WorkspacesPool& WithTimeoutSettings(TimeoutSettings&& value) { SetTimeoutSettings(std::move(value)); return *this;}
208 private:
209
210 Aws::String m_poolId;
211 bool m_poolIdHasBeenSet = false;
212
213 Aws::String m_poolArn;
214 bool m_poolArnHasBeenSet = false;
215
216 CapacityStatus m_capacityStatus;
217 bool m_capacityStatusHasBeenSet = false;
218
219 Aws::String m_poolName;
220 bool m_poolNameHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 WorkspacesPoolState m_state;
226 bool m_stateHasBeenSet = false;
227
228 Aws::Utils::DateTime m_createdAt;
229 bool m_createdAtHasBeenSet = false;
230
231 Aws::String m_bundleId;
232 bool m_bundleIdHasBeenSet = false;
233
234 Aws::String m_directoryId;
235 bool m_directoryIdHasBeenSet = false;
236
238 bool m_errorsHasBeenSet = false;
239
240 ApplicationSettingsResponse m_applicationSettings;
241 bool m_applicationSettingsHasBeenSet = false;
242
243 TimeoutSettings m_timeoutSettings;
244 bool m_timeoutSettingsHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace WorkSpaces
249} // namespace Aws
WorkspacesPool & WithBundleId(Aws::String &&value)
const Aws::Vector< WorkspacesPoolError > & GetErrors() const
void SetCapacityStatus(CapacityStatus &&value)
WorkspacesPool & WithApplicationSettings(const ApplicationSettingsResponse &value)
const TimeoutSettings & GetTimeoutSettings() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTimeoutSettings(const TimeoutSettings &value)
WorkspacesPool & WithApplicationSettings(ApplicationSettingsResponse &&value)
WorkspacesPool & WithPoolId(Aws::String &&value)
WorkspacesPool & WithDirectoryId(const Aws::String &value)
void SetCapacityStatus(const CapacityStatus &value)
void SetPoolArn(const Aws::String &value)
WorkspacesPool & WithDescription(Aws::String &&value)
WorkspacesPool & WithDirectoryId(const char *value)
void SetDirectoryId(Aws::String &&value)
const Aws::String & GetPoolName() const
WorkspacesPool & WithCapacityStatus(CapacityStatus &&value)
WorkspacesPool & WithPoolArn(Aws::String &&value)
AWS_WORKSPACES_API WorkspacesPool(Aws::Utils::Json::JsonView jsonValue)
WorkspacesPool & WithErrors(const Aws::Vector< WorkspacesPoolError > &value)
WorkspacesPool & WithState(const WorkspacesPoolState &value)
WorkspacesPool & WithErrors(Aws::Vector< WorkspacesPoolError > &&value)
void SetBundleId(const Aws::String &value)
void SetErrors(const Aws::Vector< WorkspacesPoolError > &value)
WorkspacesPool & WithPoolName(Aws::String &&value)
void SetPoolName(const Aws::String &value)
const Aws::String & GetBundleId() const
void SetApplicationSettings(ApplicationSettingsResponse &&value)
const Aws::String & GetPoolId() const
AWS_WORKSPACES_API WorkspacesPool & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPoolArn() const
WorkspacesPool & WithDirectoryId(Aws::String &&value)
WorkspacesPool & WithPoolId(const char *value)
void SetState(const WorkspacesPoolState &value)
WorkspacesPool & WithTimeoutSettings(const TimeoutSettings &value)
const WorkspacesPoolState & GetState() const
WorkspacesPool & WithTimeoutSettings(TimeoutSettings &&value)
void SetPoolId(Aws::String &&value)
WorkspacesPool & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetApplicationSettings(const ApplicationSettingsResponse &value)
WorkspacesPool & WithCreatedAt(const Aws::Utils::DateTime &value)
WorkspacesPool & AddErrors(const WorkspacesPoolError &value)
WorkspacesPool & WithPoolArn(const char *value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
WorkspacesPool & AddErrors(WorkspacesPoolError &&value)
WorkspacesPool & WithPoolName(const char *value)
void SetState(WorkspacesPoolState &&value)
WorkspacesPool & WithState(WorkspacesPoolState &&value)
WorkspacesPool & WithPoolName(const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetDirectoryId(const Aws::String &value)
void SetDescription(Aws::String &&value)
WorkspacesPool & WithPoolArn(const Aws::String &value)
WorkspacesPool & WithDescription(const Aws::String &value)
WorkspacesPool & WithCapacityStatus(const CapacityStatus &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetDirectoryId() const
WorkspacesPool & WithPoolId(const Aws::String &value)
void SetTimeoutSettings(TimeoutSettings &&value)
const ApplicationSettingsResponse & GetApplicationSettings() const
void SetPoolId(const Aws::String &value)
WorkspacesPool & WithBundleId(const Aws::String &value)
void SetBundleId(Aws::String &&value)
void SetPoolName(Aws::String &&value)
void SetErrors(Aws::Vector< WorkspacesPoolError > &&value)
void SetPoolArn(Aws::String &&value)
WorkspacesPool & WithBundleId(const char *value)
WorkspacesPool & WithDescription(const char *value)
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