AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceCreationProperties.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkSpaces
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_WORKSPACES_API WorkspaceCreationProperties();
40 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
60 inline bool GetEnableWorkDocs() const{ return m_enableWorkDocs; }
61 inline bool EnableWorkDocsHasBeenSet() const { return m_enableWorkDocsHasBeenSet; }
62 inline void SetEnableWorkDocs(bool value) { m_enableWorkDocsHasBeenSet = true; m_enableWorkDocs = value; }
63 inline WorkspaceCreationProperties& WithEnableWorkDocs(bool value) { SetEnableWorkDocs(value); return *this;}
65
67
70 inline bool GetEnableInternetAccess() const{ return m_enableInternetAccess; }
71 inline bool EnableInternetAccessHasBeenSet() const { return m_enableInternetAccessHasBeenSet; }
72 inline void SetEnableInternetAccess(bool value) { m_enableInternetAccessHasBeenSet = true; m_enableInternetAccess = value; }
75
77
91 inline const Aws::String& GetDefaultOu() const{ return m_defaultOu; }
92 inline bool DefaultOuHasBeenSet() const { return m_defaultOuHasBeenSet; }
93 inline void SetDefaultOu(const Aws::String& value) { m_defaultOuHasBeenSet = true; m_defaultOu = value; }
94 inline void SetDefaultOu(Aws::String&& value) { m_defaultOuHasBeenSet = true; m_defaultOu = std::move(value); }
95 inline void SetDefaultOu(const char* value) { m_defaultOuHasBeenSet = true; m_defaultOu.assign(value); }
96 inline WorkspaceCreationProperties& WithDefaultOu(const Aws::String& value) { SetDefaultOu(value); return *this;}
97 inline WorkspaceCreationProperties& WithDefaultOu(Aws::String&& value) { SetDefaultOu(std::move(value)); return *this;}
98 inline WorkspaceCreationProperties& WithDefaultOu(const char* value) { SetDefaultOu(value); return *this;}
100
102
105 inline const Aws::String& GetCustomSecurityGroupId() const{ return m_customSecurityGroupId; }
106 inline bool CustomSecurityGroupIdHasBeenSet() const { return m_customSecurityGroupIdHasBeenSet; }
107 inline void SetCustomSecurityGroupId(const Aws::String& value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId = value; }
108 inline void SetCustomSecurityGroupId(Aws::String&& value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId = std::move(value); }
109 inline void SetCustomSecurityGroupId(const char* value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId.assign(value); }
112 inline WorkspaceCreationProperties& WithCustomSecurityGroupId(const char* value) { SetCustomSecurityGroupId(value); return *this;}
114
116
119 inline bool GetUserEnabledAsLocalAdministrator() const{ return m_userEnabledAsLocalAdministrator; }
120 inline bool UserEnabledAsLocalAdministratorHasBeenSet() const { return m_userEnabledAsLocalAdministratorHasBeenSet; }
121 inline void SetUserEnabledAsLocalAdministrator(bool value) { m_userEnabledAsLocalAdministratorHasBeenSet = true; m_userEnabledAsLocalAdministrator = value; }
124
126
132 inline bool GetEnableMaintenanceMode() const{ return m_enableMaintenanceMode; }
133 inline bool EnableMaintenanceModeHasBeenSet() const { return m_enableMaintenanceModeHasBeenSet; }
134 inline void SetEnableMaintenanceMode(bool value) { m_enableMaintenanceModeHasBeenSet = true; m_enableMaintenanceMode = value; }
137
139
142 inline const Aws::String& GetInstanceIamRoleArn() const{ return m_instanceIamRoleArn; }
143 inline bool InstanceIamRoleArnHasBeenSet() const { return m_instanceIamRoleArnHasBeenSet; }
144 inline void SetInstanceIamRoleArn(const Aws::String& value) { m_instanceIamRoleArnHasBeenSet = true; m_instanceIamRoleArn = value; }
145 inline void SetInstanceIamRoleArn(Aws::String&& value) { m_instanceIamRoleArnHasBeenSet = true; m_instanceIamRoleArn = std::move(value); }
146 inline void SetInstanceIamRoleArn(const char* value) { m_instanceIamRoleArnHasBeenSet = true; m_instanceIamRoleArn.assign(value); }
148 inline WorkspaceCreationProperties& WithInstanceIamRoleArn(Aws::String&& value) { SetInstanceIamRoleArn(std::move(value)); return *this;}
149 inline WorkspaceCreationProperties& WithInstanceIamRoleArn(const char* value) { SetInstanceIamRoleArn(value); return *this;}
151 private:
152
153 bool m_enableWorkDocs;
154 bool m_enableWorkDocsHasBeenSet = false;
155
156 bool m_enableInternetAccess;
157 bool m_enableInternetAccessHasBeenSet = false;
158
159 Aws::String m_defaultOu;
160 bool m_defaultOuHasBeenSet = false;
161
162 Aws::String m_customSecurityGroupId;
163 bool m_customSecurityGroupIdHasBeenSet = false;
164
165 bool m_userEnabledAsLocalAdministrator;
166 bool m_userEnabledAsLocalAdministratorHasBeenSet = false;
167
168 bool m_enableMaintenanceMode;
169 bool m_enableMaintenanceModeHasBeenSet = false;
170
171 Aws::String m_instanceIamRoleArn;
172 bool m_instanceIamRoleArnHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace WorkSpaces
177} // namespace Aws
AWS_WORKSPACES_API WorkspaceCreationProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceCreationProperties & WithInstanceIamRoleArn(const Aws::String &value)
WorkspaceCreationProperties & WithEnableMaintenanceMode(bool value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKSPACES_API WorkspaceCreationProperties(Aws::Utils::Json::JsonView jsonValue)
WorkspaceCreationProperties & WithCustomSecurityGroupId(const char *value)
WorkspaceCreationProperties & WithDefaultOu(const char *value)
WorkspaceCreationProperties & WithCustomSecurityGroupId(Aws::String &&value)
WorkspaceCreationProperties & WithUserEnabledAsLocalAdministrator(bool value)
WorkspaceCreationProperties & WithDefaultOu(const Aws::String &value)
WorkspaceCreationProperties & WithInstanceIamRoleArn(Aws::String &&value)
WorkspaceCreationProperties & WithCustomSecurityGroupId(const Aws::String &value)
WorkspaceCreationProperties & WithEnableWorkDocs(bool value)
WorkspaceCreationProperties & WithInstanceIamRoleArn(const char *value)
WorkspaceCreationProperties & WithDefaultOu(Aws::String &&value)
WorkspaceCreationProperties & WithEnableInternetAccess(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue