AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
UpdateNotebookInstanceRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/InstanceType.h>
11#include <aws/sagemaker/model/IPAddressType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/RootAccess.h>
14#include <aws/sagemaker/model/InstanceMetadataServiceConfiguration.h>
15#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_API UpdateNotebookInstanceRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotebookInstance"; }
37
38 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetNotebookInstanceName() const { return m_notebookInstanceName; }
48 inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
49 template<typename NotebookInstanceNameT = Aws::String>
50 void SetNotebookInstanceName(NotebookInstanceNameT&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::forward<NotebookInstanceNameT>(value); }
51 template<typename NotebookInstanceNameT = Aws::String>
52 UpdateNotebookInstanceRequest& WithNotebookInstanceName(NotebookInstanceNameT&& value) { SetNotebookInstanceName(std::forward<NotebookInstanceNameT>(value)); return *this;}
54
56
59 inline InstanceType GetInstanceType() const { return m_instanceType; }
60 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
61 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
64
66
73 inline IPAddressType GetIpAddressType() const { return m_ipAddressType; }
74 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
75 inline void SetIpAddressType(IPAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
78
80
88 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
89 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
90 template<typename RoleArnT = Aws::String>
91 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
92 template<typename RoleArnT = Aws::String>
93 UpdateNotebookInstanceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
95
97
103 inline const Aws::String& GetLifecycleConfigName() const { return m_lifecycleConfigName; }
104 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
105 template<typename LifecycleConfigNameT = Aws::String>
106 void SetLifecycleConfigName(LifecycleConfigNameT&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::forward<LifecycleConfigNameT>(value); }
107 template<typename LifecycleConfigNameT = Aws::String>
108 UpdateNotebookInstanceRequest& WithLifecycleConfigName(LifecycleConfigNameT&& value) { SetLifecycleConfigName(std::forward<LifecycleConfigNameT>(value)); return *this;}
110
112
118 inline bool GetDisassociateLifecycleConfig() const { return m_disassociateLifecycleConfig; }
119 inline bool DisassociateLifecycleConfigHasBeenSet() const { return m_disassociateLifecycleConfigHasBeenSet; }
120 inline void SetDisassociateLifecycleConfig(bool value) { m_disassociateLifecycleConfigHasBeenSet = true; m_disassociateLifecycleConfig = value; }
123
125
133 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
134 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
135 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
136 inline UpdateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
138
140
151 inline const Aws::String& GetDefaultCodeRepository() const { return m_defaultCodeRepository; }
152 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
153 template<typename DefaultCodeRepositoryT = Aws::String>
154 void SetDefaultCodeRepository(DefaultCodeRepositoryT&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::forward<DefaultCodeRepositoryT>(value); }
155 template<typename DefaultCodeRepositoryT = Aws::String>
156 UpdateNotebookInstanceRequest& WithDefaultCodeRepository(DefaultCodeRepositoryT&& value) { SetDefaultCodeRepository(std::forward<DefaultCodeRepositoryT>(value)); return *this;}
158
160
171 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const { return m_additionalCodeRepositories; }
172 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
173 template<typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
174 void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::forward<AdditionalCodeRepositoriesT>(value); }
175 template<typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
176 UpdateNotebookInstanceRequest& WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { SetAdditionalCodeRepositories(std::forward<AdditionalCodeRepositoriesT>(value)); return *this;}
177 template<typename AdditionalCodeRepositoriesT = Aws::String>
178 UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.emplace_back(std::forward<AdditionalCodeRepositoriesT>(value)); return *this; }
180
182
187 inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
188 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
189 template<typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
190 void SetAcceleratorTypes(AcceleratorTypesT&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::forward<AcceleratorTypesT>(value); }
191 template<typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
192 UpdateNotebookInstanceRequest& WithAcceleratorTypes(AcceleratorTypesT&& value) { SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value)); return *this;}
193 inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
195
197
202 inline bool GetDisassociateAcceleratorTypes() const { return m_disassociateAcceleratorTypes; }
203 inline bool DisassociateAcceleratorTypesHasBeenSet() const { return m_disassociateAcceleratorTypesHasBeenSet; }
204 inline void SetDisassociateAcceleratorTypes(bool value) { m_disassociateAcceleratorTypesHasBeenSet = true; m_disassociateAcceleratorTypes = value; }
207
209
215 inline bool GetDisassociateDefaultCodeRepository() const { return m_disassociateDefaultCodeRepository; }
216 inline bool DisassociateDefaultCodeRepositoryHasBeenSet() const { return m_disassociateDefaultCodeRepositoryHasBeenSet; }
217 inline void SetDisassociateDefaultCodeRepository(bool value) { m_disassociateDefaultCodeRepositoryHasBeenSet = true; m_disassociateDefaultCodeRepository = value; }
220
222
228 inline bool GetDisassociateAdditionalCodeRepositories() const { return m_disassociateAdditionalCodeRepositories; }
229 inline bool DisassociateAdditionalCodeRepositoriesHasBeenSet() const { return m_disassociateAdditionalCodeRepositoriesHasBeenSet; }
230 inline void SetDisassociateAdditionalCodeRepositories(bool value) { m_disassociateAdditionalCodeRepositoriesHasBeenSet = true; m_disassociateAdditionalCodeRepositories = value; }
233
235
242 inline RootAccess GetRootAccess() const { return m_rootAccess; }
243 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
244 inline void SetRootAccess(RootAccess value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
247
249
252 inline const InstanceMetadataServiceConfiguration& GetInstanceMetadataServiceConfiguration() const { return m_instanceMetadataServiceConfiguration; }
253 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
254 template<typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
255 void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = std::forward<InstanceMetadataServiceConfigurationT>(value); }
256 template<typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
257 UpdateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) { SetInstanceMetadataServiceConfiguration(std::forward<InstanceMetadataServiceConfigurationT>(value)); return *this;}
259 private:
260
261 Aws::String m_notebookInstanceName;
262 bool m_notebookInstanceNameHasBeenSet = false;
263
264 InstanceType m_instanceType{InstanceType::NOT_SET};
265 bool m_instanceTypeHasBeenSet = false;
266
267 IPAddressType m_ipAddressType{IPAddressType::NOT_SET};
268 bool m_ipAddressTypeHasBeenSet = false;
269
270 Aws::String m_roleArn;
271 bool m_roleArnHasBeenSet = false;
272
273 Aws::String m_lifecycleConfigName;
274 bool m_lifecycleConfigNameHasBeenSet = false;
275
276 bool m_disassociateLifecycleConfig{false};
277 bool m_disassociateLifecycleConfigHasBeenSet = false;
278
279 int m_volumeSizeInGB{0};
280 bool m_volumeSizeInGBHasBeenSet = false;
281
282 Aws::String m_defaultCodeRepository;
283 bool m_defaultCodeRepositoryHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_additionalCodeRepositories;
286 bool m_additionalCodeRepositoriesHasBeenSet = false;
287
289 bool m_acceleratorTypesHasBeenSet = false;
290
291 bool m_disassociateAcceleratorTypes{false};
292 bool m_disassociateAcceleratorTypesHasBeenSet = false;
293
294 bool m_disassociateDefaultCodeRepository{false};
295 bool m_disassociateDefaultCodeRepositoryHasBeenSet = false;
296
297 bool m_disassociateAdditionalCodeRepositories{false};
298 bool m_disassociateAdditionalCodeRepositoriesHasBeenSet = false;
299
300 RootAccess m_rootAccess{RootAccess::NOT_SET};
301 bool m_rootAccessHasBeenSet = false;
302
303 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
304 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace SageMaker
309} // namespace Aws
UpdateNotebookInstanceRequest & WithDisassociateAcceleratorTypes(bool value)
UpdateNotebookInstanceRequest & WithInstanceType(InstanceType value)
UpdateNotebookInstanceRequest & WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT &&value)
const Aws::Vector< Aws::String > & GetAdditionalCodeRepositories() const
UpdateNotebookInstanceRequest & WithDisassociateAdditionalCodeRepositories(bool value)
UpdateNotebookInstanceRequest & WithIpAddressType(IPAddressType value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(DefaultCodeRepositoryT &&value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(NotebookInstanceNameT &&value)
UpdateNotebookInstanceRequest & WithRoleArn(RoleArnT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API UpdateNotebookInstanceRequest()=default
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT &&value)
const Aws::Vector< NotebookInstanceAcceleratorType > & GetAcceleratorTypes() const
UpdateNotebookInstanceRequest & WithVolumeSizeInGB(int value)
void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT &&value)
UpdateNotebookInstanceRequest & WithLifecycleConfigName(LifecycleConfigNameT &&value)
UpdateNotebookInstanceRequest & WithDisassociateLifecycleConfig(bool value)
UpdateNotebookInstanceRequest & WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateNotebookInstanceRequest & WithAcceleratorTypes(AcceleratorTypesT &&value)
UpdateNotebookInstanceRequest & WithDisassociateDefaultCodeRepository(bool value)
const InstanceMetadataServiceConfiguration & GetInstanceMetadataServiceConfiguration() const
void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT &&value)
UpdateNotebookInstanceRequest & AddAcceleratorTypes(NotebookInstanceAcceleratorType value)
UpdateNotebookInstanceRequest & WithRootAccess(RootAccess value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector