AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNotebookInstanceName(const Aws::String& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = value; }
51 inline void SetNotebookInstanceName(Aws::String&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::move(value); }
52 inline void SetNotebookInstanceName(const char* value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName.assign(value); }
55 inline CreateNotebookInstanceRequest& WithNotebookInstanceName(const char* value) { SetNotebookInstanceName(value); return *this;}
57
59
62 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
63 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
64 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
65 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
66 inline CreateNotebookInstanceRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
67 inline CreateNotebookInstanceRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
76 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
77 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
78 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
79 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
80 inline CreateNotebookInstanceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
81 inline CreateNotebookInstanceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
82 inline CreateNotebookInstanceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
84
86
90 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
91 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
92 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
93 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
96 inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
97 inline CreateNotebookInstanceRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
98 inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
100
102
113 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
114 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
115 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
116 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
117 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
118 inline CreateNotebookInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
119 inline CreateNotebookInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
120 inline CreateNotebookInstanceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
122
124
133 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
134 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
135 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
136 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
137 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
138 inline CreateNotebookInstanceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
139 inline CreateNotebookInstanceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
140 inline CreateNotebookInstanceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
142
144
151 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline CreateNotebookInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
156 inline CreateNotebookInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
157 inline CreateNotebookInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline CreateNotebookInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160
162
168 inline const Aws::String& GetLifecycleConfigName() const{ return m_lifecycleConfigName; }
169 inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
170 inline void SetLifecycleConfigName(const Aws::String& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = value; }
171 inline void SetLifecycleConfigName(Aws::String&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::move(value); }
172 inline void SetLifecycleConfigName(const char* value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName.assign(value); }
175 inline CreateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;}
177
179
190 inline const DirectInternetAccess& GetDirectInternetAccess() const{ return m_directInternetAccess; }
191 inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; }
192 inline void SetDirectInternetAccess(const DirectInternetAccess& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = value; }
193 inline void SetDirectInternetAccess(DirectInternetAccess&& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = std::move(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 inline void SetAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = value; }
218 inline void SetAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::move(value); }
221 inline CreateNotebookInstanceRequest& AddAcceleratorTypes(const NotebookInstanceAcceleratorType& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
222 inline CreateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(std::move(value)); return *this; }
224
226
237 inline const Aws::String& GetDefaultCodeRepository() const{ return m_defaultCodeRepository; }
238 inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
239 inline void SetDefaultCodeRepository(const Aws::String& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = value; }
240 inline void SetDefaultCodeRepository(Aws::String&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::move(value); }
241 inline void SetDefaultCodeRepository(const char* value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository.assign(value); }
244 inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(const char* value) { SetDefaultCodeRepository(value); return *this;}
246
248
259 inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const{ return m_additionalCodeRepositories; }
260 inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
261 inline void SetAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = value; }
262 inline void SetAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::move(value); }
265 inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(const Aws::String& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
266 inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(Aws::String&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(std::move(value)); return *this; }
267 inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(const char* value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
269
271
279 inline const RootAccess& GetRootAccess() const{ return m_rootAccess; }
280 inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
281 inline void SetRootAccess(const RootAccess& value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
282 inline void SetRootAccess(RootAccess&& value) { m_rootAccessHasBeenSet = true; m_rootAccess = std::move(value); }
283 inline CreateNotebookInstanceRequest& WithRootAccess(const RootAccess& value) { SetRootAccess(value); return *this;}
284 inline CreateNotebookInstanceRequest& WithRootAccess(RootAccess&& value) { SetRootAccess(std::move(value)); return *this;}
286
288
291 inline const Aws::String& GetPlatformIdentifier() const{ return m_platformIdentifier; }
292 inline bool PlatformIdentifierHasBeenSet() const { return m_platformIdentifierHasBeenSet; }
293 inline void SetPlatformIdentifier(const Aws::String& value) { m_platformIdentifierHasBeenSet = true; m_platformIdentifier = value; }
294 inline void SetPlatformIdentifier(Aws::String&& value) { m_platformIdentifierHasBeenSet = true; m_platformIdentifier = std::move(value); }
295 inline void SetPlatformIdentifier(const char* value) { m_platformIdentifierHasBeenSet = true; m_platformIdentifier.assign(value); }
298 inline CreateNotebookInstanceRequest& WithPlatformIdentifier(const char* value) { SetPlatformIdentifier(value); return *this;}
300
302
305 inline const InstanceMetadataServiceConfiguration& GetInstanceMetadataServiceConfiguration() const{ return m_instanceMetadataServiceConfiguration; }
306 inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; }
307 inline void SetInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = value; }
308 inline void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration&& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = std::move(value); }
312 private:
313
314 Aws::String m_notebookInstanceName;
315 bool m_notebookInstanceNameHasBeenSet = false;
316
317 InstanceType m_instanceType;
318 bool m_instanceTypeHasBeenSet = false;
319
320 Aws::String m_subnetId;
321 bool m_subnetIdHasBeenSet = false;
322
323 Aws::Vector<Aws::String> m_securityGroupIds;
324 bool m_securityGroupIdsHasBeenSet = false;
325
326 Aws::String m_roleArn;
327 bool m_roleArnHasBeenSet = false;
328
329 Aws::String m_kmsKeyId;
330 bool m_kmsKeyIdHasBeenSet = false;
331
332 Aws::Vector<Tag> m_tags;
333 bool m_tagsHasBeenSet = false;
334
335 Aws::String m_lifecycleConfigName;
336 bool m_lifecycleConfigNameHasBeenSet = false;
337
338 DirectInternetAccess m_directInternetAccess;
339 bool m_directInternetAccessHasBeenSet = false;
340
341 int m_volumeSizeInGB;
342 bool m_volumeSizeInGBHasBeenSet = false;
343
345 bool m_acceleratorTypesHasBeenSet = false;
346
347 Aws::String m_defaultCodeRepository;
348 bool m_defaultCodeRepositoryHasBeenSet = false;
349
350 Aws::Vector<Aws::String> m_additionalCodeRepositories;
351 bool m_additionalCodeRepositoriesHasBeenSet = false;
352
353 RootAccess m_rootAccess;
354 bool m_rootAccessHasBeenSet = false;
355
356 Aws::String m_platformIdentifier;
357 bool m_platformIdentifierHasBeenSet = false;
358
359 InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration;
360 bool m_instanceMetadataServiceConfigurationHasBeenSet = false;
361 };
362
363} // namespace Model
364} // namespace SageMaker
365} // namespace Aws
CreateNotebookInstanceRequest & WithSubnetId(const Aws::String &value)
CreateNotebookInstanceRequest & WithRootAccess(RootAccess &&value)
CreateNotebookInstanceRequest & WithSubnetId(Aws::String &&value)
void SetAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
const Aws::Vector< NotebookInstanceAcceleratorType > & GetAcceleratorTypes() const
void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration &&value)
CreateNotebookInstanceRequest & WithSubnetId(const char *value)
CreateNotebookInstanceRequest & WithKmsKeyId(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateNotebookInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateNotebookInstanceRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(const char *value)
CreateNotebookInstanceRequest & WithDefaultCodeRepository(const Aws::String &value)
CreateNotebookInstanceRequest & WithInstanceType(const InstanceType &value)
CreateNotebookInstanceRequest & WithRoleArn(const char *value)
CreateNotebookInstanceRequest & AddAcceleratorTypes(const NotebookInstanceAcceleratorType &value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(const char *value)
CreateNotebookInstanceRequest & WithDefaultCodeRepository(Aws::String &&value)
CreateNotebookInstanceRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateNotebookInstanceRequest & WithPlatformIdentifier(const Aws::String &value)
CreateNotebookInstanceRequest & WithInstanceType(InstanceType &&value)
CreateNotebookInstanceRequest & WithAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
void SetInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration &value)
CreateNotebookInstanceRequest & AddTags(const Tag &value)
const InstanceMetadataServiceConfiguration & GetInstanceMetadataServiceConfiguration() const
CreateNotebookInstanceRequest & WithKmsKeyId(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateNotebookInstanceRequest & WithPlatformIdentifier(const char *value)
CreateNotebookInstanceRequest & WithNotebookInstanceName(const char *value)
CreateNotebookInstanceRequest & WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration &&value)
CreateNotebookInstanceRequest & WithKmsKeyId(const char *value)
CreateNotebookInstanceRequest & WithLifecycleConfigName(Aws::String &&value)
CreateNotebookInstanceRequest & WithInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration &value)
CreateNotebookInstanceRequest & WithAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
CreateNotebookInstanceRequest & WithNotebookInstanceName(const Aws::String &value)
void SetAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(const Aws::String &value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(const Aws::String &value)
CreateNotebookInstanceRequest & WithVolumeSizeInGB(int value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(Aws::String &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateNotebookInstanceRequest & WithRoleArn(Aws::String &&value)
CreateNotebookInstanceRequest & AddAcceleratorTypes(NotebookInstanceAcceleratorType &&value)
CreateNotebookInstanceRequest & WithLifecycleConfigName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAdditionalCodeRepositories() const
CreateNotebookInstanceRequest & WithDirectInternetAccess(DirectInternetAccess &&value)
CreateNotebookInstanceRequest & WithRootAccess(const RootAccess &value)
CreateNotebookInstanceRequest & WithDefaultCodeRepository(const char *value)
CreateNotebookInstanceRequest & WithNotebookInstanceName(Aws::String &&value)
CreateNotebookInstanceRequest & WithDirectInternetAccess(const DirectInternetAccess &value)
void SetAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
CreateNotebookInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(Aws::String &&value)
void SetAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithPlatformIdentifier(Aws::String &&value)
CreateNotebookInstanceRequest & WithRoleArn(const Aws::String &value)
CreateNotebookInstanceRequest & WithLifecycleConfigName(const char *value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() 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