AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/DirectInternetAccess.h>
13#include <aws/sagemaker/model/RootAccess.h>
14#include <aws/sagemaker/model/InstanceMetadataServiceConfiguration.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SageMaker
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SAGEMAKER_API CreateNotebookInstanceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateNotebookInstance"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetNotebookInstanceName() const { return m_notebookInstanceName; }
49 inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
50 template<typename NotebookInstanceNameT = Aws::String>
51 void SetNotebookInstanceName(NotebookInstanceNameT&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::forward<NotebookInstanceNameT>(value); }
52 template<typename NotebookInstanceNameT = Aws::String>
53 CreateNotebookInstanceRequest& WithNotebookInstanceName(NotebookInstanceNameT&& value) { SetNotebookInstanceName(std::forward<NotebookInstanceNameT>(value)); return *this;}
55
57
60 inline InstanceType GetInstanceType() const { return m_instanceType; }
61 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
65
67
71 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
72 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
73 template<typename SubnetIdT = Aws::String>
74 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
75 template<typename SubnetIdT = Aws::String>
76 CreateNotebookInstanceRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
78
80
84 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
85 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
86 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
87 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
88 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
89 CreateNotebookInstanceRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
90 template<typename SecurityGroupIdsT = Aws::String>
91 CreateNotebookInstanceRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
93
95
107 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
108 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
109 template<typename RoleArnT = Aws::String>
110 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
111 template<typename RoleArnT = Aws::String>
112 CreateNotebookInstanceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
114
116
125 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
126 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
127 template<typename KmsKeyIdT = Aws::String>
128 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
129 template<typename KmsKeyIdT = Aws::String>
130 CreateNotebookInstanceRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
132
134
141 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template<typename TagsT = Aws::Vector<Tag>>
144 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
145 template<typename TagsT = Aws::Vector<Tag>>
146 CreateNotebookInstanceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
147 template<typename TagsT = Tag>
148 CreateNotebookInstanceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
150
152
158 inline const Aws::String& GetLifecycleConfigName() const { return m_lifecycleConfigName; }
159 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
160 template<typename LifecycleConfigNameT = Aws::String>
161 void SetLifecycleConfigName(LifecycleConfigNameT&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::forward<LifecycleConfigNameT>(value); }
162 template<typename LifecycleConfigNameT = Aws::String>
163 CreateNotebookInstanceRequest& WithLifecycleConfigName(LifecycleConfigNameT&& value) { SetLifecycleConfigName(std::forward<LifecycleConfigNameT>(value)); return *this;}
165
167
178 inline DirectInternetAccess GetDirectInternetAccess() const { return m_directInternetAccess; }
179 inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; }
180 inline void SetDirectInternetAccess(DirectInternetAccess value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = value; }
183
185
189 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
190 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
191 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
192 inline CreateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
194
196
201 inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const { return m_acceleratorTypes; }
202 inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
203 template<typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
204 void SetAcceleratorTypes(AcceleratorTypesT&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::forward<AcceleratorTypesT>(value); }
205 template<typename AcceleratorTypesT = Aws::Vector<NotebookInstanceAcceleratorType>>
206 CreateNotebookInstanceRequest& WithAcceleratorTypes(AcceleratorTypesT&& value) { SetAcceleratorTypes(std::forward<AcceleratorTypesT>(value)); return *this;}
207 inline CreateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
209
211
222 inline const Aws::String& GetDefaultCodeRepository() const { return m_defaultCodeRepository; }
223 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
224 template<typename DefaultCodeRepositoryT = Aws::String>
225 void SetDefaultCodeRepository(DefaultCodeRepositoryT&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::forward<DefaultCodeRepositoryT>(value); }
226 template<typename DefaultCodeRepositoryT = Aws::String>
227 CreateNotebookInstanceRequest& WithDefaultCodeRepository(DefaultCodeRepositoryT&& value) { SetDefaultCodeRepository(std::forward<DefaultCodeRepositoryT>(value)); return *this;}
229
231
242 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const { return m_additionalCodeRepositories; }
243 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
244 template<typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
245 void SetAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::forward<AdditionalCodeRepositoriesT>(value); }
246 template<typename AdditionalCodeRepositoriesT = Aws::Vector<Aws::String>>
247 CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { SetAdditionalCodeRepositories(std::forward<AdditionalCodeRepositoriesT>(value)); return *this;}
248 template<typename AdditionalCodeRepositoriesT = Aws::String>
249 CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(AdditionalCodeRepositoriesT&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.emplace_back(std::forward<AdditionalCodeRepositoriesT>(value)); return *this; }
251
253
261 inline RootAccess GetRootAccess() const { return m_rootAccess; }
262 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
263 inline void SetRootAccess(RootAccess value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
266
268
271 inline const Aws::String& GetPlatformIdentifier() const { return m_platformIdentifier; }
272 inline bool PlatformIdentifierHasBeenSet() const { return m_platformIdentifierHasBeenSet; }
273 template<typename PlatformIdentifierT = Aws::String>
274 void SetPlatformIdentifier(PlatformIdentifierT&& value) { m_platformIdentifierHasBeenSet = true; m_platformIdentifier = std::forward<PlatformIdentifierT>(value); }
275 template<typename PlatformIdentifierT = Aws::String>
276 CreateNotebookInstanceRequest& WithPlatformIdentifier(PlatformIdentifierT&& value) { SetPlatformIdentifier(std::forward<PlatformIdentifierT>(value)); return *this;}
278
280
283 inline const InstanceMetadataServiceConfiguration& GetInstanceMetadataServiceConfiguration() const { return m_instanceMetadataServiceConfiguration; }
284 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
285 template<typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
286 void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = std::forward<InstanceMetadataServiceConfigurationT>(value); }
287 template<typename InstanceMetadataServiceConfigurationT = InstanceMetadataServiceConfiguration>
288 CreateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfigurationT&& value) { SetInstanceMetadataServiceConfiguration(std::forward<InstanceMetadataServiceConfigurationT>(value)); return *this;}
290 private:
291
292 Aws::String m_notebookInstanceName;
293 bool m_notebookInstanceNameHasBeenSet = false;
294
295 InstanceType m_instanceType{InstanceType::NOT_SET};
296 bool m_instanceTypeHasBeenSet = false;
297
298 Aws::String m_subnetId;
299 bool m_subnetIdHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_securityGroupIds;
302 bool m_securityGroupIdsHasBeenSet = false;
303
304 Aws::String m_roleArn;
305 bool m_roleArnHasBeenSet = false;
306
307 Aws::String m_kmsKeyId;
308 bool m_kmsKeyIdHasBeenSet = false;
309
310 Aws::Vector<Tag> m_tags;
311 bool m_tagsHasBeenSet = false;
312
313 Aws::String m_lifecycleConfigName;
314 bool m_lifecycleConfigNameHasBeenSet = false;
315
317 bool m_directInternetAccessHasBeenSet = false;
318
319 int m_volumeSizeInGB{0};
320 bool m_volumeSizeInGBHasBeenSet = false;
321
323 bool m_acceleratorTypesHasBeenSet = false;
324
325 Aws::String m_defaultCodeRepository;
326 bool m_defaultCodeRepositoryHasBeenSet = false;
327
328 Aws::Vector<Aws::String> m_additionalCodeRepositories;
329 bool m_additionalCodeRepositoriesHasBeenSet = false;
330
331 RootAccess m_rootAccess{RootAccess::NOT_SET};
332 bool m_rootAccessHasBeenSet = false;
333
334 Aws::String m_platformIdentifier;
335 bool m_platformIdentifierHasBeenSet = false;
336
337 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
338 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
339 };
340
341} // namespace Model
342} // namespace SageMaker
343} // 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 & 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