AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateNotebookInstanceRequest.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/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/IPAddressType.h>
12#include <aws/sagemaker/model/InstanceMetadataServiceConfiguration.h>
13#include <aws/sagemaker/model/InstanceType.h>
14#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
15#include <aws/sagemaker/model/RootAccess.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API UpdateNotebookInstanceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotebookInstance"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetNotebookInstanceName() const { return m_notebookInstanceName; }
44 inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
45 template <typename NotebookInstanceNameT = Aws::String>
46 void SetNotebookInstanceName(NotebookInstanceNameT&& value) {
47 m_notebookInstanceNameHasBeenSet = true;
48 m_notebookInstanceName = std::forward<NotebookInstanceNameT>(value);
49 }
50 template <typename NotebookInstanceNameT = Aws::String>
52 SetNotebookInstanceName(std::forward<NotebookInstanceNameT>(value));
53 return *this;
54 }
56
58
61 inline InstanceType GetInstanceType() const { return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(InstanceType value) {
64 m_instanceTypeHasBeenSet = true;
65 m_instanceType = value;
66 }
68 SetInstanceType(value);
69 return *this;
70 }
72
74
81 inline IPAddressType GetIpAddressType() const { return m_ipAddressType; }
82 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
83 inline void SetIpAddressType(IPAddressType value) {
84 m_ipAddressTypeHasBeenSet = true;
85 m_ipAddressType = value;
86 }
88 SetIpAddressType(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetPlatformIdentifier() const { return m_platformIdentifier; }
98 inline bool PlatformIdentifierHasBeenSet() const { return m_platformIdentifierHasBeenSet; }
99 template <typename PlatformIdentifierT = Aws::String>
100 void SetPlatformIdentifier(PlatformIdentifierT&& value) {
101 m_platformIdentifierHasBeenSet = true;
102 m_platformIdentifier = std::forward<PlatformIdentifierT>(value);
103 }
104 template <typename PlatformIdentifierT = Aws::String>
106 SetPlatformIdentifier(std::forward<PlatformIdentifierT>(value));
107 return *this;
108 }
110
112
120 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
121 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
122 template <typename RoleArnT = Aws::String>
123 void SetRoleArn(RoleArnT&& value) {
124 m_roleArnHasBeenSet = true;
125 m_roleArn = std::forward<RoleArnT>(value);
126 }
127 template <typename RoleArnT = Aws::String>
129 SetRoleArn(std::forward<RoleArnT>(value));
130 return *this;
131 }
133
135
141 inline const Aws::String& GetLifecycleConfigName() const { return m_lifecycleConfigName; }
142 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
143 template <typename LifecycleConfigNameT = Aws::String>
144 void SetLifecycleConfigName(LifecycleConfigNameT&& value) {
145 m_lifecycleConfigNameHasBeenSet = true;
146 m_lifecycleConfigName = std::forward<LifecycleConfigNameT>(value);
147 }
148 template <typename LifecycleConfigNameT = Aws::String>
150 SetLifecycleConfigName(std::forward<LifecycleConfigNameT>(value));
151 return *this;
152 }
154
156
162 inline bool GetDisassociateLifecycleConfig() const { return m_disassociateLifecycleConfig; }
163 inline bool DisassociateLifecycleConfigHasBeenSet() const { return m_disassociateLifecycleConfigHasBeenSet; }
164 inline void SetDisassociateLifecycleConfig(bool value) {
165 m_disassociateLifecycleConfigHasBeenSet = true;
166 m_disassociateLifecycleConfig = value;
167 }
170 return *this;
171 }
173
175
183 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
184 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
185 inline void SetVolumeSizeInGB(int value) {
186 m_volumeSizeInGBHasBeenSet = true;
187 m_volumeSizeInGB = value;
188 }
190 SetVolumeSizeInGB(value);
191 return *this;
192 }
194
196
207 inline const Aws::String& GetDefaultCodeRepository() const { return m_defaultCodeRepository; }
208 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
209 template <typename DefaultCodeRepositoryT = Aws::String>
210 void SetDefaultCodeRepository(DefaultCodeRepositoryT&& value) {
211 m_defaultCodeRepositoryHasBeenSet = true;
212 m_defaultCodeRepository = std::forward<DefaultCodeRepositoryT>(value);
213 }
214 template <typename DefaultCodeRepositoryT = Aws::String>
216 SetDefaultCodeRepository(std::forward<DefaultCodeRepositoryT>(value));
217 return *this;
218 }
220
222
233 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const { return m_additionalCodeRepositories; }
234 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
235 template <typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
236 void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) {
237 m_additionalCodeRepositoriesHasBeenSet = true;
238 m_additionalCodeRepositories = std::forward<AdditionalCodeRepositoriesT>(value);
239 }
240 template <typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
241 UpdateNotebookInstanceRequest& WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) {
242 SetAdditionalCodeRepositories(std::forward<AdditionalCodeRepositoriesT>(value));
243 return *this;
244 }
245 template <typename AdditionalCodeRepositoriesT = Aws::String>
246 UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) {
247 m_additionalCodeRepositoriesHasBeenSet = true;
248 m_additionalCodeRepositories.emplace_back(std::forward<AdditionalCodeRepositoriesT>(value));
249 return *this;
250 }
252
254
259 inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
260 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
261 template <typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
262 void SetAcceleratorTypes(AcceleratorTypesT&& value) {
263 m_acceleratorTypesHasBeenSet = true;
264 m_acceleratorTypes = std::forward<AcceleratorTypesT>(value);
265 }
266 template <typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
268 SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value));
269 return *this;
270 }
272 m_acceleratorTypesHasBeenSet = true;
273 m_acceleratorTypes.push_back(value);
274 return *this;
275 }
277
279
284 inline bool GetDisassociateAcceleratorTypes() const { return m_disassociateAcceleratorTypes; }
285 inline bool DisassociateAcceleratorTypesHasBeenSet() const { return m_disassociateAcceleratorTypesHasBeenSet; }
286 inline void SetDisassociateAcceleratorTypes(bool value) {
287 m_disassociateAcceleratorTypesHasBeenSet = true;
288 m_disassociateAcceleratorTypes = value;
289 }
292 return *this;
293 }
295
297
303 inline bool GetDisassociateDefaultCodeRepository() const { return m_disassociateDefaultCodeRepository; }
304 inline bool DisassociateDefaultCodeRepositoryHasBeenSet() const { return m_disassociateDefaultCodeRepositoryHasBeenSet; }
305 inline void SetDisassociateDefaultCodeRepository(bool value) {
306 m_disassociateDefaultCodeRepositoryHasBeenSet = true;
307 m_disassociateDefaultCodeRepository = value;
308 }
311 return *this;
312 }
314
316
322 inline bool GetDisassociateAdditionalCodeRepositories() const { return m_disassociateAdditionalCodeRepositories; }
323 inline bool DisassociateAdditionalCodeRepositoriesHasBeenSet() const { return m_disassociateAdditionalCodeRepositoriesHasBeenSet; }
325 m_disassociateAdditionalCodeRepositoriesHasBeenSet = true;
326 m_disassociateAdditionalCodeRepositories = value;
327 }
330 return *this;
331 }
333
335
342 inline RootAccess GetRootAccess() const { return m_rootAccess; }
343 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
344 inline void SetRootAccess(RootAccess value) {
345 m_rootAccessHasBeenSet = true;
346 m_rootAccess = value;
347 }
349 SetRootAccess(value);
350 return *this;
351 }
353
355
359 return m_instanceMetadataServiceConfiguration;
360 }
361 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
362 template <typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
363 void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) {
364 m_instanceMetadataServiceConfigurationHasBeenSet = true;
365 m_instanceMetadataServiceConfiguration = std::forward<InstanceMetadataServiceConfigurationT>(value);
366 }
367 template <typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
368 UpdateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) {
369 SetInstanceMetadataServiceConfiguration(std::forward<InstanceMetadataServiceConfigurationT>(value));
370 return *this;
371 }
373 private:
374 Aws::String m_notebookInstanceName;
375
376 InstanceType m_instanceType{InstanceType::NOT_SET};
377
378 IPAddressType m_ipAddressType{IPAddressType::NOT_SET};
379
380 Aws::String m_platformIdentifier;
381
382 Aws::String m_roleArn;
383
384 Aws::String m_lifecycleConfigName;
385
386 bool m_disassociateLifecycleConfig{false};
387
388 int m_volumeSizeInGB{0};
389
390 Aws::String m_defaultCodeRepository;
391
392 Aws::Vector<Aws::String> m_additionalCodeRepositories;
393
395
396 bool m_disassociateAcceleratorTypes{false};
397
398 bool m_disassociateDefaultCodeRepository{false};
399
400 bool m_disassociateAdditionalCodeRepositories{false};
401
402 RootAccess m_rootAccess{RootAccess::NOT_SET};
403
404 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
405 bool m_notebookInstanceNameHasBeenSet = false;
406 bool m_instanceTypeHasBeenSet = false;
407 bool m_ipAddressTypeHasBeenSet = false;
408 bool m_platformIdentifierHasBeenSet = false;
409 bool m_roleArnHasBeenSet = false;
410 bool m_lifecycleConfigNameHasBeenSet = false;
411 bool m_disassociateLifecycleConfigHasBeenSet = false;
412 bool m_volumeSizeInGBHasBeenSet = false;
413 bool m_defaultCodeRepositoryHasBeenSet = false;
414 bool m_additionalCodeRepositoriesHasBeenSet = false;
415 bool m_acceleratorTypesHasBeenSet = false;
416 bool m_disassociateAcceleratorTypesHasBeenSet = false;
417 bool m_disassociateDefaultCodeRepositoryHasBeenSet = false;
418 bool m_disassociateAdditionalCodeRepositoriesHasBeenSet = false;
419 bool m_rootAccessHasBeenSet = false;
420 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace SageMaker
425} // namespace Aws
UpdateNotebookInstanceRequest & WithPlatformIdentifier(PlatformIdentifierT &&value)
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