AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_SAGEMAKER_API UpdateNotebookInstanceLifecycleConfigRequest() = default;
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 template<typename NotebookInstanceLifecycleConfigNameT = Aws::String>
46 void SetNotebookInstanceLifecycleConfigName(NotebookInstanceLifecycleConfigNameT&& value) { m_notebookInstanceLifecycleConfigNameHasBeenSet = true; m_notebookInstanceLifecycleConfigName = std::forward<NotebookInstanceLifecycleConfigNameT>(value); }
47 template<typename NotebookInstanceLifecycleConfigNameT = Aws::String>
48 UpdateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(NotebookInstanceLifecycleConfigNameT&& value) { SetNotebookInstanceLifecycleConfigName(std::forward<NotebookInstanceLifecycleConfigNameT>(value)); return *this;}
50
52
56 inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnCreate() const { return m_onCreate; }
57 inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; }
58 template<typename OnCreateT = Aws::Vector<NotebookInstanceLifecycleHook>>
59 void SetOnCreate(OnCreateT&& value) { m_onCreateHasBeenSet = true; m_onCreate = std::forward<OnCreateT>(value); }
60 template<typename OnCreateT = Aws::Vector<NotebookInstanceLifecycleHook>>
61 UpdateNotebookInstanceLifecycleConfigRequest& WithOnCreate(OnCreateT&& value) { SetOnCreate(std::forward<OnCreateT>(value)); return *this;}
62 template<typename OnCreateT = NotebookInstanceLifecycleHook>
63 UpdateNotebookInstanceLifecycleConfigRequest& AddOnCreate(OnCreateT&& value) { m_onCreateHasBeenSet = true; m_onCreate.emplace_back(std::forward<OnCreateT>(value)); return *this; }
65
67
72 inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnStart() const { return m_onStart; }
73 inline bool OnStartHasBeenSet() const { return m_onStartHasBeenSet; }
74 template<typename OnStartT = Aws::Vector<NotebookInstanceLifecycleHook>>
75 void SetOnStart(OnStartT&& value) { m_onStartHasBeenSet = true; m_onStart = std::forward<OnStartT>(value); }
76 template<typename OnStartT = Aws::Vector<NotebookInstanceLifecycleHook>>
77 UpdateNotebookInstanceLifecycleConfigRequest& WithOnStart(OnStartT&& value) { SetOnStart(std::forward<OnStartT>(value)); return *this;}
78 template<typename OnStartT = NotebookInstanceLifecycleHook>
79 UpdateNotebookInstanceLifecycleConfigRequest& AddOnStart(OnStartT&& value) { m_onStartHasBeenSet = true; m_onStart.emplace_back(std::forward<OnStartT>(value)); return *this; }
81 private:
82
83 Aws::String m_notebookInstanceLifecycleConfigName;
84 bool m_notebookInstanceLifecycleConfigNameHasBeenSet = false;
85
87 bool m_onCreateHasBeenSet = false;
88
90 bool m_onStartHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SageMaker
95} // namespace Aws
UpdateNotebookInstanceLifecycleConfigRequest & AddOnStart(OnStartT &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnCreate(OnCreateT &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithOnStart(OnStartT &&value)
UpdateNotebookInstanceLifecycleConfigRequest & WithNotebookInstanceLifecycleConfigName(NotebookInstanceLifecycleConfigNameT &&value)
UpdateNotebookInstanceLifecycleConfigRequest & AddOnCreate(OnCreateT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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