AWS SDK for C++  0.12.9
AWS SDK for C++
Workspace.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace WorkSpaces
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Workspace();
41  Workspace(const Aws::Utils::Json::JsonValue& jsonValue);
42  Workspace& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
49 
53  inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
54 
58  inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
59 
63  inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
64 
68  inline Workspace& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
69 
73  inline Workspace& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(value); return *this;}
74 
78  inline Workspace& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
79 
84  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
85 
90  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
91 
96  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
97 
102  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
103 
108  inline Workspace& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
109 
114  inline Workspace& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
115 
120  inline Workspace& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
121 
125  inline const Aws::String& GetUserName() const{ return m_userName; }
126 
130  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
131 
135  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
136 
140  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
141 
145  inline Workspace& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
146 
150  inline Workspace& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
151 
155  inline Workspace& WithUserName(const char* value) { SetUserName(value); return *this;}
156 
160  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
161 
165  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
166 
170  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
171 
175  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
176 
180  inline Workspace& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
181 
185  inline Workspace& WithIpAddress(Aws::String&& value) { SetIpAddress(value); return *this;}
186 
190  inline Workspace& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
191 
195  inline const WorkspaceState& GetState() const{ return m_state; }
196 
200  inline void SetState(const WorkspaceState& value) { m_stateHasBeenSet = true; m_state = value; }
201 
205  inline void SetState(WorkspaceState&& value) { m_stateHasBeenSet = true; m_state = value; }
206 
210  inline Workspace& WithState(const WorkspaceState& value) { SetState(value); return *this;}
211 
215  inline Workspace& WithState(WorkspaceState&& value) { SetState(value); return *this;}
216 
220  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
221 
225  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
226 
230  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
231 
235  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
236 
240  inline Workspace& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
241 
245  inline Workspace& WithBundleId(Aws::String&& value) { SetBundleId(value); return *this;}
246 
250  inline Workspace& WithBundleId(const char* value) { SetBundleId(value); return *this;}
251 
255  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
256 
260  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
261 
265  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
266 
270  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
271 
275  inline Workspace& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
276 
280  inline Workspace& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
281 
285  inline Workspace& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
286 
291  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
292 
297  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
298 
303  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
304 
309  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
310 
315  inline Workspace& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
316 
321  inline Workspace& WithErrorMessage(Aws::String&& value) { SetErrorMessage(value); return *this;}
322 
327  inline Workspace& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
328 
332  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
333 
337  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
338 
342  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
343 
347  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
348 
352  inline Workspace& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
353 
357  inline Workspace& WithErrorCode(Aws::String&& value) { SetErrorCode(value); return *this;}
358 
362  inline Workspace& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
363 
367  inline const Aws::String& GetComputerName() const{ return m_computerName; }
368 
372  inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
373 
377  inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
378 
382  inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); }
383 
387  inline Workspace& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;}
388 
392  inline Workspace& WithComputerName(Aws::String&& value) { SetComputerName(value); return *this;}
393 
397  inline Workspace& WithComputerName(const char* value) { SetComputerName(value); return *this;}
398 
402  inline const Aws::String& GetVolumeEncryptionKey() const{ return m_volumeEncryptionKey; }
403 
407  inline void SetVolumeEncryptionKey(const Aws::String& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = value; }
408 
412  inline void SetVolumeEncryptionKey(Aws::String&& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = value; }
413 
417  inline void SetVolumeEncryptionKey(const char* value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey.assign(value); }
418 
422  inline Workspace& WithVolumeEncryptionKey(const Aws::String& value) { SetVolumeEncryptionKey(value); return *this;}
423 
427  inline Workspace& WithVolumeEncryptionKey(Aws::String&& value) { SetVolumeEncryptionKey(value); return *this;}
428 
432  inline Workspace& WithVolumeEncryptionKey(const char* value) { SetVolumeEncryptionKey(value); return *this;}
433 
438  inline bool GetUserVolumeEncryptionEnabled() const{ return m_userVolumeEncryptionEnabled; }
439 
444  inline void SetUserVolumeEncryptionEnabled(bool value) { m_userVolumeEncryptionEnabledHasBeenSet = true; m_userVolumeEncryptionEnabled = value; }
445 
450  inline Workspace& WithUserVolumeEncryptionEnabled(bool value) { SetUserVolumeEncryptionEnabled(value); return *this;}
451 
456  inline bool GetRootVolumeEncryptionEnabled() const{ return m_rootVolumeEncryptionEnabled; }
457 
462  inline void SetRootVolumeEncryptionEnabled(bool value) { m_rootVolumeEncryptionEnabledHasBeenSet = true; m_rootVolumeEncryptionEnabled = value; }
463 
468  inline Workspace& WithRootVolumeEncryptionEnabled(bool value) { SetRootVolumeEncryptionEnabled(value); return *this;}
469 
470  private:
471  Aws::String m_workspaceId;
472  bool m_workspaceIdHasBeenSet;
473  Aws::String m_directoryId;
474  bool m_directoryIdHasBeenSet;
475  Aws::String m_userName;
476  bool m_userNameHasBeenSet;
477  Aws::String m_ipAddress;
478  bool m_ipAddressHasBeenSet;
479  WorkspaceState m_state;
480  bool m_stateHasBeenSet;
481  Aws::String m_bundleId;
482  bool m_bundleIdHasBeenSet;
483  Aws::String m_subnetId;
484  bool m_subnetIdHasBeenSet;
485  Aws::String m_errorMessage;
486  bool m_errorMessageHasBeenSet;
487  Aws::String m_errorCode;
488  bool m_errorCodeHasBeenSet;
489  Aws::String m_computerName;
490  bool m_computerNameHasBeenSet;
491  Aws::String m_volumeEncryptionKey;
492  bool m_volumeEncryptionKeyHasBeenSet;
493  bool m_userVolumeEncryptionEnabled;
494  bool m_userVolumeEncryptionEnabledHasBeenSet;
495  bool m_rootVolumeEncryptionEnabled;
496  bool m_rootVolumeEncryptionEnabledHasBeenSet;
497  };
498 
499 } // namespace Model
500 } // namespace WorkSpaces
501 } // namespace Aws
void SetBundleId(Aws::String &&value)
Definition: Workspace.h:230
bool GetRootVolumeEncryptionEnabled() const
Definition: Workspace.h:456
void SetUserVolumeEncryptionEnabled(bool value)
Definition: Workspace.h:444
Workspace & WithSubnetId(const Aws::String &value)
Definition: Workspace.h:275
bool GetUserVolumeEncryptionEnabled() const
Definition: Workspace.h:438
void SetBundleId(const char *value)
Definition: Workspace.h:235
void SetErrorMessage(const char *value)
Definition: Workspace.h:309
Workspace & WithErrorCode(const Aws::String &value)
Definition: Workspace.h:352
Workspace & WithWorkspaceId(const char *value)
Definition: Workspace.h:78
Workspace & WithVolumeEncryptionKey(const char *value)
Definition: Workspace.h:432
void SetErrorCode(const Aws::String &value)
Definition: Workspace.h:337
Workspace & WithUserName(Aws::String &&value)
Definition: Workspace.h:150
const Aws::String & GetErrorMessage() const
Definition: Workspace.h:291
Workspace & WithIpAddress(const char *value)
Definition: Workspace.h:190
void SetVolumeEncryptionKey(const Aws::String &value)
Definition: Workspace.h:407
void SetComputerName(Aws::String &&value)
Definition: Workspace.h:377
Workspace & WithDirectoryId(Aws::String &&value)
Definition: Workspace.h:114
Workspace & WithComputerName(const Aws::String &value)
Definition: Workspace.h:387
Workspace & WithComputerName(Aws::String &&value)
Definition: Workspace.h:392
Workspace & WithComputerName(const char *value)
Definition: Workspace.h:397
void SetWorkspaceId(const char *value)
Definition: Workspace.h:63
void SetErrorMessage(Aws::String &&value)
Definition: Workspace.h:303
const Aws::String & GetErrorCode() const
Definition: Workspace.h:332
void SetUserName(Aws::String &&value)
Definition: Workspace.h:135
void SetErrorCode(Aws::String &&value)
Definition: Workspace.h:342
Workspace & WithErrorMessage(Aws::String &&value)
Definition: Workspace.h:321
void SetErrorMessage(const Aws::String &value)
Definition: Workspace.h:297
void SetUserName(const Aws::String &value)
Definition: Workspace.h:130
Workspace & WithErrorCode(Aws::String &&value)
Definition: Workspace.h:357
void SetState(WorkspaceState &&value)
Definition: Workspace.h:205
Workspace & WithWorkspaceId(Aws::String &&value)
Definition: Workspace.h:73
void SetWorkspaceId(const Aws::String &value)
Definition: Workspace.h:53
Workspace & WithUserName(const Aws::String &value)
Definition: Workspace.h:145
const Aws::String & GetBundleId() const
Definition: Workspace.h:220
const Aws::String & GetSubnetId() const
Definition: Workspace.h:255
const Aws::String & GetIpAddress() const
Definition: Workspace.h:160
void SetIpAddress(const char *value)
Definition: Workspace.h:175
Workspace & WithIpAddress(Aws::String &&value)
Definition: Workspace.h:185
Workspace & WithState(const WorkspaceState &value)
Definition: Workspace.h:210
void SetVolumeEncryptionKey(const char *value)
Definition: Workspace.h:417
Workspace & WithUserName(const char *value)
Definition: Workspace.h:155
void SetErrorCode(const char *value)
Definition: Workspace.h:347
Workspace & WithDirectoryId(const Aws::String &value)
Definition: Workspace.h:108
Workspace & WithState(WorkspaceState &&value)
Definition: Workspace.h:215
void SetUserName(const char *value)
Definition: Workspace.h:140
void SetSubnetId(const Aws::String &value)
Definition: Workspace.h:260
Workspace & WithUserVolumeEncryptionEnabled(bool value)
Definition: Workspace.h:450
void SetSubnetId(const char *value)
Definition: Workspace.h:270
const Aws::String & GetVolumeEncryptionKey() const
Definition: Workspace.h:402
Workspace & WithErrorCode(const char *value)
Definition: Workspace.h:362
const Aws::String & GetDirectoryId() const
Definition: Workspace.h:84
Workspace & WithErrorMessage(const Aws::String &value)
Definition: Workspace.h:315
Workspace & WithBundleId(Aws::String &&value)
Definition: Workspace.h:245
const Aws::String & GetWorkspaceId() const
Definition: Workspace.h:48
Workspace & WithWorkspaceId(const Aws::String &value)
Definition: Workspace.h:68
void SetState(const WorkspaceState &value)
Definition: Workspace.h:200
void SetComputerName(const char *value)
Definition: Workspace.h:382
Workspace & WithDirectoryId(const char *value)
Definition: Workspace.h:120
Workspace & WithBundleId(const Aws::String &value)
Definition: Workspace.h:240
Workspace & WithSubnetId(Aws::String &&value)
Definition: Workspace.h:280
void SetIpAddress(Aws::String &&value)
Definition: Workspace.h:170
void SetDirectoryId(const char *value)
Definition: Workspace.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVolumeEncryptionKey(Aws::String &&value)
Definition: Workspace.h:412
const WorkspaceState & GetState() const
Definition: Workspace.h:195
void SetRootVolumeEncryptionEnabled(bool value)
Definition: Workspace.h:462
void SetDirectoryId(Aws::String &&value)
Definition: Workspace.h:96
Workspace & WithVolumeEncryptionKey(Aws::String &&value)
Definition: Workspace.h:427
void SetWorkspaceId(Aws::String &&value)
Definition: Workspace.h:58
Workspace & WithErrorMessage(const char *value)
Definition: Workspace.h:327
Workspace & WithBundleId(const char *value)
Definition: Workspace.h:250
void SetComputerName(const Aws::String &value)
Definition: Workspace.h:372
Workspace & WithVolumeEncryptionKey(const Aws::String &value)
Definition: Workspace.h:422
void SetIpAddress(const Aws::String &value)
Definition: Workspace.h:165
const Aws::String & GetUserName() const
Definition: Workspace.h:125
void SetSubnetId(Aws::String &&value)
Definition: Workspace.h:265
void SetBundleId(const Aws::String &value)
Definition: Workspace.h:225
Workspace & WithRootVolumeEncryptionEnabled(bool value)
Definition: Workspace.h:468
JSON (JavaScript Object Notation).
void SetDirectoryId(const Aws::String &value)
Definition: Workspace.h:90
Workspace & WithIpAddress(const Aws::String &value)
Definition: Workspace.h:180
#define AWS_WORKSPACES_API
const Aws::String & GetComputerName() const
Definition: Workspace.h:367
Workspace & WithSubnetId(const char *value)
Definition: Workspace.h:285