AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateNotebookInstanceRequest.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/DirectInternetAccess.h>
12#include <aws/sagemaker/model/IPAddressType.h>
13#include <aws/sagemaker/model/InstanceMetadataServiceConfiguration.h>
14#include <aws/sagemaker/model/InstanceType.h>
15#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
16#include <aws/sagemaker/model/RootAccess.h>
17#include <aws/sagemaker/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SageMaker {
23namespace Model {
24
28 public:
29 AWS_SAGEMAKER_API CreateNotebookInstanceRequest() = default;
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 "CreateNotebookInstance"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetNotebookInstanceName() const { return m_notebookInstanceName; }
46 inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
47 template <typename NotebookInstanceNameT = Aws::String>
48 void SetNotebookInstanceName(NotebookInstanceNameT&& value) {
49 m_notebookInstanceNameHasBeenSet = true;
50 m_notebookInstanceName = std::forward<NotebookInstanceNameT>(value);
51 }
52 template <typename NotebookInstanceNameT = Aws::String>
54 SetNotebookInstanceName(std::forward<NotebookInstanceNameT>(value));
55 return *this;
56 }
58
60
63 inline InstanceType GetInstanceType() const { return m_instanceType; }
64 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
65 inline void SetInstanceType(InstanceType value) {
66 m_instanceTypeHasBeenSet = true;
67 m_instanceType = value;
68 }
70 SetInstanceType(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
81 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
82 template <typename SubnetIdT = Aws::String>
83 void SetSubnetId(SubnetIdT&& value) {
84 m_subnetIdHasBeenSet = true;
85 m_subnetId = std::forward<SubnetIdT>(value);
86 }
87 template <typename SubnetIdT = Aws::String>
89 SetSubnetId(std::forward<SubnetIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
100 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
101 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
102 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
103 m_securityGroupIdsHasBeenSet = true;
104 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
105 }
106 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
108 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
109 return *this;
110 }
111 template <typename SecurityGroupIdsT = Aws::String>
113 m_securityGroupIdsHasBeenSet = true;
114 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
115 return *this;
116 }
118
120
126 inline IPAddressType GetIpAddressType() const { return m_ipAddressType; }
127 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
128 inline void SetIpAddressType(IPAddressType value) {
129 m_ipAddressTypeHasBeenSet = true;
130 m_ipAddressType = value;
131 }
133 SetIpAddressType(value);
134 return *this;
135 }
137
139
151 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
152 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
153 template <typename RoleArnT = Aws::String>
154 void SetRoleArn(RoleArnT&& value) {
155 m_roleArnHasBeenSet = true;
156 m_roleArn = std::forward<RoleArnT>(value);
157 }
158 template <typename RoleArnT = Aws::String>
160 SetRoleArn(std::forward<RoleArnT>(value));
161 return *this;
162 }
164
166
175 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
176 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
177 template <typename KmsKeyIdT = Aws::String>
178 void SetKmsKeyId(KmsKeyIdT&& value) {
179 m_kmsKeyIdHasBeenSet = true;
180 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
181 }
182 template <typename KmsKeyIdT = Aws::String>
184 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
185 return *this;
186 }
188
190
197 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template <typename TagsT = Aws::Vector<Tag>>
200 void SetTags(TagsT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags = std::forward<TagsT>(value);
203 }
204 template <typename TagsT = Aws::Vector<Tag>>
206 SetTags(std::forward<TagsT>(value));
207 return *this;
208 }
209 template <typename TagsT = Tag>
211 m_tagsHasBeenSet = true;
212 m_tags.emplace_back(std::forward<TagsT>(value));
213 return *this;
214 }
216
218
224 inline const Aws::String& GetLifecycleConfigName() const { return m_lifecycleConfigName; }
225 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
226 template <typename LifecycleConfigNameT = Aws::String>
227 void SetLifecycleConfigName(LifecycleConfigNameT&& value) {
228 m_lifecycleConfigNameHasBeenSet = true;
229 m_lifecycleConfigName = std::forward<LifecycleConfigNameT>(value);
230 }
231 template <typename LifecycleConfigNameT = Aws::String>
233 SetLifecycleConfigName(std::forward<LifecycleConfigNameT>(value));
234 return *this;
235 }
237
239
250 inline DirectInternetAccess GetDirectInternetAccess() const { return m_directInternetAccess; }
251 inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; }
253 m_directInternetAccessHasBeenSet = true;
254 m_directInternetAccess = value;
255 }
258 return *this;
259 }
261
263
267 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
268 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
269 inline void SetVolumeSizeInGB(int value) {
270 m_volumeSizeInGBHasBeenSet = true;
271 m_volumeSizeInGB = value;
272 }
274 SetVolumeSizeInGB(value);
275 return *this;
276 }
278
280
285 inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
286 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
287 template <typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
288 void SetAcceleratorTypes(AcceleratorTypesT&& value) {
289 m_acceleratorTypesHasBeenSet = true;
290 m_acceleratorTypes = std::forward<AcceleratorTypesT>(value);
291 }
292 template <typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
294 SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value));
295 return *this;
296 }
298 m_acceleratorTypesHasBeenSet = true;
299 m_acceleratorTypes.push_back(value);
300 return *this;
301 }
303
305
316 inline const Aws::String& GetDefaultCodeRepository() const { return m_defaultCodeRepository; }
317 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
318 template <typename DefaultCodeRepositoryT = Aws::String>
319 void SetDefaultCodeRepository(DefaultCodeRepositoryT&& value) {
320 m_defaultCodeRepositoryHasBeenSet = true;
321 m_defaultCodeRepository = std::forward<DefaultCodeRepositoryT>(value);
322 }
323 template <typename DefaultCodeRepositoryT = Aws::String>
325 SetDefaultCodeRepository(std::forward<DefaultCodeRepositoryT>(value));
326 return *this;
327 }
329
331
342 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const { return m_additionalCodeRepositories; }
343 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
344 template <typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
345 void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) {
346 m_additionalCodeRepositoriesHasBeenSet = true;
347 m_additionalCodeRepositories = std::forward<AdditionalCodeRepositoriesT>(value);
348 }
349 template <typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
350 CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) {
351 SetAdditionalCodeRepositories(std::forward<AdditionalCodeRepositoriesT>(value));
352 return *this;
353 }
354 template <typename AdditionalCodeRepositoriesT = Aws::String>
355 CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) {
356 m_additionalCodeRepositoriesHasBeenSet = true;
357 m_additionalCodeRepositories.emplace_back(std::forward<AdditionalCodeRepositoriesT>(value));
358 return *this;
359 }
361
363
371 inline RootAccess GetRootAccess() const { return m_rootAccess; }
372 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
373 inline void SetRootAccess(RootAccess value) {
374 m_rootAccessHasBeenSet = true;
375 m_rootAccess = value;
376 }
378 SetRootAccess(value);
379 return *this;
380 }
382
384
388 inline const Aws::String& GetPlatformIdentifier() const { return m_platformIdentifier; }
389 inline bool PlatformIdentifierHasBeenSet() const { return m_platformIdentifierHasBeenSet; }
390 template <typename PlatformIdentifierT = Aws::String>
391 void SetPlatformIdentifier(PlatformIdentifierT&& value) {
392 m_platformIdentifierHasBeenSet = true;
393 m_platformIdentifier = std::forward<PlatformIdentifierT>(value);
394 }
395 template <typename PlatformIdentifierT = Aws::String>
397 SetPlatformIdentifier(std::forward<PlatformIdentifierT>(value));
398 return *this;
399 }
401
403
407 return m_instanceMetadataServiceConfiguration;
408 }
409 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
410 template <typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
411 void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) {
412 m_instanceMetadataServiceConfigurationHasBeenSet = true;
413 m_instanceMetadataServiceConfiguration = std::forward<InstanceMetadataServiceConfigurationT>(value);
414 }
415 template <typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
416 CreateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) {
417 SetInstanceMetadataServiceConfiguration(std::forward<InstanceMetadataServiceConfigurationT>(value));
418 return *this;
419 }
421 private:
422 Aws::String m_notebookInstanceName;
423
424 InstanceType m_instanceType{InstanceType::NOT_SET};
425
426 Aws::String m_subnetId;
427
428 Aws::Vector<Aws::String> m_securityGroupIds;
429
430 IPAddressType m_ipAddressType{IPAddressType::NOT_SET};
431
432 Aws::String m_roleArn;
433
434 Aws::String m_kmsKeyId;
435
436 Aws::Vector<Tag> m_tags;
437
438 Aws::String m_lifecycleConfigName;
439
441
442 int m_volumeSizeInGB{0};
443
445
446 Aws::String m_defaultCodeRepository;
447
448 Aws::Vector<Aws::String> m_additionalCodeRepositories;
449
450 RootAccess m_rootAccess{RootAccess::NOT_SET};
451
452 Aws::String m_platformIdentifier;
453
454 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
455 bool m_notebookInstanceNameHasBeenSet = false;
456 bool m_instanceTypeHasBeenSet = false;
457 bool m_subnetIdHasBeenSet = false;
458 bool m_securityGroupIdsHasBeenSet = false;
459 bool m_ipAddressTypeHasBeenSet = false;
460 bool m_roleArnHasBeenSet = false;
461 bool m_kmsKeyIdHasBeenSet = false;
462 bool m_tagsHasBeenSet = false;
463 bool m_lifecycleConfigNameHasBeenSet = false;
464 bool m_directInternetAccessHasBeenSet = false;
465 bool m_volumeSizeInGBHasBeenSet = false;
466 bool m_acceleratorTypesHasBeenSet = false;
467 bool m_defaultCodeRepositoryHasBeenSet = false;
468 bool m_additionalCodeRepositoriesHasBeenSet = false;
469 bool m_rootAccessHasBeenSet = false;
470 bool m_platformIdentifierHasBeenSet = false;
471 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
472};
473
474} // namespace Model
475} // namespace SageMaker
476} // namespace Aws
void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT &&value)
CreateNotebookInstanceRequest & WithPlatformIdentifier(PlatformIdentifierT &&value)
const Aws::Vector< NotebookInstanceAcceleratorType > & GetAcceleratorTypes() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateNotebookInstanceRequest & WithDefaultCodeRepository(DefaultCodeRepositoryT &&value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
CreateNotebookInstanceRequest & WithTags(TagsT &&value)
CreateNotebookInstanceRequest & WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT &&value)
CreateNotebookInstanceRequest & WithLifecycleConfigName(LifecycleConfigNameT &&value)
CreateNotebookInstanceRequest & WithRootAccess(RootAccess value)
CreateNotebookInstanceRequest & WithDirectInternetAccess(DirectInternetAccess value)
CreateNotebookInstanceRequest & WithAcceleratorTypes(AcceleratorTypesT &&value)
CreateNotebookInstanceRequest & AddAcceleratorTypes(NotebookInstanceAcceleratorType value)
void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT &&value)
const InstanceMetadataServiceConfiguration & GetInstanceMetadataServiceConfiguration() const
CreateNotebookInstanceRequest & AddTags(TagsT &&value)
CreateNotebookInstanceRequest & WithIpAddressType(IPAddressType value)
CreateNotebookInstanceRequest & WithNotebookInstanceName(NotebookInstanceNameT &&value)
CreateNotebookInstanceRequest & WithSubnetId(SubnetIdT &&value)
CreateNotebookInstanceRequest & WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT &&value)
CreateNotebookInstanceRequest & WithVolumeSizeInGB(int value)
CreateNotebookInstanceRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAdditionalCodeRepositories() const
CreateNotebookInstanceRequest & WithRoleArn(RoleArnT &&value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT &&value)
CreateNotebookInstanceRequest & WithInstanceType(InstanceType value)
CreateNotebookInstanceRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_SAGEMAKER_API CreateNotebookInstanceRequest()=default
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