AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/RootAccess.h>
13#include <aws/sagemaker/model/InstanceMetadataServiceConfiguration.h>
14#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API UpdateNotebookInstanceRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotebookInstance"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetNotebookInstanceName() const{ return m_notebookInstanceName; }
47 inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
48 inline void SetNotebookInstanceName(const Aws::String& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = value; }
49 inline void SetNotebookInstanceName(Aws::String&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::move(value); }
50 inline void SetNotebookInstanceName(const char* value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName.assign(value); }
53 inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(const char* value) { SetNotebookInstanceName(value); return *this;}
55
57
60 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
63 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
64 inline UpdateNotebookInstanceRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
65 inline UpdateNotebookInstanceRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
67
69
76 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
77 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
78 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
79 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
80 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
81 inline UpdateNotebookInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
82 inline UpdateNotebookInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
83 inline UpdateNotebookInstanceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
85
87
93 inline const Aws::String& GetLifecycleConfigName() const{ return m_lifecycleConfigName; }
94 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
95 inline void SetLifecycleConfigName(const Aws::String& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = value; }
96 inline void SetLifecycleConfigName(Aws::String&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::move(value); }
97 inline void SetLifecycleConfigName(const char* value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName.assign(value); }
100 inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;}
102
104
110 inline bool GetDisassociateLifecycleConfig() const{ return m_disassociateLifecycleConfig; }
111 inline bool DisassociateLifecycleConfigHasBeenSet() const { return m_disassociateLifecycleConfigHasBeenSet; }
112 inline void SetDisassociateLifecycleConfig(bool value) { m_disassociateLifecycleConfigHasBeenSet = true; m_disassociateLifecycleConfig = value; }
115
117
125 inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
126 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
127 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
128 inline UpdateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
130
132
143 inline const Aws::String& GetDefaultCodeRepository() const{ return m_defaultCodeRepository; }
144 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
145 inline void SetDefaultCodeRepository(const Aws::String& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = value; }
146 inline void SetDefaultCodeRepository(Aws::String&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::move(value); }
147 inline void SetDefaultCodeRepository(const char* value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository.assign(value); }
150 inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(const char* value) { SetDefaultCodeRepository(value); return *this;}
152
154
165 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const{ return m_additionalCodeRepositories; }
166 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
167 inline void SetAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = value; }
168 inline void SetAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::move(value); }
171 inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(const Aws::String& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
172 inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(Aws::String&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(std::move(value)); return *this; }
173 inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(const char* value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
175
177
182 inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const{ return m_acceleratorTypes; }
183 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
184 inline void SetAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = value; }
185 inline void SetAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::move(value); }
188 inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(const NotebookInstanceAcceleratorType& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
189 inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(std::move(value)); return *this; }
191
193
198 inline bool GetDisassociateAcceleratorTypes() const{ return m_disassociateAcceleratorTypes; }
199 inline bool DisassociateAcceleratorTypesHasBeenSet() const { return m_disassociateAcceleratorTypesHasBeenSet; }
200 inline void SetDisassociateAcceleratorTypes(bool value) { m_disassociateAcceleratorTypesHasBeenSet = true; m_disassociateAcceleratorTypes = value; }
203
205
211 inline bool GetDisassociateDefaultCodeRepository() const{ return m_disassociateDefaultCodeRepository; }
212 inline bool DisassociateDefaultCodeRepositoryHasBeenSet() const { return m_disassociateDefaultCodeRepositoryHasBeenSet; }
213 inline void SetDisassociateDefaultCodeRepository(bool value) { m_disassociateDefaultCodeRepositoryHasBeenSet = true; m_disassociateDefaultCodeRepository = value; }
216
218
224 inline bool GetDisassociateAdditionalCodeRepositories() const{ return m_disassociateAdditionalCodeRepositories; }
225 inline bool DisassociateAdditionalCodeRepositoriesHasBeenSet() const { return m_disassociateAdditionalCodeRepositoriesHasBeenSet; }
226 inline void SetDisassociateAdditionalCodeRepositories(bool value) { m_disassociateAdditionalCodeRepositoriesHasBeenSet = true; m_disassociateAdditionalCodeRepositories = value; }
229
231
238 inline const RootAccess& GetRootAccess() const{ return m_rootAccess; }
239 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
240 inline void SetRootAccess(const RootAccess& value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
241 inline void SetRootAccess(RootAccess&& value) { m_rootAccessHasBeenSet = true; m_rootAccess = std::move(value); }
242 inline UpdateNotebookInstanceRequest& WithRootAccess(const RootAccess& value) { SetRootAccess(value); return *this;}
243 inline UpdateNotebookInstanceRequest& WithRootAccess(RootAccess&& value) { SetRootAccess(std::move(value)); return *this;}
245
247
250 inline const InstanceMetadataServiceConfiguration& GetInstanceMetadataServiceConfiguration() const{ return m_instanceMetadataServiceConfiguration; }
251 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
252 inline void SetInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = value; }
253 inline void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration&& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = std::move(value); }
257 private:
258
259 Aws::String m_notebookInstanceName;
260 bool m_notebookInstanceNameHasBeenSet = false;
261
262 InstanceType m_instanceType;
263 bool m_instanceTypeHasBeenSet = false;
264
265 Aws::String m_roleArn;
266 bool m_roleArnHasBeenSet = false;
267
268 Aws::String m_lifecycleConfigName;
269 bool m_lifecycleConfigNameHasBeenSet = false;
270
271 bool m_disassociateLifecycleConfig;
272 bool m_disassociateLifecycleConfigHasBeenSet = false;
273
274 int m_volumeSizeInGB;
275 bool m_volumeSizeInGBHasBeenSet = false;
276
277 Aws::String m_defaultCodeRepository;
278 bool m_defaultCodeRepositoryHasBeenSet = false;
279
280 Aws::Vector<Aws::String> m_additionalCodeRepositories;
281 bool m_additionalCodeRepositoriesHasBeenSet = false;
282
284 bool m_acceleratorTypesHasBeenSet = false;
285
286 bool m_disassociateAcceleratorTypes;
287 bool m_disassociateAcceleratorTypesHasBeenSet = false;
288
289 bool m_disassociateDefaultCodeRepository;
290 bool m_disassociateDefaultCodeRepositoryHasBeenSet = false;
291
292 bool m_disassociateAdditionalCodeRepositories;
293 bool m_disassociateAdditionalCodeRepositoriesHasBeenSet = false;
294
295 RootAccess m_rootAccess;
296 bool m_rootAccessHasBeenSet = false;
297
298 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
299 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace SageMaker
304} // namespace Aws
UpdateNotebookInstanceRequest & WithAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(const Aws::String &value)
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(Aws::String &&value)
void SetAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(const char *value)
UpdateNotebookInstanceRequest & WithLifecycleConfigName(Aws::String &&value)
UpdateNotebookInstanceRequest & WithDisassociateAcceleratorTypes(bool value)
UpdateNotebookInstanceRequest & WithRoleArn(const Aws::String &value)
void SetAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
void SetAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
UpdateNotebookInstanceRequest & WithInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration &value)
const Aws::Vector< Aws::String > & GetAdditionalCodeRepositories() const
UpdateNotebookInstanceRequest & WithDisassociateAdditionalCodeRepositories(bool value)
UpdateNotebookInstanceRequest & WithRootAccess(const RootAccess &value)
UpdateNotebookInstanceRequest & WithInstanceType(InstanceType &&value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(Aws::String &&value)
UpdateNotebookInstanceRequest & WithAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(const char *value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(const char *value)
UpdateNotebookInstanceRequest & WithRoleArn(Aws::String &&value)
UpdateNotebookInstanceRequest & AddAcceleratorTypes(const NotebookInstanceAcceleratorType &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration &value)
UpdateNotebookInstanceRequest & WithAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
void SetAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
UpdateNotebookInstanceRequest & WithRootAccess(RootAccess &&value)
void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration &&value)
const Aws::Vector< NotebookInstanceAcceleratorType > & GetAcceleratorTypes() const
UpdateNotebookInstanceRequest & WithVolumeSizeInGB(int value)
UpdateNotebookInstanceRequest & WithDisassociateLifecycleConfig(bool value)
UpdateNotebookInstanceRequest & WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration &&value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(const Aws::String &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateNotebookInstanceRequest & WithAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
UpdateNotebookInstanceRequest & WithLifecycleConfigName(const Aws::String &value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(Aws::String &&value)
UpdateNotebookInstanceRequest & WithLifecycleConfigName(const char *value)
UpdateNotebookInstanceRequest & WithRoleArn(const char *value)
UpdateNotebookInstanceRequest & AddAcceleratorTypes(NotebookInstanceAcceleratorType &&value)
UpdateNotebookInstanceRequest & WithDisassociateDefaultCodeRepository(bool value)
UpdateNotebookInstanceRequest & WithInstanceType(const InstanceType &value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(const Aws::String &value)
const InstanceMetadataServiceConfiguration & GetInstanceMetadataServiceConfiguration() const
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