AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreateNotebookInstanceRequest.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/IPAddressType.h>
13#include <aws/sagemaker/model/DirectInternetAccess.h>
14#include <aws/sagemaker/model/RootAccess.h>
15#include <aws/sagemaker/model/InstanceMetadataServiceConfiguration.h>
16#include <aws/sagemaker/model/Tag.h>
17#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
18#include <utility>
19
20namespace Aws
21{
22namespace SageMaker
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_SAGEMAKER_API CreateNotebookInstanceRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateNotebookInstance"; }
39
40 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetNotebookInstanceName() const { return m_notebookInstanceName; }
50 inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
51 template<typename NotebookInstanceNameT = Aws::String>
52 void SetNotebookInstanceName(NotebookInstanceNameT&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::forward<NotebookInstanceNameT>(value); }
53 template<typename NotebookInstanceNameT = Aws::String>
54 CreateNotebookInstanceRequest& WithNotebookInstanceName(NotebookInstanceNameT&& value) { SetNotebookInstanceName(std::forward<NotebookInstanceNameT>(value)); return *this;}
56
58
61 inline InstanceType GetInstanceType() const { return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
66
68
72 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
73 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
74 template<typename SubnetIdT = Aws::String>
75 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
76 template<typename SubnetIdT = Aws::String>
77 CreateNotebookInstanceRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
79
81
85 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
86 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
87 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
88 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
89 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
90 CreateNotebookInstanceRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
91 template<typename SecurityGroupIdsT = Aws::String>
92 CreateNotebookInstanceRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
94
96
102 inline IPAddressType GetIpAddressType() const { return m_ipAddressType; }
103 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
104 inline void SetIpAddressType(IPAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
107
109
121 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
122 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
123 template<typename RoleArnT = Aws::String>
124 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
125 template<typename RoleArnT = Aws::String>
126 CreateNotebookInstanceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
128
130
139 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
140 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
141 template<typename KmsKeyIdT = Aws::String>
142 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
143 template<typename KmsKeyIdT = Aws::String>
144 CreateNotebookInstanceRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
146
148
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template<typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
159 template<typename TagsT = Aws::Vector<Tag>>
160 CreateNotebookInstanceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
161 template<typename TagsT = Tag>
162 CreateNotebookInstanceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
164
166
172 inline const Aws::String& GetLifecycleConfigName() const { return m_lifecycleConfigName; }
173 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
174 template<typename LifecycleConfigNameT = Aws::String>
175 void SetLifecycleConfigName(LifecycleConfigNameT&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::forward<LifecycleConfigNameT>(value); }
176 template<typename LifecycleConfigNameT = Aws::String>
177 CreateNotebookInstanceRequest& WithLifecycleConfigName(LifecycleConfigNameT&& value) { SetLifecycleConfigName(std::forward<LifecycleConfigNameT>(value)); return *this;}
179
181
192 inline DirectInternetAccess GetDirectInternetAccess() const { return m_directInternetAccess; }
193 inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; }
194 inline void SetDirectInternetAccess(DirectInternetAccess value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = value; }
197
199
203 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
204 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
205 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
206 inline CreateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
208
210
215 inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
216 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
217 template<typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
218 void SetAcceleratorTypes(AcceleratorTypesT&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::forward<AcceleratorTypesT>(value); }
219 template<typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
220 CreateNotebookInstanceRequest& WithAcceleratorTypes(AcceleratorTypesT&& value) { SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value)); return *this;}
221 inline CreateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
223
225
236 inline const Aws::String& GetDefaultCodeRepository() const { return m_defaultCodeRepository; }
237 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
238 template<typename DefaultCodeRepositoryT = Aws::String>
239 void SetDefaultCodeRepository(DefaultCodeRepositoryT&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::forward<DefaultCodeRepositoryT>(value); }
240 template<typename DefaultCodeRepositoryT = Aws::String>
241 CreateNotebookInstanceRequest& WithDefaultCodeRepository(DefaultCodeRepositoryT&& value) { SetDefaultCodeRepository(std::forward<DefaultCodeRepositoryT>(value)); return *this;}
243
245
256 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const { return m_additionalCodeRepositories; }
257 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
258 template<typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
259 void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::forward<AdditionalCodeRepositoriesT>(value); }
260 template<typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
261 CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { SetAdditionalCodeRepositories(std::forward<AdditionalCodeRepositoriesT>(value)); return *this;}
262 template<typename AdditionalCodeRepositoriesT = Aws::String>
263 CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.emplace_back(std::forward<AdditionalCodeRepositoriesT>(value)); return *this; }
265
267
275 inline RootAccess GetRootAccess() const { return m_rootAccess; }
276 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
277 inline void SetRootAccess(RootAccess value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
280
282
285 inline const Aws::String& GetPlatformIdentifier() const { return m_platformIdentifier; }
286 inline bool PlatformIdentifierHasBeenSet() const { return m_platformIdentifierHasBeenSet; }
287 template<typename PlatformIdentifierT = Aws::String>
288 void SetPlatformIdentifier(PlatformIdentifierT&& value) { m_platformIdentifierHasBeenSet = true; m_platformIdentifier = std::forward<PlatformIdentifierT>(value); }
289 template<typename PlatformIdentifierT = Aws::String>
290 CreateNotebookInstanceRequest& WithPlatformIdentifier(PlatformIdentifierT&& value) { SetPlatformIdentifier(std::forward<PlatformIdentifierT>(value)); return *this;}
292
294
297 inline const InstanceMetadataServiceConfiguration& GetInstanceMetadataServiceConfiguration() const { return m_instanceMetadataServiceConfiguration; }
298 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
299 template<typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
300 void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = std::forward<InstanceMetadataServiceConfigurationT>(value); }
301 template<typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
302 CreateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) { SetInstanceMetadataServiceConfiguration(std::forward<InstanceMetadataServiceConfigurationT>(value)); return *this;}
304 private:
305
306 Aws::String m_notebookInstanceName;
307 bool m_notebookInstanceNameHasBeenSet = false;
308
309 InstanceType m_instanceType{InstanceType::NOT_SET};
310 bool m_instanceTypeHasBeenSet = false;
311
312 Aws::String m_subnetId;
313 bool m_subnetIdHasBeenSet = false;
314
315 Aws::Vector<Aws::String> m_securityGroupIds;
316 bool m_securityGroupIdsHasBeenSet = false;
317
318 IPAddressType m_ipAddressType{IPAddressType::NOT_SET};
319 bool m_ipAddressTypeHasBeenSet = false;
320
321 Aws::String m_roleArn;
322 bool m_roleArnHasBeenSet = false;
323
324 Aws::String m_kmsKeyId;
325 bool m_kmsKeyIdHasBeenSet = false;
326
327 Aws::Vector<Tag> m_tags;
328 bool m_tagsHasBeenSet = false;
329
330 Aws::String m_lifecycleConfigName;
331 bool m_lifecycleConfigNameHasBeenSet = false;
332
334 bool m_directInternetAccessHasBeenSet = false;
335
336 int m_volumeSizeInGB{0};
337 bool m_volumeSizeInGBHasBeenSet = false;
338
340 bool m_acceleratorTypesHasBeenSet = false;
341
342 Aws::String m_defaultCodeRepository;
343 bool m_defaultCodeRepositoryHasBeenSet = false;
344
345 Aws::Vector<Aws::String> m_additionalCodeRepositories;
346 bool m_additionalCodeRepositoriesHasBeenSet = false;
347
348 RootAccess m_rootAccess{RootAccess::NOT_SET};
349 bool m_rootAccessHasBeenSet = false;
350
351 Aws::String m_platformIdentifier;
352 bool m_platformIdentifierHasBeenSet = false;
353
354 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
355 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
356 };
357
358} // namespace Model
359} // namespace SageMaker
360} // 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