AWS SDK for C++  0.14.3
AWS SDK for C++
DefaultWorkspaceCreationProperties.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace WorkSpaces
29 {
30 namespace Model
31 {
32 
37  {
38  public:
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline bool GetEnableWorkDocs() const{ return m_enableWorkDocs; }
48 
52  inline void SetEnableWorkDocs(bool value) { m_enableWorkDocsHasBeenSet = true; m_enableWorkDocs = value; }
53 
57  inline DefaultWorkspaceCreationProperties& WithEnableWorkDocs(bool value) { SetEnableWorkDocs(value); return *this;}
58 
63  inline bool GetEnableInternetAccess() const{ return m_enableInternetAccess; }
64 
69  inline void SetEnableInternetAccess(bool value) { m_enableInternetAccessHasBeenSet = true; m_enableInternetAccess = value; }
70 
75  inline DefaultWorkspaceCreationProperties& WithEnableInternetAccess(bool value) { SetEnableInternetAccess(value); return *this;}
76 
81  inline const Aws::String& GetDefaultOu() const{ return m_defaultOu; }
82 
87  inline void SetDefaultOu(const Aws::String& value) { m_defaultOuHasBeenSet = true; m_defaultOu = value; }
88 
93  inline void SetDefaultOu(Aws::String&& value) { m_defaultOuHasBeenSet = true; m_defaultOu = value; }
94 
99  inline void SetDefaultOu(const char* value) { m_defaultOuHasBeenSet = true; m_defaultOu.assign(value); }
100 
105  inline DefaultWorkspaceCreationProperties& WithDefaultOu(const Aws::String& value) { SetDefaultOu(value); return *this;}
106 
111  inline DefaultWorkspaceCreationProperties& WithDefaultOu(Aws::String&& value) { SetDefaultOu(value); return *this;}
112 
117  inline DefaultWorkspaceCreationProperties& WithDefaultOu(const char* value) { SetDefaultOu(value); return *this;}
118 
123  inline const Aws::String& GetCustomSecurityGroupId() const{ return m_customSecurityGroupId; }
124 
129  inline void SetCustomSecurityGroupId(const Aws::String& value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId = value; }
130 
135  inline void SetCustomSecurityGroupId(Aws::String&& value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId = value; }
136 
141  inline void SetCustomSecurityGroupId(const char* value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId.assign(value); }
142 
147  inline DefaultWorkspaceCreationProperties& WithCustomSecurityGroupId(const Aws::String& value) { SetCustomSecurityGroupId(value); return *this;}
148 
153  inline DefaultWorkspaceCreationProperties& WithCustomSecurityGroupId(Aws::String&& value) { SetCustomSecurityGroupId(value); return *this;}
154 
159  inline DefaultWorkspaceCreationProperties& WithCustomSecurityGroupId(const char* value) { SetCustomSecurityGroupId(value); return *this;}
160 
164  inline bool GetUserEnabledAsLocalAdministrator() const{ return m_userEnabledAsLocalAdministrator; }
165 
169  inline void SetUserEnabledAsLocalAdministrator(bool value) { m_userEnabledAsLocalAdministratorHasBeenSet = true; m_userEnabledAsLocalAdministrator = value; }
170 
174  inline DefaultWorkspaceCreationProperties& WithUserEnabledAsLocalAdministrator(bool value) { SetUserEnabledAsLocalAdministrator(value); return *this;}
175 
176  private:
177  bool m_enableWorkDocs;
178  bool m_enableWorkDocsHasBeenSet;
179  bool m_enableInternetAccess;
180  bool m_enableInternetAccessHasBeenSet;
181  Aws::String m_defaultOu;
182  bool m_defaultOuHasBeenSet;
183  Aws::String m_customSecurityGroupId;
184  bool m_customSecurityGroupIdHasBeenSet;
185  bool m_userEnabledAsLocalAdministrator;
186  bool m_userEnabledAsLocalAdministratorHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace WorkSpaces
191 } // namespace Aws
DefaultWorkspaceCreationProperties & WithDefaultOu(const char *value)
DefaultWorkspaceCreationProperties & WithDefaultOu(Aws::String &&value)
DefaultWorkspaceCreationProperties & WithCustomSecurityGroupId(const char *value)
DefaultWorkspaceCreationProperties & WithCustomSecurityGroupId(const Aws::String &value)
DefaultWorkspaceCreationProperties & WithEnableWorkDocs(bool value)
DefaultWorkspaceCreationProperties & WithEnableInternetAccess(bool value)
DefaultWorkspaceCreationProperties & WithCustomSecurityGroupId(Aws::String &&value)
DefaultWorkspaceCreationProperties & WithDefaultOu(const Aws::String &value)
DefaultWorkspaceCreationProperties & WithUserEnabledAsLocalAdministrator(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).
#define AWS_WORKSPACES_API