AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UserSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AutoMountHomeEFS.h>
11#include <aws/sagemaker/model/CanvasAppSettings.h>
12#include <aws/sagemaker/model/CodeEditorAppSettings.h>
13#include <aws/sagemaker/model/CustomFileSystemConfig.h>
14#include <aws/sagemaker/model/CustomPosixUserConfig.h>
15#include <aws/sagemaker/model/DefaultSpaceStorageSettings.h>
16#include <aws/sagemaker/model/JupyterLabAppSettings.h>
17#include <aws/sagemaker/model/JupyterServerAppSettings.h>
18#include <aws/sagemaker/model/KernelGatewayAppSettings.h>
19#include <aws/sagemaker/model/RSessionAppSettings.h>
20#include <aws/sagemaker/model/RStudioServerProAppSettings.h>
21#include <aws/sagemaker/model/SharingSettings.h>
22#include <aws/sagemaker/model/StudioWebPortal.h>
23#include <aws/sagemaker/model/StudioWebPortalSettings.h>
24#include <aws/sagemaker/model/TensorBoardAppSettings.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Json {
31class JsonValue;
32class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace SageMaker {
36namespace Model {
37
50 public:
51 AWS_SAGEMAKER_API UserSettings() = default;
52 AWS_SAGEMAKER_API UserSettings(Aws::Utils::Json::JsonView jsonValue);
53 AWS_SAGEMAKER_API UserSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
55
57
62 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
63 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
64 template <typename ExecutionRoleT = Aws::String>
65 void SetExecutionRole(ExecutionRoleT&& value) {
66 m_executionRoleHasBeenSet = true;
67 m_executionRole = std::forward<ExecutionRoleT>(value);
68 }
69 template <typename ExecutionRoleT = Aws::String>
70 UserSettings& WithExecutionRole(ExecutionRoleT&& value) {
71 SetExecutionRole(std::forward<ExecutionRoleT>(value));
72 return *this;
73 }
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) {
95 m_securityGroupsHasBeenSet = true;
96 m_securityGroups = std::forward<SecurityGroupsT>(value);
97 }
98 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
99 UserSettings& WithSecurityGroups(SecurityGroupsT&& value) {
100 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
101 return *this;
102 }
103 template <typename SecurityGroupsT = Aws::String>
104 UserSettings& AddSecurityGroups(SecurityGroupsT&& value) {
105 m_securityGroupsHasBeenSet = true;
106 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
107 return *this;
108 }
110
112
115 inline const SharingSettings& GetSharingSettings() const { return m_sharingSettings; }
116 inline bool SharingSettingsHasBeenSet() const { return m_sharingSettingsHasBeenSet; }
117 template <typename SharingSettingsT = SharingSettings>
118 void SetSharingSettings(SharingSettingsT&& value) {
119 m_sharingSettingsHasBeenSet = true;
120 m_sharingSettings = std::forward<SharingSettingsT>(value);
121 }
122 template <typename SharingSettingsT = SharingSettings>
123 UserSettings& WithSharingSettings(SharingSettingsT&& value) {
124 SetSharingSettings(std::forward<SharingSettingsT>(value));
125 return *this;
126 }
128
130
133 inline const JupyterServerAppSettings& GetJupyterServerAppSettings() const { return m_jupyterServerAppSettings; }
134 inline bool JupyterServerAppSettingsHasBeenSet() const { return m_jupyterServerAppSettingsHasBeenSet; }
135 template <typename JupyterServerAppSettingsT = JupyterServerAppSettings>
136 void SetJupyterServerAppSettings(JupyterServerAppSettingsT&& value) {
137 m_jupyterServerAppSettingsHasBeenSet = true;
138 m_jupyterServerAppSettings = std::forward<JupyterServerAppSettingsT>(value);
139 }
140 template <typename JupyterServerAppSettingsT = JupyterServerAppSettings>
141 UserSettings& WithJupyterServerAppSettings(JupyterServerAppSettingsT&& value) {
142 SetJupyterServerAppSettings(std::forward<JupyterServerAppSettingsT>(value));
143 return *this;
144 }
146
148
151 inline const KernelGatewayAppSettings& GetKernelGatewayAppSettings() const { return m_kernelGatewayAppSettings; }
152 inline bool KernelGatewayAppSettingsHasBeenSet() const { return m_kernelGatewayAppSettingsHasBeenSet; }
153 template <typename KernelGatewayAppSettingsT = KernelGatewayAppSettings>
154 void SetKernelGatewayAppSettings(KernelGatewayAppSettingsT&& value) {
155 m_kernelGatewayAppSettingsHasBeenSet = true;
156 m_kernelGatewayAppSettings = std::forward<KernelGatewayAppSettingsT>(value);
157 }
158 template <typename KernelGatewayAppSettingsT = KernelGatewayAppSettings>
159 UserSettings& WithKernelGatewayAppSettings(KernelGatewayAppSettingsT&& value) {
160 SetKernelGatewayAppSettings(std::forward<KernelGatewayAppSettingsT>(value));
161 return *this;
162 }
164
166
169 inline const TensorBoardAppSettings& GetTensorBoardAppSettings() const { return m_tensorBoardAppSettings; }
170 inline bool TensorBoardAppSettingsHasBeenSet() const { return m_tensorBoardAppSettingsHasBeenSet; }
171 template <typename TensorBoardAppSettingsT = TensorBoardAppSettings>
172 void SetTensorBoardAppSettings(TensorBoardAppSettingsT&& value) {
173 m_tensorBoardAppSettingsHasBeenSet = true;
174 m_tensorBoardAppSettings = std::forward<TensorBoardAppSettingsT>(value);
175 }
176 template <typename TensorBoardAppSettingsT = TensorBoardAppSettings>
177 UserSettings& WithTensorBoardAppSettings(TensorBoardAppSettingsT&& value) {
178 SetTensorBoardAppSettings(std::forward<TensorBoardAppSettingsT>(value));
179 return *this;
180 }
182
184
188 inline const RStudioServerProAppSettings& GetRStudioServerProAppSettings() const { return m_rStudioServerProAppSettings; }
189 inline bool RStudioServerProAppSettingsHasBeenSet() const { return m_rStudioServerProAppSettingsHasBeenSet; }
190 template <typename RStudioServerProAppSettingsT = RStudioServerProAppSettings>
191 void SetRStudioServerProAppSettings(RStudioServerProAppSettingsT&& value) {
192 m_rStudioServerProAppSettingsHasBeenSet = true;
193 m_rStudioServerProAppSettings = std::forward<RStudioServerProAppSettingsT>(value);
194 }
195 template <typename RStudioServerProAppSettingsT = RStudioServerProAppSettings>
196 UserSettings& WithRStudioServerProAppSettings(RStudioServerProAppSettingsT&& value) {
197 SetRStudioServerProAppSettings(std::forward<RStudioServerProAppSettingsT>(value));
198 return *this;
199 }
201
203
207 inline const RSessionAppSettings& GetRSessionAppSettings() const { return m_rSessionAppSettings; }
208 inline bool RSessionAppSettingsHasBeenSet() const { return m_rSessionAppSettingsHasBeenSet; }
209 template <typename RSessionAppSettingsT = RSessionAppSettings>
210 void SetRSessionAppSettings(RSessionAppSettingsT&& value) {
211 m_rSessionAppSettingsHasBeenSet = true;
212 m_rSessionAppSettings = std::forward<RSessionAppSettingsT>(value);
213 }
214 template <typename RSessionAppSettingsT = RSessionAppSettings>
215 UserSettings& WithRSessionAppSettings(RSessionAppSettingsT&& value) {
216 SetRSessionAppSettings(std::forward<RSessionAppSettingsT>(value));
217 return *this;
218 }
220
222
226 inline const CanvasAppSettings& GetCanvasAppSettings() const { return m_canvasAppSettings; }
227 inline bool CanvasAppSettingsHasBeenSet() const { return m_canvasAppSettingsHasBeenSet; }
228 template <typename CanvasAppSettingsT = CanvasAppSettings>
229 void SetCanvasAppSettings(CanvasAppSettingsT&& value) {
230 m_canvasAppSettingsHasBeenSet = true;
231 m_canvasAppSettings = std::forward<CanvasAppSettingsT>(value);
232 }
233 template <typename CanvasAppSettingsT = CanvasAppSettings>
234 UserSettings& WithCanvasAppSettings(CanvasAppSettingsT&& value) {
235 SetCanvasAppSettings(std::forward<CanvasAppSettingsT>(value));
236 return *this;
237 }
239
241
246 inline const CodeEditorAppSettings& GetCodeEditorAppSettings() const { return m_codeEditorAppSettings; }
247 inline bool CodeEditorAppSettingsHasBeenSet() const { return m_codeEditorAppSettingsHasBeenSet; }
248 template <typename CodeEditorAppSettingsT = CodeEditorAppSettings>
249 void SetCodeEditorAppSettings(CodeEditorAppSettingsT&& value) {
250 m_codeEditorAppSettingsHasBeenSet = true;
251 m_codeEditorAppSettings = std::forward<CodeEditorAppSettingsT>(value);
252 }
253 template <typename CodeEditorAppSettingsT = CodeEditorAppSettings>
254 UserSettings& WithCodeEditorAppSettings(CodeEditorAppSettingsT&& value) {
255 SetCodeEditorAppSettings(std::forward<CodeEditorAppSettingsT>(value));
256 return *this;
257 }
259
261
266 inline const JupyterLabAppSettings& GetJupyterLabAppSettings() const { return m_jupyterLabAppSettings; }
267 inline bool JupyterLabAppSettingsHasBeenSet() const { return m_jupyterLabAppSettingsHasBeenSet; }
268 template <typename JupyterLabAppSettingsT = JupyterLabAppSettings>
269 void SetJupyterLabAppSettings(JupyterLabAppSettingsT&& value) {
270 m_jupyterLabAppSettingsHasBeenSet = true;
271 m_jupyterLabAppSettings = std::forward<JupyterLabAppSettingsT>(value);
272 }
273 template <typename JupyterLabAppSettingsT = JupyterLabAppSettings>
274 UserSettings& WithJupyterLabAppSettings(JupyterLabAppSettingsT&& value) {
275 SetJupyterLabAppSettings(std::forward<JupyterLabAppSettingsT>(value));
276 return *this;
277 }
279
281
286 inline const DefaultSpaceStorageSettings& GetSpaceStorageSettings() const { return m_spaceStorageSettings; }
287 inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; }
288 template <typename SpaceStorageSettingsT = DefaultSpaceStorageSettings>
289 void SetSpaceStorageSettings(SpaceStorageSettingsT&& value) {
290 m_spaceStorageSettingsHasBeenSet = true;
291 m_spaceStorageSettings = std::forward<SpaceStorageSettingsT>(value);
292 }
293 template <typename SpaceStorageSettingsT = DefaultSpaceStorageSettings>
294 UserSettings& WithSpaceStorageSettings(SpaceStorageSettingsT&& value) {
295 SetSpaceStorageSettings(std::forward<SpaceStorageSettingsT>(value));
296 return *this;
297 }
299
301
309 inline const Aws::String& GetDefaultLandingUri() const { return m_defaultLandingUri; }
310 inline bool DefaultLandingUriHasBeenSet() const { return m_defaultLandingUriHasBeenSet; }
311 template <typename DefaultLandingUriT = Aws::String>
312 void SetDefaultLandingUri(DefaultLandingUriT&& value) {
313 m_defaultLandingUriHasBeenSet = true;
314 m_defaultLandingUri = std::forward<DefaultLandingUriT>(value);
315 }
316 template <typename DefaultLandingUriT = Aws::String>
317 UserSettings& WithDefaultLandingUri(DefaultLandingUriT&& value) {
318 SetDefaultLandingUri(std::forward<DefaultLandingUriT>(value));
319 return *this;
320 }
322
324
329 inline StudioWebPortal GetStudioWebPortal() const { return m_studioWebPortal; }
330 inline bool StudioWebPortalHasBeenSet() const { return m_studioWebPortalHasBeenSet; }
332 m_studioWebPortalHasBeenSet = true;
333 m_studioWebPortal = value;
334 }
336 SetStudioWebPortal(value);
337 return *this;
338 }
340
342
347 inline const CustomPosixUserConfig& GetCustomPosixUserConfig() const { return m_customPosixUserConfig; }
348 inline bool CustomPosixUserConfigHasBeenSet() const { return m_customPosixUserConfigHasBeenSet; }
349 template <typename CustomPosixUserConfigT = CustomPosixUserConfig>
350 void SetCustomPosixUserConfig(CustomPosixUserConfigT&& value) {
351 m_customPosixUserConfigHasBeenSet = true;
352 m_customPosixUserConfig = std::forward<CustomPosixUserConfigT>(value);
353 }
354 template <typename CustomPosixUserConfigT = CustomPosixUserConfig>
355 UserSettings& WithCustomPosixUserConfig(CustomPosixUserConfigT&& value) {
356 SetCustomPosixUserConfig(std::forward<CustomPosixUserConfigT>(value));
357 return *this;
358 }
360
362
368 inline const Aws::Vector<CustomFileSystemConfig>& GetCustomFileSystemConfigs() const { return m_customFileSystemConfigs; }
369 inline bool CustomFileSystemConfigsHasBeenSet() const { return m_customFileSystemConfigsHasBeenSet; }
370 template <typename CustomFileSystemConfigsT = Aws::Vector<CustomFileSystemConfig>>
371 void SetCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) {
372 m_customFileSystemConfigsHasBeenSet = true;
373 m_customFileSystemConfigs = std::forward<CustomFileSystemConfigsT>(value);
374 }
375 template <typename CustomFileSystemConfigsT = Aws::Vector<CustomFileSystemConfig>>
376 UserSettings& WithCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) {
377 SetCustomFileSystemConfigs(std::forward<CustomFileSystemConfigsT>(value));
378 return *this;
379 }
380 template <typename CustomFileSystemConfigsT = CustomFileSystemConfig>
381 UserSettings& AddCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) {
382 m_customFileSystemConfigsHasBeenSet = true;
383 m_customFileSystemConfigs.emplace_back(std::forward<CustomFileSystemConfigsT>(value));
384 return *this;
385 }
387
389
393 inline const StudioWebPortalSettings& GetStudioWebPortalSettings() const { return m_studioWebPortalSettings; }
394 inline bool StudioWebPortalSettingsHasBeenSet() const { return m_studioWebPortalSettingsHasBeenSet; }
395 template <typename StudioWebPortalSettingsT = StudioWebPortalSettings>
396 void SetStudioWebPortalSettings(StudioWebPortalSettingsT&& value) {
397 m_studioWebPortalSettingsHasBeenSet = true;
398 m_studioWebPortalSettings = std::forward<StudioWebPortalSettingsT>(value);
399 }
400 template <typename StudioWebPortalSettingsT = StudioWebPortalSettings>
401 UserSettings& WithStudioWebPortalSettings(StudioWebPortalSettingsT&& value) {
402 SetStudioWebPortalSettings(std::forward<StudioWebPortalSettingsT>(value));
403 return *this;
404 }
406
408
416 inline AutoMountHomeEFS GetAutoMountHomeEFS() const { return m_autoMountHomeEFS; }
417 inline bool AutoMountHomeEFSHasBeenSet() const { return m_autoMountHomeEFSHasBeenSet; }
419 m_autoMountHomeEFSHasBeenSet = true;
420 m_autoMountHomeEFS = value;
421 }
423 SetAutoMountHomeEFS(value);
424 return *this;
425 }
427 private:
428 Aws::String m_executionRole;
429
430 Aws::Vector<Aws::String> m_securityGroups;
431
432 SharingSettings m_sharingSettings;
433
434 JupyterServerAppSettings m_jupyterServerAppSettings;
435
436 KernelGatewayAppSettings m_kernelGatewayAppSettings;
437
438 TensorBoardAppSettings m_tensorBoardAppSettings;
439
440 RStudioServerProAppSettings m_rStudioServerProAppSettings;
441
442 RSessionAppSettings m_rSessionAppSettings;
443
444 CanvasAppSettings m_canvasAppSettings;
445
446 CodeEditorAppSettings m_codeEditorAppSettings;
447
448 JupyterLabAppSettings m_jupyterLabAppSettings;
449
450 DefaultSpaceStorageSettings m_spaceStorageSettings;
451
452 Aws::String m_defaultLandingUri;
453
454 StudioWebPortal m_studioWebPortal{StudioWebPortal::NOT_SET};
455
456 CustomPosixUserConfig m_customPosixUserConfig;
457
458 Aws::Vector<CustomFileSystemConfig> m_customFileSystemConfigs;
459
460 StudioWebPortalSettings m_studioWebPortalSettings;
461
463 bool m_executionRoleHasBeenSet = false;
464 bool m_securityGroupsHasBeenSet = false;
465 bool m_sharingSettingsHasBeenSet = false;
466 bool m_jupyterServerAppSettingsHasBeenSet = false;
467 bool m_kernelGatewayAppSettingsHasBeenSet = false;
468 bool m_tensorBoardAppSettingsHasBeenSet = false;
469 bool m_rStudioServerProAppSettingsHasBeenSet = false;
470 bool m_rSessionAppSettingsHasBeenSet = false;
471 bool m_canvasAppSettingsHasBeenSet = false;
472 bool m_codeEditorAppSettingsHasBeenSet = false;
473 bool m_jupyterLabAppSettingsHasBeenSet = false;
474 bool m_spaceStorageSettingsHasBeenSet = false;
475 bool m_defaultLandingUriHasBeenSet = false;
476 bool m_studioWebPortalHasBeenSet = false;
477 bool m_customPosixUserConfigHasBeenSet = false;
478 bool m_customFileSystemConfigsHasBeenSet = false;
479 bool m_studioWebPortalSettingsHasBeenSet = false;
480 bool m_autoMountHomeEFSHasBeenSet = false;
481};
482
483} // namespace Model
484} // namespace SageMaker
485} // 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