AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
JupyterLabAppSettings.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/AppLifecycleManagement.h>
11#include <aws/sagemaker/model/CodeRepository.h>
12#include <aws/sagemaker/model/CustomImage.h>
13#include <aws/sagemaker/model/EmrSettings.h>
14#include <aws/sagemaker/model/ResourceSpec.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
27
34 public:
35 AWS_SAGEMAKER_API JupyterLabAppSettings() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const ResourceSpec& GetDefaultResourceSpec() const { return m_defaultResourceSpec; }
43 inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
44 template <typename DefaultResourceSpecT = ResourceSpec>
45 void SetDefaultResourceSpec(DefaultResourceSpecT&& value) {
46 m_defaultResourceSpecHasBeenSet = true;
47 m_defaultResourceSpec = std::forward<DefaultResourceSpecT>(value);
48 }
49 template <typename DefaultResourceSpecT = ResourceSpec>
50 JupyterLabAppSettings& WithDefaultResourceSpec(DefaultResourceSpecT&& value) {
51 SetDefaultResourceSpec(std::forward<DefaultResourceSpecT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<CustomImage>& GetCustomImages() const { return m_customImages; }
62 inline bool CustomImagesHasBeenSet() const { return m_customImagesHasBeenSet; }
63 template <typename CustomImagesT = Aws::Vector<CustomImage>>
64 void SetCustomImages(CustomImagesT&& value) {
65 m_customImagesHasBeenSet = true;
66 m_customImages = std::forward<CustomImagesT>(value);
67 }
68 template <typename CustomImagesT = Aws::Vector<CustomImage>>
69 JupyterLabAppSettings& WithCustomImages(CustomImagesT&& value) {
70 SetCustomImages(std::forward<CustomImagesT>(value));
71 return *this;
72 }
73 template <typename CustomImagesT = CustomImage>
74 JupyterLabAppSettings& AddCustomImages(CustomImagesT&& value) {
75 m_customImagesHasBeenSet = true;
76 m_customImages.emplace_back(std::forward<CustomImagesT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<Aws::String>& GetLifecycleConfigArns() const { return m_lifecycleConfigArns; }
88 inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; }
89 template <typename LifecycleConfigArnsT = Aws::Vector<Aws::String>>
90 void SetLifecycleConfigArns(LifecycleConfigArnsT&& value) {
91 m_lifecycleConfigArnsHasBeenSet = true;
92 m_lifecycleConfigArns = std::forward<LifecycleConfigArnsT>(value);
93 }
94 template <typename LifecycleConfigArnsT = Aws::Vector<Aws::String>>
95 JupyterLabAppSettings& WithLifecycleConfigArns(LifecycleConfigArnsT&& value) {
96 SetLifecycleConfigArns(std::forward<LifecycleConfigArnsT>(value));
97 return *this;
98 }
99 template <typename LifecycleConfigArnsT = Aws::String>
100 JupyterLabAppSettings& AddLifecycleConfigArns(LifecycleConfigArnsT&& value) {
101 m_lifecycleConfigArnsHasBeenSet = true;
102 m_lifecycleConfigArns.emplace_back(std::forward<LifecycleConfigArnsT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Vector<CodeRepository>& GetCodeRepositories() const { return m_codeRepositories; }
113 inline bool CodeRepositoriesHasBeenSet() const { return m_codeRepositoriesHasBeenSet; }
114 template <typename CodeRepositoriesT = Aws::Vector<CodeRepository>>
115 void SetCodeRepositories(CodeRepositoriesT&& value) {
116 m_codeRepositoriesHasBeenSet = true;
117 m_codeRepositories = std::forward<CodeRepositoriesT>(value);
118 }
119 template <typename CodeRepositoriesT = Aws::Vector<CodeRepository>>
120 JupyterLabAppSettings& WithCodeRepositories(CodeRepositoriesT&& value) {
121 SetCodeRepositories(std::forward<CodeRepositoriesT>(value));
122 return *this;
123 }
124 template <typename CodeRepositoriesT = CodeRepository>
125 JupyterLabAppSettings& AddCodeRepositories(CodeRepositoriesT&& value) {
126 m_codeRepositoriesHasBeenSet = true;
127 m_codeRepositories.emplace_back(std::forward<CodeRepositoriesT>(value));
128 return *this;
129 }
131
133
136 inline const AppLifecycleManagement& GetAppLifecycleManagement() const { return m_appLifecycleManagement; }
137 inline bool AppLifecycleManagementHasBeenSet() const { return m_appLifecycleManagementHasBeenSet; }
138 template <typename AppLifecycleManagementT = AppLifecycleManagement>
139 void SetAppLifecycleManagement(AppLifecycleManagementT&& value) {
140 m_appLifecycleManagementHasBeenSet = true;
141 m_appLifecycleManagement = std::forward<AppLifecycleManagementT>(value);
142 }
143 template <typename AppLifecycleManagementT = AppLifecycleManagement>
144 JupyterLabAppSettings& WithAppLifecycleManagement(AppLifecycleManagementT&& value) {
145 SetAppLifecycleManagement(std::forward<AppLifecycleManagementT>(value));
146 return *this;
147 }
149
151
158 inline const EmrSettings& GetEmrSettings() const { return m_emrSettings; }
159 inline bool EmrSettingsHasBeenSet() const { return m_emrSettingsHasBeenSet; }
160 template <typename EmrSettingsT = EmrSettings>
161 void SetEmrSettings(EmrSettingsT&& value) {
162 m_emrSettingsHasBeenSet = true;
163 m_emrSettings = std::forward<EmrSettingsT>(value);
164 }
165 template <typename EmrSettingsT = EmrSettings>
166 JupyterLabAppSettings& WithEmrSettings(EmrSettingsT&& value) {
167 SetEmrSettings(std::forward<EmrSettingsT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::String& GetBuiltInLifecycleConfigArn() const { return m_builtInLifecycleConfigArn; }
179 inline bool BuiltInLifecycleConfigArnHasBeenSet() const { return m_builtInLifecycleConfigArnHasBeenSet; }
180 template <typename BuiltInLifecycleConfigArnT = Aws::String>
181 void SetBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT&& value) {
182 m_builtInLifecycleConfigArnHasBeenSet = true;
183 m_builtInLifecycleConfigArn = std::forward<BuiltInLifecycleConfigArnT>(value);
184 }
185 template <typename BuiltInLifecycleConfigArnT = Aws::String>
186 JupyterLabAppSettings& WithBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT&& value) {
187 SetBuiltInLifecycleConfigArn(std::forward<BuiltInLifecycleConfigArnT>(value));
188 return *this;
189 }
191 private:
192 ResourceSpec m_defaultResourceSpec;
193
194 Aws::Vector<CustomImage> m_customImages;
195
196 Aws::Vector<Aws::String> m_lifecycleConfigArns;
197
198 Aws::Vector<CodeRepository> m_codeRepositories;
199
200 AppLifecycleManagement m_appLifecycleManagement;
201
202 EmrSettings m_emrSettings;
203
204 Aws::String m_builtInLifecycleConfigArn;
205 bool m_defaultResourceSpecHasBeenSet = false;
206 bool m_customImagesHasBeenSet = false;
207 bool m_lifecycleConfigArnsHasBeenSet = false;
208 bool m_codeRepositoriesHasBeenSet = false;
209 bool m_appLifecycleManagementHasBeenSet = false;
210 bool m_emrSettingsHasBeenSet = false;
211 bool m_builtInLifecycleConfigArnHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace SageMaker
216} // namespace Aws
const Aws::Vector< Aws::String > & GetLifecycleConfigArns() const
JupyterLabAppSettings & AddLifecycleConfigArns(LifecycleConfigArnsT &&value)
JupyterLabAppSettings & WithAppLifecycleManagement(AppLifecycleManagementT &&value)
JupyterLabAppSettings & AddCustomImages(CustomImagesT &&value)
JupyterLabAppSettings & WithLifecycleConfigArns(LifecycleConfigArnsT &&value)
const Aws::Vector< CustomImage > & GetCustomImages() const
JupyterLabAppSettings & WithEmrSettings(EmrSettingsT &&value)
AWS_SAGEMAKER_API JupyterLabAppSettings(Aws::Utils::Json::JsonView jsonValue)
JupyterLabAppSettings & AddCodeRepositories(CodeRepositoriesT &&value)
JupyterLabAppSettings & WithBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT &&value)
void SetAppLifecycleManagement(AppLifecycleManagementT &&value)
const Aws::Vector< CodeRepository > & GetCodeRepositories() const
AWS_SAGEMAKER_API JupyterLabAppSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
JupyterLabAppSettings & WithCustomImages(CustomImagesT &&value)
JupyterLabAppSettings & WithCodeRepositories(CodeRepositoriesT &&value)
void SetBuiltInLifecycleConfigArn(BuiltInLifecycleConfigArnT &&value)
AWS_SAGEMAKER_API JupyterLabAppSettings()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLifecycleConfigArns(LifecycleConfigArnsT &&value)
JupyterLabAppSettings & WithDefaultResourceSpec(DefaultResourceSpecT &&value)
const AppLifecycleManagement & GetAppLifecycleManagement() const
void SetDefaultResourceSpec(DefaultResourceSpecT &&value)
void SetCodeRepositories(CodeRepositoriesT &&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