AWS SDK for C++  1.8.95
AWS SDK for C++
CreateNotebookInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace SageMaker
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateNotebookInstance"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
46  inline const Aws::String& GetNotebookInstanceName() const{ return m_notebookInstanceName; }
47 
51  inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
52 
56  inline void SetNotebookInstanceName(const Aws::String& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = value; }
57 
61  inline void SetNotebookInstanceName(Aws::String&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::move(value); }
62 
66  inline void SetNotebookInstanceName(const char* value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName.assign(value); }
67 
71  inline CreateNotebookInstanceRequest& WithNotebookInstanceName(const Aws::String& value) { SetNotebookInstanceName(value); return *this;}
72 
76  inline CreateNotebookInstanceRequest& WithNotebookInstanceName(Aws::String&& value) { SetNotebookInstanceName(std::move(value)); return *this;}
77 
81  inline CreateNotebookInstanceRequest& WithNotebookInstanceName(const char* value) { SetNotebookInstanceName(value); return *this;}
82 
83 
87  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
88 
92  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
93 
97  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
98 
102  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
103 
107  inline CreateNotebookInstanceRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
108 
112  inline CreateNotebookInstanceRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
113 
114 
119  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
120 
125  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
126 
131  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
132 
137  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
138 
143  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
144 
149  inline CreateNotebookInstanceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
150 
155  inline CreateNotebookInstanceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
156 
161  inline CreateNotebookInstanceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
162 
163 
168  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
169 
174  inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
175 
180  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
181 
186  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
187 
192  inline CreateNotebookInstanceRequest& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
193 
198  inline CreateNotebookInstanceRequest& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
199 
204  inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
205 
210  inline CreateNotebookInstanceRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
211 
216  inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
217 
218 
231  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
232 
245  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
246 
259  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
260 
273  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
274 
287  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
288 
301  inline CreateNotebookInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
302 
315  inline CreateNotebookInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
316 
329  inline CreateNotebookInstanceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
330 
331 
341  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
342 
352  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
353 
363  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
364 
374  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
375 
385  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
386 
396  inline CreateNotebookInstanceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
397 
407  inline CreateNotebookInstanceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
408 
418  inline CreateNotebookInstanceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
419 
420 
425  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
426 
431  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
432 
437  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
438 
443  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
444 
449  inline CreateNotebookInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
450 
455  inline CreateNotebookInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
456 
461  inline CreateNotebookInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
462 
467  inline CreateNotebookInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
468 
469 
476  inline const Aws::String& GetLifecycleConfigName() const{ return m_lifecycleConfigName; }
477 
484  inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
485 
492  inline void SetLifecycleConfigName(const Aws::String& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = value; }
493 
500  inline void SetLifecycleConfigName(Aws::String&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::move(value); }
501 
508  inline void SetLifecycleConfigName(const char* value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName.assign(value); }
509 
516  inline CreateNotebookInstanceRequest& WithLifecycleConfigName(const Aws::String& value) { SetLifecycleConfigName(value); return *this;}
517 
524  inline CreateNotebookInstanceRequest& WithLifecycleConfigName(Aws::String&& value) { SetLifecycleConfigName(std::move(value)); return *this;}
525 
532  inline CreateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;}
533 
534 
546  inline const DirectInternetAccess& GetDirectInternetAccess() const{ return m_directInternetAccess; }
547 
559  inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; }
560 
572  inline void SetDirectInternetAccess(const DirectInternetAccess& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = value; }
573 
585  inline void SetDirectInternetAccess(DirectInternetAccess&& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = std::move(value); }
586 
598  inline CreateNotebookInstanceRequest& WithDirectInternetAccess(const DirectInternetAccess& value) { SetDirectInternetAccess(value); return *this;}
599 
611  inline CreateNotebookInstanceRequest& WithDirectInternetAccess(DirectInternetAccess&& value) { SetDirectInternetAccess(std::move(value)); return *this;}
612 
613 
618  inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
619 
624  inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
625 
630  inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
631 
636  inline CreateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
637 
638 
646  inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const{ return m_acceleratorTypes; }
647 
655  inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
656 
664  inline void SetAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = value; }
665 
673  inline void SetAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::move(value); }
674 
682  inline CreateNotebookInstanceRequest& WithAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { SetAcceleratorTypes(value); return *this;}
683 
691  inline CreateNotebookInstanceRequest& WithAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { SetAcceleratorTypes(std::move(value)); return *this;}
692 
700  inline CreateNotebookInstanceRequest& AddAcceleratorTypes(const NotebookInstanceAcceleratorType& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
701 
709  inline CreateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(std::move(value)); return *this; }
710 
711 
723  inline const Aws::String& GetDefaultCodeRepository() const{ return m_defaultCodeRepository; }
724 
736  inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
737 
749  inline void SetDefaultCodeRepository(const Aws::String& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = value; }
750 
762  inline void SetDefaultCodeRepository(Aws::String&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::move(value); }
763 
775  inline void SetDefaultCodeRepository(const char* value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository.assign(value); }
776 
788  inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(const Aws::String& value) { SetDefaultCodeRepository(value); return *this;}
789 
801  inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(Aws::String&& value) { SetDefaultCodeRepository(std::move(value)); return *this;}
802 
814  inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(const char* value) { SetDefaultCodeRepository(value); return *this;}
815 
816 
828  inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const{ return m_additionalCodeRepositories; }
829 
841  inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
842 
854  inline void SetAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = value; }
855 
867  inline void SetAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::move(value); }
868 
880  inline CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { SetAdditionalCodeRepositories(value); return *this;}
881 
893  inline CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { SetAdditionalCodeRepositories(std::move(value)); return *this;}
894 
906  inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(const Aws::String& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
907 
919  inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(Aws::String&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(std::move(value)); return *this; }
920 
932  inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(const char* value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
933 
934 
943  inline const RootAccess& GetRootAccess() const{ return m_rootAccess; }
944 
953  inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
954 
963  inline void SetRootAccess(const RootAccess& value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
964 
973  inline void SetRootAccess(RootAccess&& value) { m_rootAccessHasBeenSet = true; m_rootAccess = std::move(value); }
974 
983  inline CreateNotebookInstanceRequest& WithRootAccess(const RootAccess& value) { SetRootAccess(value); return *this;}
984 
993  inline CreateNotebookInstanceRequest& WithRootAccess(RootAccess&& value) { SetRootAccess(std::move(value)); return *this;}
994 
995  private:
996 
997  Aws::String m_notebookInstanceName;
998  bool m_notebookInstanceNameHasBeenSet;
999 
1000  InstanceType m_instanceType;
1001  bool m_instanceTypeHasBeenSet;
1002 
1003  Aws::String m_subnetId;
1004  bool m_subnetIdHasBeenSet;
1005 
1006  Aws::Vector<Aws::String> m_securityGroupIds;
1007  bool m_securityGroupIdsHasBeenSet;
1008 
1009  Aws::String m_roleArn;
1010  bool m_roleArnHasBeenSet;
1011 
1012  Aws::String m_kmsKeyId;
1013  bool m_kmsKeyIdHasBeenSet;
1014 
1015  Aws::Vector<Tag> m_tags;
1016  bool m_tagsHasBeenSet;
1017 
1018  Aws::String m_lifecycleConfigName;
1019  bool m_lifecycleConfigNameHasBeenSet;
1020 
1021  DirectInternetAccess m_directInternetAccess;
1022  bool m_directInternetAccessHasBeenSet;
1023 
1024  int m_volumeSizeInGB;
1025  bool m_volumeSizeInGBHasBeenSet;
1026 
1028  bool m_acceleratorTypesHasBeenSet;
1029 
1030  Aws::String m_defaultCodeRepository;
1031  bool m_defaultCodeRepositoryHasBeenSet;
1032 
1033  Aws::Vector<Aws::String> m_additionalCodeRepositories;
1034  bool m_additionalCodeRepositoriesHasBeenSet;
1035 
1036  RootAccess m_rootAccess;
1037  bool m_rootAccessHasBeenSet;
1038  };
1039 
1040 } // namespace Model
1041 } // namespace SageMaker
1042 } // namespace Aws
CreateNotebookInstanceRequest & WithDefaultCodeRepository(const char *value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(const char *value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(const Aws::String &value)
#define AWS_SAGEMAKER_API
CreateNotebookInstanceRequest & WithNotebookInstanceName(const char *value)
void SetAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(Aws::String &&value)
CreateNotebookInstanceRequest & WithKmsKeyId(Aws::String &&value)
CreateNotebookInstanceRequest & AddSecurityGroupIds(const Aws::String &value)
CreateNotebookInstanceRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateNotebookInstanceRequest & WithLifecycleConfigName(Aws::String &&value)
CreateNotebookInstanceRequest & WithSubnetId(const char *value)
CreateNotebookInstanceRequest & WithDefaultCodeRepository(const Aws::String &value)
CreateNotebookInstanceRequest & WithLifecycleConfigName(const char *value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(Aws::String &&value)
CreateNotebookInstanceRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateNotebookInstanceRequest & WithLifecycleConfigName(const Aws::String &value)
CreateNotebookInstanceRequest & WithAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateNotebookInstanceRequest & WithDirectInternetAccess(const DirectInternetAccess &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithSubnetId(Aws::String &&value)
CreateNotebookInstanceRequest & WithRoleArn(const Aws::String &value)
CreateNotebookInstanceRequest & WithDirectInternetAccess(DirectInternetAccess &&value)
CreateNotebookInstanceRequest & WithAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateNotebookInstanceRequest & AddTags(Tag &&value)
CreateNotebookInstanceRequest & AddAcceleratorTypes(NotebookInstanceAcceleratorType &&value)
CreateNotebookInstanceRequest & WithKmsKeyId(const Aws::String &value)
CreateNotebookInstanceRequest & WithRoleArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAdditionalCodeRepositories() const
void SetDirectInternetAccess(const DirectInternetAccess &value)
const Aws::Vector< NotebookInstanceAcceleratorType > & GetAcceleratorTypes() const
CreateNotebookInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateNotebookInstanceRequest & AddAdditionalCodeRepositories(const char *value)
CreateNotebookInstanceRequest & WithNotebookInstanceName(Aws::String &&value)
CreateNotebookInstanceRequest & WithAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithRootAccess(const RootAccess &value)
CreateNotebookInstanceRequest & WithSubnetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
CreateNotebookInstanceRequest & WithVolumeSizeInGB(int value)
CreateNotebookInstanceRequest & WithInstanceType(InstanceType &&value)
CreateNotebookInstanceRequest & WithInstanceType(const InstanceType &value)
CreateNotebookInstanceRequest & AddAcceleratorTypes(const NotebookInstanceAcceleratorType &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateNotebookInstanceRequest & WithNotebookInstanceName(const Aws::String &value)
void SetAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
CreateNotebookInstanceRequest & WithDefaultCodeRepository(Aws::String &&value)
CreateNotebookInstanceRequest & WithKmsKeyId(const char *value)
CreateNotebookInstanceRequest & WithRootAccess(RootAccess &&value)
CreateNotebookInstanceRequest & WithAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
CreateNotebookInstanceRequest & WithRoleArn(const char *value)
CreateNotebookInstanceRequest & AddTags(const Tag &value)
void SetAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)