AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DefaultSpaceSettings.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/CustomFileSystemConfig.h>
11#include <aws/sagemaker/model/CustomPosixUserConfig.h>
12#include <aws/sagemaker/model/DefaultSpaceStorageSettings.h>
13#include <aws/sagemaker/model/JupyterLabAppSettings.h>
14#include <aws/sagemaker/model/JupyterServerAppSettings.h>
15#include <aws/sagemaker/model/KernelGatewayAppSettings.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
37 public:
38 AWS_SAGEMAKER_API DefaultSpaceSettings() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
48 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
49 template <typename ExecutionRoleT = Aws::String>
50 void SetExecutionRole(ExecutionRoleT&& value) {
51 m_executionRoleHasBeenSet = true;
52 m_executionRole = std::forward<ExecutionRoleT>(value);
53 }
54 template <typename ExecutionRoleT = Aws::String>
55 DefaultSpaceSettings& WithExecutionRole(ExecutionRoleT&& value) {
56 SetExecutionRole(std::forward<ExecutionRoleT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
67 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
68 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
69 void SetSecurityGroups(SecurityGroupsT&& value) {
70 m_securityGroupsHasBeenSet = true;
71 m_securityGroups = std::forward<SecurityGroupsT>(value);
72 }
73 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
74 DefaultSpaceSettings& WithSecurityGroups(SecurityGroupsT&& value) {
75 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
76 return *this;
77 }
78 template <typename SecurityGroupsT = Aws::String>
79 DefaultSpaceSettings& AddSecurityGroups(SecurityGroupsT&& value) {
80 m_securityGroupsHasBeenSet = true;
81 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
82 return *this;
83 }
85
87
88 inline const JupyterServerAppSettings& GetJupyterServerAppSettings() const { return m_jupyterServerAppSettings; }
89 inline bool JupyterServerAppSettingsHasBeenSet() const { return m_jupyterServerAppSettingsHasBeenSet; }
90 template <typename JupyterServerAppSettingsT = JupyterServerAppSettings>
91 void SetJupyterServerAppSettings(JupyterServerAppSettingsT&& value) {
92 m_jupyterServerAppSettingsHasBeenSet = true;
93 m_jupyterServerAppSettings = std::forward<JupyterServerAppSettingsT>(value);
94 }
95 template <typename JupyterServerAppSettingsT = JupyterServerAppSettings>
96 DefaultSpaceSettings& WithJupyterServerAppSettings(JupyterServerAppSettingsT&& value) {
97 SetJupyterServerAppSettings(std::forward<JupyterServerAppSettingsT>(value));
98 return *this;
99 }
101
103
104 inline const KernelGatewayAppSettings& GetKernelGatewayAppSettings() const { return m_kernelGatewayAppSettings; }
105 inline bool KernelGatewayAppSettingsHasBeenSet() const { return m_kernelGatewayAppSettingsHasBeenSet; }
106 template <typename KernelGatewayAppSettingsT = KernelGatewayAppSettings>
107 void SetKernelGatewayAppSettings(KernelGatewayAppSettingsT&& value) {
108 m_kernelGatewayAppSettingsHasBeenSet = true;
109 m_kernelGatewayAppSettings = std::forward<KernelGatewayAppSettingsT>(value);
110 }
111 template <typename KernelGatewayAppSettingsT = KernelGatewayAppSettings>
112 DefaultSpaceSettings& WithKernelGatewayAppSettings(KernelGatewayAppSettingsT&& value) {
113 SetKernelGatewayAppSettings(std::forward<KernelGatewayAppSettingsT>(value));
114 return *this;
115 }
117
119
120 inline const JupyterLabAppSettings& GetJupyterLabAppSettings() const { return m_jupyterLabAppSettings; }
121 inline bool JupyterLabAppSettingsHasBeenSet() const { return m_jupyterLabAppSettingsHasBeenSet; }
122 template <typename JupyterLabAppSettingsT = JupyterLabAppSettings>
123 void SetJupyterLabAppSettings(JupyterLabAppSettingsT&& value) {
124 m_jupyterLabAppSettingsHasBeenSet = true;
125 m_jupyterLabAppSettings = std::forward<JupyterLabAppSettingsT>(value);
126 }
127 template <typename JupyterLabAppSettingsT = JupyterLabAppSettings>
128 DefaultSpaceSettings& WithJupyterLabAppSettings(JupyterLabAppSettingsT&& value) {
129 SetJupyterLabAppSettings(std::forward<JupyterLabAppSettingsT>(value));
130 return *this;
131 }
133
135
136 inline const DefaultSpaceStorageSettings& GetSpaceStorageSettings() const { return m_spaceStorageSettings; }
137 inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; }
138 template <typename SpaceStorageSettingsT = DefaultSpaceStorageSettings>
139 void SetSpaceStorageSettings(SpaceStorageSettingsT&& value) {
140 m_spaceStorageSettingsHasBeenSet = true;
141 m_spaceStorageSettings = std::forward<SpaceStorageSettingsT>(value);
142 }
143 template <typename SpaceStorageSettingsT = DefaultSpaceStorageSettings>
144 DefaultSpaceSettings& WithSpaceStorageSettings(SpaceStorageSettingsT&& value) {
145 SetSpaceStorageSettings(std::forward<SpaceStorageSettingsT>(value));
146 return *this;
147 }
149
151
152 inline const CustomPosixUserConfig& GetCustomPosixUserConfig() const { return m_customPosixUserConfig; }
153 inline bool CustomPosixUserConfigHasBeenSet() const { return m_customPosixUserConfigHasBeenSet; }
154 template <typename CustomPosixUserConfigT = CustomPosixUserConfig>
155 void SetCustomPosixUserConfig(CustomPosixUserConfigT&& value) {
156 m_customPosixUserConfigHasBeenSet = true;
157 m_customPosixUserConfig = std::forward<CustomPosixUserConfigT>(value);
158 }
159 template <typename CustomPosixUserConfigT = CustomPosixUserConfig>
160 DefaultSpaceSettings& WithCustomPosixUserConfig(CustomPosixUserConfigT&& value) {
161 SetCustomPosixUserConfig(std::forward<CustomPosixUserConfigT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Vector<CustomFileSystemConfig>& GetCustomFileSystemConfigs() const { return m_customFileSystemConfigs; }
172 inline bool CustomFileSystemConfigsHasBeenSet() const { return m_customFileSystemConfigsHasBeenSet; }
173 template <typename CustomFileSystemConfigsT = Aws::Vector<CustomFileSystemConfig>>
174 void SetCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) {
175 m_customFileSystemConfigsHasBeenSet = true;
176 m_customFileSystemConfigs = std::forward<CustomFileSystemConfigsT>(value);
177 }
178 template <typename CustomFileSystemConfigsT = Aws::Vector<CustomFileSystemConfig>>
179 DefaultSpaceSettings& WithCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) {
180 SetCustomFileSystemConfigs(std::forward<CustomFileSystemConfigsT>(value));
181 return *this;
182 }
183 template <typename CustomFileSystemConfigsT = CustomFileSystemConfig>
184 DefaultSpaceSettings& AddCustomFileSystemConfigs(CustomFileSystemConfigsT&& value) {
185 m_customFileSystemConfigsHasBeenSet = true;
186 m_customFileSystemConfigs.emplace_back(std::forward<CustomFileSystemConfigsT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_executionRole;
192
193 Aws::Vector<Aws::String> m_securityGroups;
194
195 JupyterServerAppSettings m_jupyterServerAppSettings;
196
197 KernelGatewayAppSettings m_kernelGatewayAppSettings;
198
199 JupyterLabAppSettings m_jupyterLabAppSettings;
200
201 DefaultSpaceStorageSettings m_spaceStorageSettings;
202
203 CustomPosixUserConfig m_customPosixUserConfig;
204
205 Aws::Vector<CustomFileSystemConfig> m_customFileSystemConfigs;
206 bool m_executionRoleHasBeenSet = false;
207 bool m_securityGroupsHasBeenSet = false;
208 bool m_jupyterServerAppSettingsHasBeenSet = false;
209 bool m_kernelGatewayAppSettingsHasBeenSet = false;
210 bool m_jupyterLabAppSettingsHasBeenSet = false;
211 bool m_spaceStorageSettingsHasBeenSet = false;
212 bool m_customPosixUserConfigHasBeenSet = false;
213 bool m_customFileSystemConfigsHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace SageMaker
218} // namespace Aws
DefaultSpaceSettings & WithJupyterServerAppSettings(JupyterServerAppSettingsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
DefaultSpaceSettings & WithExecutionRole(ExecutionRoleT &&value)
DefaultSpaceSettings & WithSpaceStorageSettings(SpaceStorageSettingsT &&value)
const CustomPosixUserConfig & GetCustomPosixUserConfig() const
void SetKernelGatewayAppSettings(KernelGatewayAppSettingsT &&value)
DefaultSpaceSettings & WithCustomPosixUserConfig(CustomPosixUserConfigT &&value)
const JupyterLabAppSettings & GetJupyterLabAppSettings() const
DefaultSpaceSettings & WithCustomFileSystemConfigs(CustomFileSystemConfigsT &&value)
void SetJupyterServerAppSettings(JupyterServerAppSettingsT &&value)
void SetCustomFileSystemConfigs(CustomFileSystemConfigsT &&value)
void SetJupyterLabAppSettings(JupyterLabAppSettingsT &&value)
const Aws::Vector< CustomFileSystemConfig > & GetCustomFileSystemConfigs() const
DefaultSpaceSettings & AddSecurityGroups(SecurityGroupsT &&value)
AWS_SAGEMAKER_API DefaultSpaceSettings()=default
const JupyterServerAppSettings & GetJupyterServerAppSettings() const
DefaultSpaceSettings & WithSecurityGroups(SecurityGroupsT &&value)
void SetSpaceStorageSettings(SpaceStorageSettingsT &&value)
DefaultSpaceSettings & AddCustomFileSystemConfigs(CustomFileSystemConfigsT &&value)
const DefaultSpaceStorageSettings & GetSpaceStorageSettings() const
AWS_SAGEMAKER_API DefaultSpaceSettings(Aws::Utils::Json::JsonView jsonValue)
DefaultSpaceSettings & WithJupyterLabAppSettings(JupyterLabAppSettingsT &&value)
DefaultSpaceSettings & WithKernelGatewayAppSettings(KernelGatewayAppSettingsT &&value)
void SetCustomPosixUserConfig(CustomPosixUserConfigT &&value)
AWS_SAGEMAKER_API DefaultSpaceSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const KernelGatewayAppSettings & GetKernelGatewayAppSettings() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroups(SecurityGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue