AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateNotebookInstanceLifecycleConfigRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/NotebookInstanceLifecycleHook.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace 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_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetNotebookInstanceLifecycleConfigName() const{ return m_notebookInstanceLifecycleConfigName; }
44 inline bool NotebookInstanceLifecycleConfigNameHasBeenSet() const { return m_notebookInstanceLifecycleConfigNameHasBeenSet; }
45 inline void SetNotebookInstanceLifecycleConfigName(const Aws::String& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = value; }
46 inline void SetNotebookInstanceLifecycleConfigName(Aws::String&& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = std::move(value); }
47 inline void SetNotebookInstanceLifecycleConfigName(const char* value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName.assign(value); }
52
54
58 inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnCreate() const{ return m_onCreate; }
59 inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; }
60 inline void SetOnCreate(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { m_onCreateHasBeenSet = true; m_onCreate = value; }
61 inline void SetOnCreate(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { m_onCreateHasBeenSet = true; m_onCreate = std::move(value); }
64 inline UpdateNotebookInstanceLifecycleConfigRequest& AddOnCreate(const NotebookInstanceLifecycleHook& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(value); return *this; }
65 inline UpdateNotebookInstanceLifecycleConfigRequest& AddOnCreate(NotebookInstanceLifecycleHook&& value) { m_onCreateHasBeenSet = true; m_onCreate.push_back(std::move(value)); return *this; }
67
69
74 inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnStart() const{ return m_onStart; }
75 inline bool OnStartHasBeenSet() const { return m_onStartHasBeenSet; }
76 inline void SetOnStart(const Aws::Vector<NotebookInstanceLifecycleHook>& value) { m_onStartHasBeenSet = true; m_onStart = value; }
77 inline void SetOnStart(Aws::Vector<NotebookInstanceLifecycleHook>&& value) { m_onStartHasBeenSet = true; m_onStart = std::move(value); }
80 inline UpdateNotebookInstanceLifecycleConfigRequest& AddOnStart(const NotebookInstanceLifecycleHook& value) { m_onStartHasBeenSet = true; m_onStart.push_back(value); return *this; }
81 inline UpdateNotebookInstanceLifecycleConfigRequest& AddOnStart(NotebookInstanceLifecycleHook&& value) { m_onStartHasBeenSet = true; m_onStart.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_notebookInstanceLifecycleConfigName;
86 bool m_notebookInstanceLifecycleConfigNameHasBeenSet = false;
87
89 bool m_onCreateHasBeenSet = false;
90
92 bool m_onStartHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SageMaker
97} // namespace Aws
UpdateNotebookInstanceLifecycleConfigRequest & AddOnStart(NotebookInstanceLifecycleHook &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnStart(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
UpdateNotebookInstanceLifecycleConfigRequest & AddOnCreate(NotebookInstanceLifecycleHook &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(Aws::String &&value)
UpdateNotebookInstanceLifecycleConfigRequest & AddOnCreate(const NotebookInstanceLifecycleHook &value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnStart(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(const char *value)
void SetOnCreate(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(const Aws::String &value)
UpdateNotebookInstanceLifecycleConfigRequest & AddOnStart(const NotebookInstanceLifecycleHook &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateNotebookInstanceLifecycleConfigRequest & WithOnCreate(const Aws::Vector< NotebookInstanceLifecycleHook > &value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnCreate(Aws::Vector< NotebookInstanceLifecycleHook > &&value)
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