AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateNotebookInstanceLifecycleConfigRequest.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 "UpdateNotebookInstanceLifecycleConfig"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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 UpdateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(const Aws::String& value) { SetNotebookInstanceLifecycleConfigName(value); return *this;}
68 
72  inline UpdateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(Aws::String&& value) { SetNotebookInstanceLifecycleConfigName(std::move(value)); return *this;}
73 
77  inline UpdateNotebookInstanceLifecycleConfigRequest& 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 UpdateNotebookInstanceLifecycleConfigRequest& WithOnCreate(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { SetOnCreate(std::move(value)); return *this;}
115 
120  inline UpdateNotebookInstanceLifecycleConfigRequest& AddOnCreate(const NotebookInstanceLifecycleHook& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(value); return *this; }
121 
126  inline UpdateNotebookInstanceLifecycleConfigRequest& 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 UpdateNotebookInstanceLifecycleConfigRequest& WithOnStart(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { SetOnStart(std::move(value)); return *this;}
170 
176  inline UpdateNotebookInstanceLifecycleConfigRequest& AddOnStart(const NotebookInstanceLifecycleHook& value) { m_onStartHasBeenSet = true; m_onStart.push_back(value); return *this; }
177 
183  inline UpdateNotebookInstanceLifecycleConfigRequest& 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
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(const char *value)
#define AWS_SAGEMAKER_API
UpdateNotebookInstanceLifecycleConfigRequest & AddOnCreate(NotebookInstanceLifecycleHook &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnCreate(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
UpdateNotebookInstanceLifecycleConfigRequest & AddOnCreate(const NotebookInstanceLifecycleHook &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateNotebookInstanceLifecycleConfigRequest & WithOnStart(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnStart(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
void SetOnCreate(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
UpdateNotebookInstanceLifecycleConfigRequest & AddOnStart(NotebookInstanceLifecycleHook &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateNotebookInstanceLifecycleConfigRequest & AddOnStart(const NotebookInstanceLifecycleHook &value)
void SetOnStart(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnCreate(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(const Aws::String &value)
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(Aws::String &&value)