AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateNotebookInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SageMaker
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateNotebookInstance"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetNotebookInstanceName() const{ return m_notebookInstanceName; }
45 
49  inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
50 
54  inline void SetNotebookInstanceName(const Aws::String& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = value; }
55 
59  inline void SetNotebookInstanceName(Aws::String&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::move(value); }
60 
64  inline void SetNotebookInstanceName(const char* value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName.assign(value); }
65 
69  inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(const Aws::String& value) { SetNotebookInstanceName(value); return *this;}
70 
74  inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(Aws::String&& value) { SetNotebookInstanceName(std::move(value)); return *this;}
75 
79  inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(const char* value) { SetNotebookInstanceName(value); return *this;}
80 
81 
85  inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
86 
90  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
91 
95  inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
96 
100  inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
101 
105  inline UpdateNotebookInstanceRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
106 
110  inline UpdateNotebookInstanceRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
111 
112 
121  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
122 
131  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
132 
141  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
142 
151  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
152 
161  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
162 
171  inline UpdateNotebookInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
172 
181  inline UpdateNotebookInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
182 
191  inline UpdateNotebookInstanceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
192 
193 
200  inline const Aws::String& GetLifecycleConfigName() const{ return m_lifecycleConfigName; }
201 
208  inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
209 
216  inline void SetLifecycleConfigName(const Aws::String& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = value; }
217 
224  inline void SetLifecycleConfigName(Aws::String&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::move(value); }
225 
232  inline void SetLifecycleConfigName(const char* value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName.assign(value); }
233 
240  inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(const Aws::String& value) { SetLifecycleConfigName(value); return *this;}
241 
248  inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(Aws::String&& value) { SetLifecycleConfigName(std::move(value)); return *this;}
249 
256  inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;}
257 
258 
265  inline bool GetDisassociateLifecycleConfig() const{ return m_disassociateLifecycleConfig; }
266 
273  inline bool DisassociateLifecycleConfigHasBeenSet() const { return m_disassociateLifecycleConfigHasBeenSet; }
274 
281  inline void SetDisassociateLifecycleConfig(bool value) { m_disassociateLifecycleConfigHasBeenSet = true; m_disassociateLifecycleConfig = value; }
282 
289  inline UpdateNotebookInstanceRequest& WithDisassociateLifecycleConfig(bool value) { SetDisassociateLifecycleConfig(value); return *this;}
290 
291 
300  inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
301 
310  inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
311 
320  inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
321 
330  inline UpdateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
331 
332 
344  inline const Aws::String& GetDefaultCodeRepository() const{ return m_defaultCodeRepository; }
345 
357  inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
358 
370  inline void SetDefaultCodeRepository(const Aws::String& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = value; }
371 
383  inline void SetDefaultCodeRepository(Aws::String&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::move(value); }
384 
396  inline void SetDefaultCodeRepository(const char* value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository.assign(value); }
397 
409  inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(const Aws::String& value) { SetDefaultCodeRepository(value); return *this;}
410 
422  inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(Aws::String&& value) { SetDefaultCodeRepository(std::move(value)); return *this;}
423 
435  inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(const char* value) { SetDefaultCodeRepository(value); return *this;}
436 
437 
449  inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const{ return m_additionalCodeRepositories; }
450 
462  inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
463 
475  inline void SetAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = value; }
476 
488  inline void SetAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::move(value); }
489 
501  inline UpdateNotebookInstanceRequest& WithAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { SetAdditionalCodeRepositories(value); return *this;}
502 
514  inline UpdateNotebookInstanceRequest& WithAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { SetAdditionalCodeRepositories(std::move(value)); return *this;}
515 
527  inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(const Aws::String& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
528 
540  inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(Aws::String&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(std::move(value)); return *this; }
541 
553  inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(const char* value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
554 
555 
563  inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const{ return m_acceleratorTypes; }
564 
572  inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
573 
581  inline void SetAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = value; }
582 
590  inline void SetAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::move(value); }
591 
599  inline UpdateNotebookInstanceRequest& WithAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { SetAcceleratorTypes(value); return *this;}
600 
608  inline UpdateNotebookInstanceRequest& WithAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { SetAcceleratorTypes(std::move(value)); return *this;}
609 
617  inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(const NotebookInstanceAcceleratorType& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
618 
626  inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(std::move(value)); return *this; }
627 
628 
635  inline bool GetDisassociateAcceleratorTypes() const{ return m_disassociateAcceleratorTypes; }
636 
643  inline bool DisassociateAcceleratorTypesHasBeenSet() const { return m_disassociateAcceleratorTypesHasBeenSet; }
644 
651  inline void SetDisassociateAcceleratorTypes(bool value) { m_disassociateAcceleratorTypesHasBeenSet = true; m_disassociateAcceleratorTypes = value; }
652 
659  inline UpdateNotebookInstanceRequest& WithDisassociateAcceleratorTypes(bool value) { SetDisassociateAcceleratorTypes(value); return *this;}
660 
661 
668  inline bool GetDisassociateDefaultCodeRepository() const{ return m_disassociateDefaultCodeRepository; }
669 
676  inline bool DisassociateDefaultCodeRepositoryHasBeenSet() const { return m_disassociateDefaultCodeRepositoryHasBeenSet; }
677 
684  inline void SetDisassociateDefaultCodeRepository(bool value) { m_disassociateDefaultCodeRepositoryHasBeenSet = true; m_disassociateDefaultCodeRepository = value; }
685 
692  inline UpdateNotebookInstanceRequest& WithDisassociateDefaultCodeRepository(bool value) { SetDisassociateDefaultCodeRepository(value); return *this;}
693 
694 
701  inline bool GetDisassociateAdditionalCodeRepositories() const{ return m_disassociateAdditionalCodeRepositories; }
702 
709  inline bool DisassociateAdditionalCodeRepositoriesHasBeenSet() const { return m_disassociateAdditionalCodeRepositoriesHasBeenSet; }
710 
717  inline void SetDisassociateAdditionalCodeRepositories(bool value) { m_disassociateAdditionalCodeRepositoriesHasBeenSet = true; m_disassociateAdditionalCodeRepositories = value; }
718 
725  inline UpdateNotebookInstanceRequest& WithDisassociateAdditionalCodeRepositories(bool value) { SetDisassociateAdditionalCodeRepositories(value); return *this;}
726 
727 
735  inline const RootAccess& GetRootAccess() const{ return m_rootAccess; }
736 
744  inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
745 
753  inline void SetRootAccess(const RootAccess& value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
754 
762  inline void SetRootAccess(RootAccess&& value) { m_rootAccessHasBeenSet = true; m_rootAccess = std::move(value); }
763 
771  inline UpdateNotebookInstanceRequest& WithRootAccess(const RootAccess& value) { SetRootAccess(value); return *this;}
772 
780  inline UpdateNotebookInstanceRequest& WithRootAccess(RootAccess&& value) { SetRootAccess(std::move(value)); return *this;}
781 
782  private:
783 
784  Aws::String m_notebookInstanceName;
785  bool m_notebookInstanceNameHasBeenSet;
786 
787  InstanceType m_instanceType;
788  bool m_instanceTypeHasBeenSet;
789 
790  Aws::String m_roleArn;
791  bool m_roleArnHasBeenSet;
792 
793  Aws::String m_lifecycleConfigName;
794  bool m_lifecycleConfigNameHasBeenSet;
795 
796  bool m_disassociateLifecycleConfig;
797  bool m_disassociateLifecycleConfigHasBeenSet;
798 
799  int m_volumeSizeInGB;
800  bool m_volumeSizeInGBHasBeenSet;
801 
802  Aws::String m_defaultCodeRepository;
803  bool m_defaultCodeRepositoryHasBeenSet;
804 
805  Aws::Vector<Aws::String> m_additionalCodeRepositories;
806  bool m_additionalCodeRepositoriesHasBeenSet;
807 
809  bool m_acceleratorTypesHasBeenSet;
810 
811  bool m_disassociateAcceleratorTypes;
812  bool m_disassociateAcceleratorTypesHasBeenSet;
813 
814  bool m_disassociateDefaultCodeRepository;
815  bool m_disassociateDefaultCodeRepositoryHasBeenSet;
816 
817  bool m_disassociateAdditionalCodeRepositories;
818  bool m_disassociateAdditionalCodeRepositoriesHasBeenSet;
819 
820  RootAccess m_rootAccess;
821  bool m_rootAccessHasBeenSet;
822  };
823 
824 } // namespace Model
825 } // namespace SageMaker
826 } // namespace Aws
#define AWS_SAGEMAKER_API
const Aws::Vector< NotebookInstanceAcceleratorType > & GetAcceleratorTypes() const
UpdateNotebookInstanceRequest & WithLifecycleConfigName(Aws::String &&value)
UpdateNotebookInstanceRequest & AddAcceleratorTypes(NotebookInstanceAcceleratorType &&value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(Aws::String &&value)
UpdateNotebookInstanceRequest & WithLifecycleConfigName(const Aws::String &value)
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(Aws::String &&value)
UpdateNotebookInstanceRequest & WithAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
UpdateNotebookInstanceRequest & WithRootAccess(RootAccess &&value)
void SetAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
UpdateNotebookInstanceRequest & WithInstanceType(const InstanceType &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UpdateNotebookInstanceRequest & WithRootAccess(const RootAccess &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateNotebookInstanceRequest & WithAcceleratorTypes(Aws::Vector< NotebookInstanceAcceleratorType > &&value)
UpdateNotebookInstanceRequest & AddAcceleratorTypes(const NotebookInstanceAcceleratorType &value)
UpdateNotebookInstanceRequest & WithDisassociateAdditionalCodeRepositories(bool value)
UpdateNotebookInstanceRequest & WithVolumeSizeInGB(int value)
UpdateNotebookInstanceRequest & WithInstanceType(InstanceType &&value)
void SetAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
UpdateNotebookInstanceRequest & WithDisassociateAcceleratorTypes(bool value)
UpdateNotebookInstanceRequest & WithLifecycleConfigName(const char *value)
UpdateNotebookInstanceRequest & WithAdditionalCodeRepositories(const Aws::Vector< Aws::String > &value)
UpdateNotebookInstanceRequest & WithRoleArn(const char *value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(const char *value)
const Aws::Vector< Aws::String > & GetAdditionalCodeRepositories() const
UpdateNotebookInstanceRequest & WithRoleArn(Aws::String &&value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(const Aws::String &value)
void SetAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)
UpdateNotebookInstanceRequest & WithNotebookInstanceName(const char *value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateNotebookInstanceRequest & WithDisassociateLifecycleConfig(bool value)
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(const char *value)
UpdateNotebookInstanceRequest & WithDefaultCodeRepository(Aws::String &&value)
void SetAcceleratorTypes(const Aws::Vector< NotebookInstanceAcceleratorType > &value)
UpdateNotebookInstanceRequest & WithDisassociateDefaultCodeRepository(bool value)
UpdateNotebookInstanceRequest & AddAdditionalCodeRepositories(const Aws::String &value)
UpdateNotebookInstanceRequest & WithRoleArn(const Aws::String &value)
UpdateNotebookInstanceRequest & WithAdditionalCodeRepositories(Aws::Vector< Aws::String > &&value)