AWS SDK for C++  1.9.156
AWS SDK for C++
CreateNotebookInstanceLifecycleConfigRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateNotebookInstanceLifecycleConfig"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetNotebookInstanceLifecycleConfigName() const{ return m_notebookInstanceLifecycleConfigName; }
43 
47  inline bool NotebookInstanceLifecycleConfigNameHasBeenSet() const { return m_notebookInstanceLifecycleConfigNameHasBeenSet; }
48 
52  inline void SetNotebookInstanceLifecycleConfigName(const Aws::String& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = value; }
53 
57  inline void SetNotebookInstanceLifecycleConfigName(Aws::String&& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = std::move(value); }
58 
62  inline void SetNotebookInstanceLifecycleConfigName(const char* value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName.assign(value); }
63 
67  inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const Aws::String& value) { SetNotebookInstanceLifecycleConfigName(value); return *this;}
68 
72  inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(Aws::String&& value) { SetNotebookInstanceLifecycleConfigName(std::move(value)); return *this;}
73 
77  inline CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const char* value) { SetNotebookInstanceLifecycleConfigName(value); return *this;}
78 
79 
84  inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnCreate() const{ return m_onCreate; }
85 
90  inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; }
91 
96  inline void SetOnCreate(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { m_onCreateHasBeenSet = true; m_onCreate = value; }
97 
102  inline void SetOnCreate(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { m_onCreateHasBeenSet = true; m_onCreate = std::move(value); }
103 
109 
114  inline CreateNotebookInstanceLifecycleConfigRequest& WithOnCreate(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { SetOnCreate(std::move(value)); return *this;}
115 
120  inline CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(const NotebookInstanceLifecycleHook& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(value); return *this; }
121 
126  inline CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(NotebookInstanceLifecycleHook&& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(std::move(value)); return *this; }
127 
128 
134  inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnStart() const{ return m_onStart; }
135 
141  inline bool OnStartHasBeenSet() const { return m_onStartHasBeenSet; }
142 
148  inline void SetOnStart(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { m_onStartHasBeenSet = true; m_onStart = value; }
149 
155  inline void SetOnStart(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { m_onStartHasBeenSet = true; m_onStart = std::move(value); }
156 
163 
169  inline CreateNotebookInstanceLifecycleConfigRequest& WithOnStart(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { SetOnStart(std::move(value)); return *this;}
170 
176  inline CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(const NotebookInstanceLifecycleHook& value) { m_onStartHasBeenSet = true; m_onStart.push_back(value); return *this; }
177 
183  inline CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(NotebookInstanceLifecycleHook&& value) { m_onStartHasBeenSet = true; m_onStart.push_back(std::move(value)); return *this; }
184 
185  private:
186 
187  Aws::String m_notebookInstanceLifecycleConfigName;
188  bool m_notebookInstanceLifecycleConfigNameHasBeenSet;
189 
191  bool m_onCreateHasBeenSet;
192 
194  bool m_onStartHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace SageMaker
199 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::CreateNotebookInstanceLifecycleConfigRequest
CreateNotebookInstanceLifecycleConfigRequest()
NotebookInstanceLifecycleHook.h
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:24
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::OnStartHasBeenSet
bool OnStartHasBeenSet() const
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:141
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithNotebookInstanceLifecycleConfigName
CreateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(Aws::String &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:72
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::OnCreateHasBeenSet
bool OnCreateHasBeenSet() const
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:90
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::GetOnStart
const Aws::Vector< NotebookInstanceLifecycleHook > & GetOnStart() const
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:134
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetOnCreate
void SetOnCreate(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:96
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithNotebookInstanceLifecycleConfigName
CreateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(const Aws::String &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:67
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithOnStart
CreateNotebookInstanceLifecycleConfigRequest & WithOnStart(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:162
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetOnCreate
void SetOnCreate(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:102
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetNotebookInstanceLifecycleConfigName
void SetNotebookInstanceLifecycleConfigName(const Aws::String &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:52
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::NotebookInstanceLifecycleHook
Definition: NotebookInstanceLifecycleHook.h:44
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetNotebookInstanceLifecycleConfigName
void SetNotebookInstanceLifecycleConfigName(const char *value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:62
AWSVector.h
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::AddOnCreate
CreateNotebookInstanceLifecycleConfigRequest & AddOnCreate(NotebookInstanceLifecycleHook &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:126
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::AddOnCreate
CreateNotebookInstanceLifecycleConfigRequest & AddOnCreate(const NotebookInstanceLifecycleHook &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:120
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithOnStart
CreateNotebookInstanceLifecycleConfigRequest & WithOnStart(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:169
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::GetOnCreate
const Aws::Vector< NotebookInstanceLifecycleHook > & GetOnCreate() const
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:84
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithOnCreate
CreateNotebookInstanceLifecycleConfigRequest & WithOnCreate(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:114
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithOnCreate
CreateNotebookInstanceLifecycleConfigRequest & WithOnCreate(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:108
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::GetNotebookInstanceLifecycleConfigName
const Aws::String & GetNotebookInstanceLifecycleConfigName() const
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:42
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetNotebookInstanceLifecycleConfigName
void SetNotebookInstanceLifecycleConfigName(Aws::String &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:57
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::AddOnStart
CreateNotebookInstanceLifecycleConfigRequest & AddOnStart(NotebookInstanceLifecycleHook &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:183
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::WithNotebookInstanceLifecycleConfigName
CreateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(const char *value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:77
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetOnStart
void SetOnStart(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:148
AWSString.h
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::NotebookInstanceLifecycleConfigNameHasBeenSet
bool NotebookInstanceLifecycleConfigNameHasBeenSet() const
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:47
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SetOnStart
void SetOnStart(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:155
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::AddOnStart
CreateNotebookInstanceLifecycleConfigRequest & AddOnStart(const NotebookInstanceLifecycleHook &value)
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:176
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNotebookInstanceLifecycleConfigRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateNotebookInstanceLifecycleConfigRequest::SerializePayload
Aws::String SerializePayload() const override