AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UserSettings.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/SharingSettings.h>
11#include <aws/sagemaker/model/JupyterServerAppSettings.h>
12#include <aws/sagemaker/model/KernelGatewayAppSettings.h>
13#include <aws/sagemaker/model/TensorBoardAppSettings.h>
14#include <aws/sagemaker/model/RStudioServerProAppSettings.h>
15#include <aws/sagemaker/model/RSessionAppSettings.h>
16#include <aws/sagemaker/model/CanvasAppSettings.h>
17#include <aws/sagemaker/model/CodeEditorAppSettings.h>
18#include <aws/sagemaker/model/JupyterLabAppSettings.h>
19#include <aws/sagemaker/model/DefaultSpaceStorageSettings.h>
20#include <aws/sagemaker/model/StudioWebPortal.h>
21#include <aws/sagemaker/model/CustomPosixUserConfig.h>
22#include <aws/sagemaker/model/StudioWebPortalSettings.h>
23#include <aws/sagemaker/model/AutoMountHomeEFS.h>
24#include <aws/sagemaker/model/CustomFileSystemConfig.h>
25#include <utility>
26
27namespace Aws
28{
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34 class JsonView;
35} // namespace Json
36} // namespace Utils
37namespace SageMaker
38{
39namespace Model
40{
41
54 {
55 public:
56 AWS_SAGEMAKER_API UserSettings() = default;
57 AWS_SAGEMAKER_API UserSettings(Aws::Utils::Json::JsonView jsonValue);
58 AWS_SAGEMAKER_API UserSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
59 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
60
61
63
68 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
69 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
70 template<typename ExecutionRoleT = Aws::String>
71 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
72 template<typename ExecutionRoleT = Aws::String>
73 UserSettings& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
75
77
91 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
92 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
93 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
94 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
95 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
96 UserSettings& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
97 template<typename SecurityGroupsT = Aws::String>
98 UserSettings& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
100
102
105 inline const SharingSettings& GetSharingSettings() const { return m_sharingSettings; }
106 inline bool SharingSettingsHasBeenSet() const { return m_sharingSettingsHasBeenSet; }
107 template<typename SharingSettingsT = SharingSettings>
108 void SetSharingSettings(SharingSettingsT&& value) { m_sharingSettingsHasBeenSet = true; m_sharingSettings = std::forward<SharingSettingsT>(value); }
109 template<typename SharingSettingsT = SharingSettings>
110 UserSettings& WithSharingSettings(SharingSettingsT&& value) { SetSharingSettings(std::forward<SharingSettingsT>(value)); return *this;}
112
114
117 inline const JupyterServerAppSettings& GetJupyterServerAppSettings() const { return m_jupyterServerAppSettings; }
118 inline bool JupyterServerAppSettingsHasBeenSet() const { return m_jupyterServerAppSettingsHasBeenSet; }
119 template<typename JupyterServerAppSettingsT = JupyterServerAppSettings>
120 void SetJupyterServerAppSettings(JupyterServerAppSettingsT&& value) { m_jupyterServerAppSettingsHasBeenSet = true; m_jupyterServerAppSettings = std::forward<JupyterServerAppSettingsT>(value); }
121 template<typename JupyterServerAppSettingsT = JupyterServerAppSettings>
122 UserSettings& WithJupyterServerAppSettings(JupyterServerAppSettingsT&& value) { SetJupyterServerAppSettings(std::forward<JupyterServerAppSettingsT>(value)); return *this;}
124
126
129 inline const KernelGatewayAppSettings& GetKernelGatewayAppSettings() const { return m_kernelGatewayAppSettings; }
130 inline bool KernelGatewayAppSettingsHasBeenSet() const { return m_kernelGatewayAppSettingsHasBeenSet; }
131 template<typename KernelGatewayAppSettingsT = KernelGatewayAppSettings>
132 void SetKernelGatewayAppSettings(KernelGatewayAppSettingsT&& value) { m_kernelGatewayAppSettingsHasBeenSet = true; m_kernelGatewayAppSettings = std::forward<KernelGatewayAppSettingsT>(value); }
133 template<typename KernelGatewayAppSettingsT = KernelGatewayAppSettings>
134 UserSettings& WithKernelGatewayAppSettings(KernelGatewayAppSettingsT&& value) { SetKernelGatewayAppSettings(std::forward<KernelGatewayAppSettingsT>(value)); return *this;}
136
138
141 inline const TensorBoardAppSettings& GetTensorBoardAppSettings() const { return m_tensorBoardAppSettings; }
142 inline bool TensorBoardAppSettingsHasBeenSet() const { return m_tensorBoardAppSettingsHasBeenSet; }
143 template<typename TensorBoardAppSettingsT = TensorBoardAppSettings>
144 void SetTensorBoardAppSettings(TensorBoardAppSettingsT&& value) { m_tensorBoardAppSettingsHasBeenSet = true; m_tensorBoardAppSettings = std::forward<TensorBoardAppSettingsT>(value); }
145 template<typename TensorBoardAppSettingsT = TensorBoardAppSettings>
146 UserSettings& WithTensorBoardAppSettings(TensorBoardAppSettingsT&& value) { SetTensorBoardAppSettings(std::forward<TensorBoardAppSettingsT>(value)); return *this;}
148
150
154 inline const RStudioServerProAppSettings& GetRStudioServerProAppSettings() const { return m_rStudioServerProAppSettings; }
155 inline bool RStudioServerProAppSettingsHasBeenSet() const { return m_rStudioServerProAppSettingsHasBeenSet; }
156 template<typename RStudioServerProAppSettingsT = RStudioServerProAppSettings>
157 void SetRStudioServerProAppSettings(RStudioServerProAppSettingsT&& value) { m_rStudioServerProAppSettingsHasBeenSet = true; m_rStudioServerProAppSettings = std::forward<RStudioServerProAppSettingsT>(value); }
158 template<typename RStudioServerProAppSettingsT = RStudioServerProAppSettings>
159 UserSettings& WithRStudioServerProAppSettings(RStudioServerProAppSettingsT&& value) { SetRStudioServerProAppSettings(std::forward<RStudioServerProAppSettingsT>(value)); return *this;}
161
163
167 inline const RSessionAppSettings& GetRSessionAppSettings() const { return m_rSessionAppSettings; }
168 inline bool RSessionAppSettingsHasBeenSet() const { return m_rSessionAppSettingsHasBeenSet; }
169 template<typename RSessionAppSettingsT = RSessionAppSettings>
170 void SetRSessionAppSettings(RSessionAppSettingsT&& value) { m_rSessionAppSettingsHasBeenSet = true; m_rSessionAppSettings = std::forward<RSessionAppSettingsT>(value); }
171 template<typename RSessionAppSettingsT = RSessionAppSettings>
172 UserSettings& WithRSessionAppSettings(RSessionAppSettingsT&& value) { SetRSessionAppSettings(std::forward<RSessionAppSettingsT>(value)); return *this;}
174
176
180 inline const CanvasAppSettings& GetCanvasAppSettings() const { return m_canvasAppSettings; }
181 inline bool CanvasAppSettingsHasBeenSet() const { return m_canvasAppSettingsHasBeenSet; }
182 template<typename CanvasAppSettingsT = CanvasAppSettings>
183 void SetCanvasAppSettings(CanvasAppSettingsT&& value) { m_canvasAppSettingsHasBeenSet = true; m_canvasAppSettings = std::forward<CanvasAppSettingsT>(value); }
184 template<typename CanvasAppSettingsT = CanvasAppSettings>
185 UserSettings& WithCanvasAppSettings(CanvasAppSettingsT&& value) { SetCanvasAppSettings(std::forward<CanvasAppSettingsT>(value)); return *this;}
187
189
194 inline const CodeEditorAppSettings& GetCodeEditorAppSettings() const { return m_codeEditorAppSettings; }
195 inline bool CodeEditorAppSettingsHasBeenSet() const { return m_codeEditorAppSettingsHasBeenSet; }
196 template<typename CodeEditorAppSettingsT = CodeEditorAppSettings>
197 void SetCodeEditorAppSettings(CodeEditorAppSettingsT&& value) { m_codeEditorAppSettingsHasBeenSet = true; m_codeEditorAppSettings = std::forward<CodeEditorAppSettingsT>(value); }
198 template<typename CodeEditorAppSettingsT = CodeEditorAppSettings>
199 UserSettings& WithCodeEditorAppSettings(CodeEditorAppSettingsT&& value) { SetCodeEditorAppSettings(std::forward<CodeEditorAppSettingsT>(value)); return *this;}
201
203
208 inline const JupyterLabAppSettings& GetJupyterLabAppSettings() const { return m_jupyterLabAppSettings; }
209 inline bool JupyterLabAppSettingsHasBeenSet() const { return m_jupyterLabAppSettingsHasBeenSet; }
210 template<typename JupyterLabAppSettingsT = JupyterLabAppSettings>
211 void SetJupyterLabAppSettings(JupyterLabAppSettingsT&& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = std::forward<JupyterLabAppSettingsT>(value); }
212 template<typename JupyterLabAppSettingsT = JupyterLabAppSettings>
213 UserSettings& WithJupyterLabAppSettings(JupyterLabAppSettingsT&& value) { SetJupyterLabAppSettings(std::forward<JupyterLabAppSettingsT>(value)); return *this;}
215
217
222 inline const DefaultSpaceStorageSettings& GetSpaceStorageSettings() const { return m_spaceStorageSettings; }
223 inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; }
224 template<typename SpaceStorageSettingsT = DefaultSpaceStorageSettings>
225 void SetSpaceStorageSettings(SpaceStorageSettingsT&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::forward<SpaceStorageSettingsT>(value); }
226 template<typename SpaceStorageSettingsT = DefaultSpaceStorageSettings>
227 UserSettings& WithSpaceStorageSettings(SpaceStorageSettingsT&& value) { SetSpaceStorageSettings(std::forward<SpaceStorageSettingsT>(value)); return *this;}
229
231
239 inline const Aws::String& GetDefaultLandingUri() const { return m_defaultLandingUri; }
240 inline bool DefaultLandingUriHasBeenSet() const { return m_defaultLandingUriHasBeenSet; }
241 template<typename DefaultLandingUriT = Aws::String>
242 void SetDefaultLandingUri(DefaultLandingUriT&& value) { m_defaultLandingUriHasBeenSet = true; m_defaultLandingUri = std::forward<DefaultLandingUriT>(value); }
243 template<typename DefaultLandingUriT = Aws::String>
244 UserSettings& WithDefaultLandingUri(DefaultLandingUriT&& value) { SetDefaultLandingUri(std::forward<DefaultLandingUriT>(value)); return *this;}
246
248
253 inline StudioWebPortal GetStudioWebPortal() const { return m_studioWebPortal; }
254 inline bool StudioWebPortalHasBeenSet() const { return m_studioWebPortalHasBeenSet; }
255 inline void SetStudioWebPortal(StudioWebPortal value) { m_studioWebPortalHasBeenSet = true; m_studioWebPortal = value; }
258
260
265 inline const CustomPosixUserConfig& GetCustomPosixUserConfig() const { return m_customPosixUserConfig; }
266 inline bool CustomPosixUserConfigHasBeenSet() const { return m_customPosixUserConfigHasBeenSet; }
267 template<typename CustomPosixUserConfigT = CustomPosixUserConfig>
268 void SetCustomPosixUserConfig(CustomPosixUserConfigT&& value) { m_customPosixUserConfigHasBeenSet = true; m_customPosixUserConfig = std::forward<CustomPosixUserConfigT>(value); }
269 template<typename CustomPosixUserConfigT = CustomPosixUserConfig>
270 UserSettings& WithCustomPosixUserConfig(CustomPosixUserConfigT&& value) { SetCustomPosixUserConfig(std::forward<CustomPosixUserConfigT>(value)); return *this;}
272
274
280 inline const Aws::Vector<CustomFileSystemConfig>& GetCustomFileSystemConfigs() const { return m_customFileSystemConfigs; }
281 inline bool CustomFileSystemConfigsHasBeenSet() const { return m_customFileSystemConfigsHasBeenSet; }
282 template<typename CustomFileSystemConfigsT = Aws::Vector<CustomFileSystemConfig>>
283 void SetCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs = std::forward<CustomFileSystemConfigsT>(value); }
284 template<typename CustomFileSystemConfigsT = Aws::Vector<CustomFileSystemConfig>>
285 UserSettings& WithCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) { SetCustomFileSystemConfigs(std::forward<CustomFileSystemConfigsT>(value)); return *this;}
286 template<typename CustomFileSystemConfigsT = CustomFileSystemConfig>
287 UserSettings& AddCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs.emplace_back(std::forward<CustomFileSystemConfigsT>(value)); return *this; }
289
291
295 inline const StudioWebPortalSettings& GetStudioWebPortalSettings() const { return m_studioWebPortalSettings; }
296 inline bool StudioWebPortalSettingsHasBeenSet() const { return m_studioWebPortalSettingsHasBeenSet; }
297 template<typename StudioWebPortalSettingsT = StudioWebPortalSettings>
298 void SetStudioWebPortalSettings(StudioWebPortalSettingsT&& value) { m_studioWebPortalSettingsHasBeenSet = true; m_studioWebPortalSettings = std::forward<StudioWebPortalSettingsT>(value); }
299 template<typename StudioWebPortalSettingsT = StudioWebPortalSettings>
300 UserSettings& WithStudioWebPortalSettings(StudioWebPortalSettingsT&& value) { SetStudioWebPortalSettings(std::forward<StudioWebPortalSettingsT>(value)); return *this;}
302
304
312 inline AutoMountHomeEFS GetAutoMountHomeEFS() const { return m_autoMountHomeEFS; }
313 inline bool AutoMountHomeEFSHasBeenSet() const { return m_autoMountHomeEFSHasBeenSet; }
314 inline void SetAutoMountHomeEFS(AutoMountHomeEFS value) { m_autoMountHomeEFSHasBeenSet = true; m_autoMountHomeEFS = value; }
317 private:
318
319 Aws::String m_executionRole;
320 bool m_executionRoleHasBeenSet = false;
321
322 Aws::Vector<Aws::String> m_securityGroups;
323 bool m_securityGroupsHasBeenSet = false;
324
325 SharingSettings m_sharingSettings;
326 bool m_sharingSettingsHasBeenSet = false;
327
328 JupyterServerAppSettings m_jupyterServerAppSettings;
329 bool m_jupyterServerAppSettingsHasBeenSet = false;
330
331 KernelGatewayAppSettings m_kernelGatewayAppSettings;
332 bool m_kernelGatewayAppSettingsHasBeenSet = false;
333
334 TensorBoardAppSettings m_tensorBoardAppSettings;
335 bool m_tensorBoardAppSettingsHasBeenSet = false;
336
337 RStudioServerProAppSettings m_rStudioServerProAppSettings;
338 bool m_rStudioServerProAppSettingsHasBeenSet = false;
339
340 RSessionAppSettings m_rSessionAppSettings;
341 bool m_rSessionAppSettingsHasBeenSet = false;
342
343 CanvasAppSettings m_canvasAppSettings;
344 bool m_canvasAppSettingsHasBeenSet = false;
345
346 CodeEditorAppSettings m_codeEditorAppSettings;
347 bool m_codeEditorAppSettingsHasBeenSet = false;
348
349 JupyterLabAppSettings m_jupyterLabAppSettings;
350 bool m_jupyterLabAppSettingsHasBeenSet = false;
351
352 DefaultSpaceStorageSettings m_spaceStorageSettings;
353 bool m_spaceStorageSettingsHasBeenSet = false;
354
355 Aws::String m_defaultLandingUri;
356 bool m_defaultLandingUriHasBeenSet = false;
357
358 StudioWebPortal m_studioWebPortal{StudioWebPortal::NOT_SET};
359 bool m_studioWebPortalHasBeenSet = false;
360
361 CustomPosixUserConfig m_customPosixUserConfig;
362 bool m_customPosixUserConfigHasBeenSet = false;
363
364 Aws::Vector<CustomFileSystemConfig> m_customFileSystemConfigs;
365 bool m_customFileSystemConfigsHasBeenSet = false;
366
367 StudioWebPortalSettings m_studioWebPortalSettings;
368 bool m_studioWebPortalSettingsHasBeenSet = false;
369
371 bool m_autoMountHomeEFSHasBeenSet = false;
372 };
373
374} // namespace Model
375} // namespace SageMaker
376} // namespace Aws
void SetTensorBoardAppSettings(TensorBoardAppSettingsT &&value)
UserSettings & WithCustomPosixUserConfig(CustomPosixUserConfigT &&value)
void SetCustomFileSystemConfigs(CustomFileSystemConfigsT &&value)
void SetRSessionAppSettings(RSessionAppSettingsT &&value)
const Aws::String & GetDefaultLandingUri() const
const StudioWebPortalSettings & GetStudioWebPortalSettings() const
const DefaultSpaceStorageSettings & GetSpaceStorageSettings() const
void SetDefaultLandingUri(DefaultLandingUriT &&value)
AWS_SAGEMAKER_API UserSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
UserSettings & WithSpaceStorageSettings(SpaceStorageSettingsT &&value)
UserSettings & WithRStudioServerProAppSettings(RStudioServerProAppSettingsT &&value)
UserSettings & AddCustomFileSystemConfigs(CustomFileSystemConfigsT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
const RStudioServerProAppSettings & GetRStudioServerProAppSettings() const
UserSettings & WithSecurityGroups(SecurityGroupsT &&value)
void SetStudioWebPortalSettings(StudioWebPortalSettingsT &&value)
UserSettings & WithTensorBoardAppSettings(TensorBoardAppSettingsT &&value)
void SetCustomPosixUserConfig(CustomPosixUserConfigT &&value)
void SetJupyterServerAppSettings(JupyterServerAppSettingsT &&value)
UserSettings & WithCodeEditorAppSettings(CodeEditorAppSettingsT &&value)
UserSettings & WithRSessionAppSettings(RSessionAppSettingsT &&value)
void SetRStudioServerProAppSettings(RStudioServerProAppSettingsT &&value)
const JupyterServerAppSettings & GetJupyterServerAppSettings() const
UserSettings & WithDefaultLandingUri(DefaultLandingUriT &&value)
AWS_SAGEMAKER_API UserSettings()=default
void SetCanvasAppSettings(CanvasAppSettingsT &&value)
void SetAutoMountHomeEFS(AutoMountHomeEFS value)
const TensorBoardAppSettings & GetTensorBoardAppSettings() const
const CanvasAppSettings & GetCanvasAppSettings() const
UserSettings & WithExecutionRole(ExecutionRoleT &&value)
const JupyterLabAppSettings & GetJupyterLabAppSettings() const
UserSettings & WithJupyterLabAppSettings(JupyterLabAppSettingsT &&value)
UserSettings & AddSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< CustomFileSystemConfig > & GetCustomFileSystemConfigs() const
UserSettings & WithCustomFileSystemConfigs(CustomFileSystemConfigsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroups(SecurityGroupsT &&value)
StudioWebPortal GetStudioWebPortal() const
AutoMountHomeEFS GetAutoMountHomeEFS() const
AWS_SAGEMAKER_API UserSettings(Aws::Utils::Json::JsonView jsonValue)
void SetStudioWebPortal(StudioWebPortal value)
void SetJupyterLabAppSettings(JupyterLabAppSettingsT &&value)
const KernelGatewayAppSettings & GetKernelGatewayAppSettings() const
void SetSpaceStorageSettings(SpaceStorageSettingsT &&value)
UserSettings & WithStudioWebPortalSettings(StudioWebPortalSettingsT &&value)
void SetKernelGatewayAppSettings(KernelGatewayAppSettingsT &&value)
UserSettings & WithKernelGatewayAppSettings(KernelGatewayAppSettingsT &&value)
const SharingSettings & GetSharingSettings() const
UserSettings & WithJupyterServerAppSettings(JupyterServerAppSettingsT &&value)
const RSessionAppSettings & GetRSessionAppSettings() const
UserSettings & WithSharingSettings(SharingSettingsT &&value)
void SetCodeEditorAppSettings(CodeEditorAppSettingsT &&value)
UserSettings & WithCanvasAppSettings(CanvasAppSettingsT &&value)
UserSettings & WithAutoMountHomeEFS(AutoMountHomeEFS value)
void SetSharingSettings(SharingSettingsT &&value)
UserSettings & WithStudioWebPortal(StudioWebPortal value)
const CodeEditorAppSettings & GetCodeEditorAppSettings() const
const CustomPosixUserConfig & GetCustomPosixUserConfig() const
const Aws::String & GetExecutionRole() 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