AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Workspace.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/WorkspaceState.h>
10#include <aws/workspaces/model/WorkspaceProperties.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/workspaces/model/DataReplicationSettings.h>
13#include <aws/workspaces/model/ModificationState.h>
14#include <aws/workspaces/model/RelatedWorkspaceProperties.h>
15#include <aws/workspaces/model/StandbyWorkspacesProperties.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 Workspace() = default;
42 AWS_WORKSPACES_API Workspace(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKSPACES_API Workspace& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
52 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
53 template<typename WorkspaceIdT = Aws::String>
54 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
55 template<typename WorkspaceIdT = Aws::String>
56 Workspace& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
64 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
65 template<typename DirectoryIdT = Aws::String>
66 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
67 template<typename DirectoryIdT = Aws::String>
68 Workspace& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetUserName() const { return m_userName; }
76 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
77 template<typename UserNameT = Aws::String>
78 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
79 template<typename UserNameT = Aws::String>
80 Workspace& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
82
84
87 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
88 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
89 template<typename IpAddressT = Aws::String>
90 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
91 template<typename IpAddressT = Aws::String>
92 Workspace& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
94
96
127 inline WorkspaceState GetState() const { return m_state; }
128 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
129 inline void SetState(WorkspaceState value) { m_stateHasBeenSet = true; m_state = value; }
130 inline Workspace& WithState(WorkspaceState value) { SetState(value); return *this;}
132
134
137 inline const Aws::String& GetBundleId() const { return m_bundleId; }
138 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
139 template<typename BundleIdT = Aws::String>
140 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
141 template<typename BundleIdT = Aws::String>
142 Workspace& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
144
146
149 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
150 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
151 template<typename SubnetIdT = Aws::String>
152 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
153 template<typename SubnetIdT = Aws::String>
154 Workspace& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
156
158
162 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
163 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
164 template<typename ErrorMessageT = Aws::String>
165 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
166 template<typename ErrorMessageT = Aws::String>
167 Workspace& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
169
171
174 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
175 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
176 template<typename ErrorCodeT = Aws::String>
177 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
178 template<typename ErrorCodeT = Aws::String>
179 Workspace& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
181
183
189 inline const Aws::String& GetComputerName() const { return m_computerName; }
190 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
191 template<typename ComputerNameT = Aws::String>
192 void SetComputerName(ComputerNameT&& value) { m_computerNameHasBeenSet = true; m_computerName = std::forward<ComputerNameT>(value); }
193 template<typename ComputerNameT = Aws::String>
194 Workspace& WithComputerName(ComputerNameT&& value) { SetComputerName(std::forward<ComputerNameT>(value)); return *this;}
196
198
202 inline const Aws::String& GetVolumeEncryptionKey() const { return m_volumeEncryptionKey; }
203 inline bool VolumeEncryptionKeyHasBeenSet() const { return m_volumeEncryptionKeyHasBeenSet; }
204 template<typename VolumeEncryptionKeyT = Aws::String>
205 void SetVolumeEncryptionKey(VolumeEncryptionKeyT&& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = std::forward<VolumeEncryptionKeyT>(value); }
206 template<typename VolumeEncryptionKeyT = Aws::String>
207 Workspace& WithVolumeEncryptionKey(VolumeEncryptionKeyT&& value) { SetVolumeEncryptionKey(std::forward<VolumeEncryptionKeyT>(value)); return *this;}
209
211
214 inline bool GetUserVolumeEncryptionEnabled() const { return m_userVolumeEncryptionEnabled; }
215 inline bool UserVolumeEncryptionEnabledHasBeenSet() const { return m_userVolumeEncryptionEnabledHasBeenSet; }
216 inline void SetUserVolumeEncryptionEnabled(bool value) { m_userVolumeEncryptionEnabledHasBeenSet = true; m_userVolumeEncryptionEnabled = value; }
219
221
224 inline bool GetRootVolumeEncryptionEnabled() const { return m_rootVolumeEncryptionEnabled; }
225 inline bool RootVolumeEncryptionEnabledHasBeenSet() const { return m_rootVolumeEncryptionEnabledHasBeenSet; }
226 inline void SetRootVolumeEncryptionEnabled(bool value) { m_rootVolumeEncryptionEnabledHasBeenSet = true; m_rootVolumeEncryptionEnabled = value; }
229
231
234 inline const Aws::String& GetWorkspaceName() const { return m_workspaceName; }
235 inline bool WorkspaceNameHasBeenSet() const { return m_workspaceNameHasBeenSet; }
236 template<typename WorkspaceNameT = Aws::String>
237 void SetWorkspaceName(WorkspaceNameT&& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = std::forward<WorkspaceNameT>(value); }
238 template<typename WorkspaceNameT = Aws::String>
239 Workspace& WithWorkspaceName(WorkspaceNameT&& value) { SetWorkspaceName(std::forward<WorkspaceNameT>(value)); return *this;}
241
243
246 inline const WorkspaceProperties& GetWorkspaceProperties() const { return m_workspaceProperties; }
247 inline bool WorkspacePropertiesHasBeenSet() const { return m_workspacePropertiesHasBeenSet; }
248 template<typename WorkspacePropertiesT = WorkspaceProperties>
249 void SetWorkspaceProperties(WorkspacePropertiesT&& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = std::forward<WorkspacePropertiesT>(value); }
250 template<typename WorkspacePropertiesT = WorkspaceProperties>
251 Workspace& WithWorkspaceProperties(WorkspacePropertiesT&& value) { SetWorkspaceProperties(std::forward<WorkspacePropertiesT>(value)); return *this;}
253
255
258 inline const Aws::Vector<ModificationState>& GetModificationStates() const { return m_modificationStates; }
259 inline bool ModificationStatesHasBeenSet() const { return m_modificationStatesHasBeenSet; }
260 template<typename ModificationStatesT = Aws::Vector<ModificationState>>
261 void SetModificationStates(ModificationStatesT&& value) { m_modificationStatesHasBeenSet = true; m_modificationStates = std::forward<ModificationStatesT>(value); }
262 template<typename ModificationStatesT = Aws::Vector<ModificationState>>
263 Workspace& WithModificationStates(ModificationStatesT&& value) { SetModificationStates(std::forward<ModificationStatesT>(value)); return *this;}
264 template<typename ModificationStatesT = ModificationState>
265 Workspace& AddModificationStates(ModificationStatesT&& value) { m_modificationStatesHasBeenSet = true; m_modificationStates.emplace_back(std::forward<ModificationStatesT>(value)); return *this; }
267
269
273 inline const Aws::Vector<RelatedWorkspaceProperties>& GetRelatedWorkspaces() const { return m_relatedWorkspaces; }
274 inline bool RelatedWorkspacesHasBeenSet() const { return m_relatedWorkspacesHasBeenSet; }
275 template<typename RelatedWorkspacesT = Aws::Vector<RelatedWorkspaceProperties>>
276 void SetRelatedWorkspaces(RelatedWorkspacesT&& value) { m_relatedWorkspacesHasBeenSet = true; m_relatedWorkspaces = std::forward<RelatedWorkspacesT>(value); }
277 template<typename RelatedWorkspacesT = Aws::Vector<RelatedWorkspaceProperties>>
278 Workspace& WithRelatedWorkspaces(RelatedWorkspacesT&& value) { SetRelatedWorkspaces(std::forward<RelatedWorkspacesT>(value)); return *this;}
279 template<typename RelatedWorkspacesT = RelatedWorkspaceProperties>
280 Workspace& AddRelatedWorkspaces(RelatedWorkspacesT&& value) { m_relatedWorkspacesHasBeenSet = true; m_relatedWorkspaces.emplace_back(std::forward<RelatedWorkspacesT>(value)); return *this; }
282
284
287 inline const DataReplicationSettings& GetDataReplicationSettings() const { return m_dataReplicationSettings; }
288 inline bool DataReplicationSettingsHasBeenSet() const { return m_dataReplicationSettingsHasBeenSet; }
289 template<typename DataReplicationSettingsT = DataReplicationSettings>
290 void SetDataReplicationSettings(DataReplicationSettingsT&& value) { m_dataReplicationSettingsHasBeenSet = true; m_dataReplicationSettings = std::forward<DataReplicationSettingsT>(value); }
291 template<typename DataReplicationSettingsT = DataReplicationSettings>
292 Workspace& WithDataReplicationSettings(DataReplicationSettingsT&& value) { SetDataReplicationSettings(std::forward<DataReplicationSettingsT>(value)); return *this;}
294
296
299 inline const Aws::Vector<StandbyWorkspacesProperties>& GetStandbyWorkspacesProperties() const { return m_standbyWorkspacesProperties; }
300 inline bool StandbyWorkspacesPropertiesHasBeenSet() const { return m_standbyWorkspacesPropertiesHasBeenSet; }
301 template<typename StandbyWorkspacesPropertiesT = Aws::Vector<StandbyWorkspacesProperties>>
302 void SetStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT&& value) { m_standbyWorkspacesPropertiesHasBeenSet = true; m_standbyWorkspacesProperties = std::forward<StandbyWorkspacesPropertiesT>(value); }
303 template<typename StandbyWorkspacesPropertiesT = Aws::Vector<StandbyWorkspacesProperties>>
304 Workspace& WithStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT&& value) { SetStandbyWorkspacesProperties(std::forward<StandbyWorkspacesPropertiesT>(value)); return *this;}
305 template<typename StandbyWorkspacesPropertiesT = StandbyWorkspacesProperties>
306 Workspace& AddStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT&& value) { m_standbyWorkspacesPropertiesHasBeenSet = true; m_standbyWorkspacesProperties.emplace_back(std::forward<StandbyWorkspacesPropertiesT>(value)); return *this; }
308 private:
309
310 Aws::String m_workspaceId;
311 bool m_workspaceIdHasBeenSet = false;
312
313 Aws::String m_directoryId;
314 bool m_directoryIdHasBeenSet = false;
315
316 Aws::String m_userName;
317 bool m_userNameHasBeenSet = false;
318
319 Aws::String m_ipAddress;
320 bool m_ipAddressHasBeenSet = false;
321
323 bool m_stateHasBeenSet = false;
324
325 Aws::String m_bundleId;
326 bool m_bundleIdHasBeenSet = false;
327
328 Aws::String m_subnetId;
329 bool m_subnetIdHasBeenSet = false;
330
331 Aws::String m_errorMessage;
332 bool m_errorMessageHasBeenSet = false;
333
334 Aws::String m_errorCode;
335 bool m_errorCodeHasBeenSet = false;
336
337 Aws::String m_computerName;
338 bool m_computerNameHasBeenSet = false;
339
340 Aws::String m_volumeEncryptionKey;
341 bool m_volumeEncryptionKeyHasBeenSet = false;
342
343 bool m_userVolumeEncryptionEnabled{false};
344 bool m_userVolumeEncryptionEnabledHasBeenSet = false;
345
346 bool m_rootVolumeEncryptionEnabled{false};
347 bool m_rootVolumeEncryptionEnabledHasBeenSet = false;
348
349 Aws::String m_workspaceName;
350 bool m_workspaceNameHasBeenSet = false;
351
352 WorkspaceProperties m_workspaceProperties;
353 bool m_workspacePropertiesHasBeenSet = false;
354
355 Aws::Vector<ModificationState> m_modificationStates;
356 bool m_modificationStatesHasBeenSet = false;
357
358 Aws::Vector<RelatedWorkspaceProperties> m_relatedWorkspaces;
359 bool m_relatedWorkspacesHasBeenSet = false;
360
361 DataReplicationSettings m_dataReplicationSettings;
362 bool m_dataReplicationSettingsHasBeenSet = false;
363
364 Aws::Vector<StandbyWorkspacesProperties> m_standbyWorkspacesProperties;
365 bool m_standbyWorkspacesPropertiesHasBeenSet = false;
366 };
367
368} // namespace Model
369} // namespace WorkSpaces
370} // namespace Aws
void SetErrorMessage(ErrorMessageT &&value)
Definition Workspace.h:165
bool DataReplicationSettingsHasBeenSet() const
Definition Workspace.h:288
Workspace & WithUserVolumeEncryptionEnabled(bool value)
Definition Workspace.h:217
const WorkspaceProperties & GetWorkspaceProperties() const
Definition Workspace.h:246
void SetComputerName(ComputerNameT &&value)
Definition Workspace.h:192
const Aws::String & GetWorkspaceId() const
Definition Workspace.h:51
void SetWorkspaceName(WorkspaceNameT &&value)
Definition Workspace.h:237
Workspace & AddStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT &&value)
Definition Workspace.h:306
Workspace & WithWorkspaceName(WorkspaceNameT &&value)
Definition Workspace.h:239
AWS_WORKSPACES_API Workspace & operator=(Aws::Utils::Json::JsonView jsonValue)
Workspace & WithUserName(UserNameT &&value)
Definition Workspace.h:80
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetComputerName() const
Definition Workspace.h:189
void SetIpAddress(IpAddressT &&value)
Definition Workspace.h:90
Workspace & WithIpAddress(IpAddressT &&value)
Definition Workspace.h:92
void SetState(WorkspaceState value)
Definition Workspace.h:129
Workspace & WithModificationStates(ModificationStatesT &&value)
Definition Workspace.h:263
void SetWorkspaceId(WorkspaceIdT &&value)
Definition Workspace.h:54
const Aws::String & GetBundleId() const
Definition Workspace.h:137
const Aws::String & GetErrorCode() const
Definition Workspace.h:174
Workspace & WithBundleId(BundleIdT &&value)
Definition Workspace.h:142
bool RootVolumeEncryptionEnabledHasBeenSet() const
Definition Workspace.h:225
void SetDataReplicationSettings(DataReplicationSettingsT &&value)
Definition Workspace.h:290
bool ModificationStatesHasBeenSet() const
Definition Workspace.h:259
Workspace & WithState(WorkspaceState value)
Definition Workspace.h:130
const Aws::String & GetVolumeEncryptionKey() const
Definition Workspace.h:202
Workspace & WithVolumeEncryptionKey(VolumeEncryptionKeyT &&value)
Definition Workspace.h:207
bool GetUserVolumeEncryptionEnabled() const
Definition Workspace.h:214
Workspace & WithDirectoryId(DirectoryIdT &&value)
Definition Workspace.h:68
void SetStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT &&value)
Definition Workspace.h:302
void SetWorkspaceProperties(WorkspacePropertiesT &&value)
Definition Workspace.h:249
bool UserVolumeEncryptionEnabledHasBeenSet() const
Definition Workspace.h:215
Workspace & WithComputerName(ComputerNameT &&value)
Definition Workspace.h:194
Workspace & AddRelatedWorkspaces(RelatedWorkspacesT &&value)
Definition Workspace.h:280
bool StandbyWorkspacesPropertiesHasBeenSet() const
Definition Workspace.h:300
const Aws::Vector< ModificationState > & GetModificationStates() const
Definition Workspace.h:258
const Aws::String & GetIpAddress() const
Definition Workspace.h:87
void SetSubnetId(SubnetIdT &&value)
Definition Workspace.h:152
void SetRootVolumeEncryptionEnabled(bool value)
Definition Workspace.h:226
AWS_WORKSPACES_API Workspace(Aws::Utils::Json::JsonView jsonValue)
void SetModificationStates(ModificationStatesT &&value)
Definition Workspace.h:261
const Aws::String & GetWorkspaceName() const
Definition Workspace.h:234
Workspace & WithSubnetId(SubnetIdT &&value)
Definition Workspace.h:154
void SetErrorCode(ErrorCodeT &&value)
Definition Workspace.h:177
bool VolumeEncryptionKeyHasBeenSet() const
Definition Workspace.h:203
bool GetRootVolumeEncryptionEnabled() const
Definition Workspace.h:224
Workspace & WithWorkspaceProperties(WorkspacePropertiesT &&value)
Definition Workspace.h:251
Workspace & WithRelatedWorkspaces(RelatedWorkspacesT &&value)
Definition Workspace.h:278
WorkspaceState GetState() const
Definition Workspace.h:127
void SetVolumeEncryptionKey(VolumeEncryptionKeyT &&value)
Definition Workspace.h:205
Workspace & WithDataReplicationSettings(DataReplicationSettingsT &&value)
Definition Workspace.h:292
const Aws::String & GetDirectoryId() const
Definition Workspace.h:63
const Aws::Vector< StandbyWorkspacesProperties > & GetStandbyWorkspacesProperties() const
Definition Workspace.h:299
void SetUserName(UserNameT &&value)
Definition Workspace.h:78
AWS_WORKSPACES_API Workspace()=default
const Aws::String & GetSubnetId() const
Definition Workspace.h:149
const DataReplicationSettings & GetDataReplicationSettings() const
Definition Workspace.h:287
Workspace & WithErrorMessage(ErrorMessageT &&value)
Definition Workspace.h:167
void SetRelatedWorkspaces(RelatedWorkspacesT &&value)
Definition Workspace.h:276
void SetBundleId(BundleIdT &&value)
Definition Workspace.h:140
Workspace & AddModificationStates(ModificationStatesT &&value)
Definition Workspace.h:265
void SetUserVolumeEncryptionEnabled(bool value)
Definition Workspace.h:216
Workspace & WithErrorCode(ErrorCodeT &&value)
Definition Workspace.h:179
const Aws::String & GetErrorMessage() const
Definition Workspace.h:162
const Aws::String & GetUserName() const
Definition Workspace.h:75
Workspace & WithStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT &&value)
Definition Workspace.h:304
bool WorkspacePropertiesHasBeenSet() const
Definition Workspace.h:247
const Aws::Vector< RelatedWorkspaceProperties > & GetRelatedWorkspaces() const
Definition Workspace.h:273
Workspace & WithWorkspaceId(WorkspaceIdT &&value)
Definition Workspace.h:56
Workspace & WithRootVolumeEncryptionEnabled(bool value)
Definition Workspace.h:227
void SetDirectoryId(DirectoryIdT &&value)
Definition Workspace.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue