AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartNotebookExecutionRequest.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticmapreduce/model/ExecutionEngineConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/NotebookS3LocationFromInput.h>
13#include <aws/elasticmapreduce/model/OutputNotebookS3LocationFromInput.h>
14#include <aws/elasticmapreduce/model/OutputNotebookFormat.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/elasticmapreduce/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace EMR
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_EMR_API StartNotebookExecutionRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartNotebookExecution"; }
38
39 AWS_EMR_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::String& GetEditorId() const { return m_editorId; }
50 inline bool EditorIdHasBeenSet() const { return m_editorIdHasBeenSet; }
51 template<typename EditorIdT = Aws::String>
52 void SetEditorId(EditorIdT&& value) { m_editorIdHasBeenSet = true; m_editorId = std::forward<EditorIdT>(value); }
53 template<typename EditorIdT = Aws::String>
54 StartNotebookExecutionRequest& WithEditorId(EditorIdT&& value) { SetEditorId(std::forward<EditorIdT>(value)); return *this;}
56
58
69 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
70 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
71 template<typename RelativePathT = Aws::String>
72 void SetRelativePath(RelativePathT&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::forward<RelativePathT>(value); }
73 template<typename RelativePathT = Aws::String>
74 StartNotebookExecutionRequest& WithRelativePath(RelativePathT&& value) { SetRelativePath(std::forward<RelativePathT>(value)); return *this;}
76
78
81 inline const Aws::String& GetNotebookExecutionName() const { return m_notebookExecutionName; }
82 inline bool NotebookExecutionNameHasBeenSet() const { return m_notebookExecutionNameHasBeenSet; }
83 template<typename NotebookExecutionNameT = Aws::String>
84 void SetNotebookExecutionName(NotebookExecutionNameT&& value) { m_notebookExecutionNameHasBeenSet = true; m_notebookExecutionName = std::forward<NotebookExecutionNameT>(value); }
85 template<typename NotebookExecutionNameT = Aws::String>
86 StartNotebookExecutionRequest& WithNotebookExecutionName(NotebookExecutionNameT&& value) { SetNotebookExecutionName(std::forward<NotebookExecutionNameT>(value)); return *this;}
88
90
94 inline const Aws::String& GetNotebookParams() const { return m_notebookParams; }
95 inline bool NotebookParamsHasBeenSet() const { return m_notebookParamsHasBeenSet; }
96 template<typename NotebookParamsT = Aws::String>
97 void SetNotebookParams(NotebookParamsT&& value) { m_notebookParamsHasBeenSet = true; m_notebookParams = std::forward<NotebookParamsT>(value); }
98 template<typename NotebookParamsT = Aws::String>
99 StartNotebookExecutionRequest& WithNotebookParams(NotebookParamsT&& value) { SetNotebookParams(std::forward<NotebookParamsT>(value)); return *this;}
101
103
107 inline const ExecutionEngineConfig& GetExecutionEngine() const { return m_executionEngine; }
108 inline bool ExecutionEngineHasBeenSet() const { return m_executionEngineHasBeenSet; }
109 template<typename ExecutionEngineT = ExecutionEngineConfig>
110 void SetExecutionEngine(ExecutionEngineT&& value) { m_executionEngineHasBeenSet = true; m_executionEngine = std::forward<ExecutionEngineT>(value); }
111 template<typename ExecutionEngineT = ExecutionEngineConfig>
112 StartNotebookExecutionRequest& WithExecutionEngine(ExecutionEngineT&& value) { SetExecutionEngine(std::forward<ExecutionEngineT>(value)); return *this;}
114
116
120 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
121 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
122 template<typename ServiceRoleT = Aws::String>
123 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
124 template<typename ServiceRoleT = Aws::String>
125 StartNotebookExecutionRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
127
129
133 inline const Aws::String& GetNotebookInstanceSecurityGroupId() const { return m_notebookInstanceSecurityGroupId; }
134 inline bool NotebookInstanceSecurityGroupIdHasBeenSet() const { return m_notebookInstanceSecurityGroupIdHasBeenSet; }
135 template<typename NotebookInstanceSecurityGroupIdT = Aws::String>
136 void SetNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) { m_notebookInstanceSecurityGroupIdHasBeenSet = true; m_notebookInstanceSecurityGroupId = std::forward<NotebookInstanceSecurityGroupIdT>(value); }
137 template<typename NotebookInstanceSecurityGroupIdT = Aws::String>
138 StartNotebookExecutionRequest& WithNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) { SetNotebookInstanceSecurityGroupId(std::forward<NotebookInstanceSecurityGroupIdT>(value)); return *this;}
140
142
147 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Vector<Tag>>
152 StartNotebookExecutionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsT = Tag>
154 StartNotebookExecutionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
156
158
161 inline const NotebookS3LocationFromInput& GetNotebookS3Location() const { return m_notebookS3Location; }
162 inline bool NotebookS3LocationHasBeenSet() const { return m_notebookS3LocationHasBeenSet; }
163 template<typename NotebookS3LocationT = NotebookS3LocationFromInput>
164 void SetNotebookS3Location(NotebookS3LocationT&& value) { m_notebookS3LocationHasBeenSet = true; m_notebookS3Location = std::forward<NotebookS3LocationT>(value); }
165 template<typename NotebookS3LocationT = NotebookS3LocationFromInput>
166 StartNotebookExecutionRequest& WithNotebookS3Location(NotebookS3LocationT&& value) { SetNotebookS3Location(std::forward<NotebookS3LocationT>(value)); return *this;}
168
170
173 inline const OutputNotebookS3LocationFromInput& GetOutputNotebookS3Location() const { return m_outputNotebookS3Location; }
174 inline bool OutputNotebookS3LocationHasBeenSet() const { return m_outputNotebookS3LocationHasBeenSet; }
175 template<typename OutputNotebookS3LocationT = OutputNotebookS3LocationFromInput>
176 void SetOutputNotebookS3Location(OutputNotebookS3LocationT&& value) { m_outputNotebookS3LocationHasBeenSet = true; m_outputNotebookS3Location = std::forward<OutputNotebookS3LocationT>(value); }
177 template<typename OutputNotebookS3LocationT = OutputNotebookS3LocationFromInput>
178 StartNotebookExecutionRequest& WithOutputNotebookS3Location(OutputNotebookS3LocationT&& value) { SetOutputNotebookS3Location(std::forward<OutputNotebookS3LocationT>(value)); return *this;}
180
182
185 inline OutputNotebookFormat GetOutputNotebookFormat() const { return m_outputNotebookFormat; }
186 inline bool OutputNotebookFormatHasBeenSet() const { return m_outputNotebookFormatHasBeenSet; }
187 inline void SetOutputNotebookFormat(OutputNotebookFormat value) { m_outputNotebookFormatHasBeenSet = true; m_outputNotebookFormat = value; }
190
192
195 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
196 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
197 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
198 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
199 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
200 StartNotebookExecutionRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
201 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
202 StartNotebookExecutionRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
203 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
204 }
206 private:
207
208 Aws::String m_editorId;
209 bool m_editorIdHasBeenSet = false;
210
211 Aws::String m_relativePath;
212 bool m_relativePathHasBeenSet = false;
213
214 Aws::String m_notebookExecutionName;
215 bool m_notebookExecutionNameHasBeenSet = false;
216
217 Aws::String m_notebookParams;
218 bool m_notebookParamsHasBeenSet = false;
219
220 ExecutionEngineConfig m_executionEngine;
221 bool m_executionEngineHasBeenSet = false;
222
223 Aws::String m_serviceRole;
224 bool m_serviceRoleHasBeenSet = false;
225
226 Aws::String m_notebookInstanceSecurityGroupId;
227 bool m_notebookInstanceSecurityGroupIdHasBeenSet = false;
228
229 Aws::Vector<Tag> m_tags;
230 bool m_tagsHasBeenSet = false;
231
232 NotebookS3LocationFromInput m_notebookS3Location;
233 bool m_notebookS3LocationHasBeenSet = false;
234
235 OutputNotebookS3LocationFromInput m_outputNotebookS3Location;
236 bool m_outputNotebookS3LocationHasBeenSet = false;
237
239 bool m_outputNotebookFormatHasBeenSet = false;
240
241 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
242 bool m_environmentVariablesHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace EMR
247} // namespace Aws
StartNotebookExecutionRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
StartNotebookExecutionRequest & WithServiceRole(ServiceRoleT &&value)
const OutputNotebookS3LocationFromInput & GetOutputNotebookS3Location() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
const NotebookS3LocationFromInput & GetNotebookS3Location() const
StartNotebookExecutionRequest & WithEditorId(EditorIdT &&value)
StartNotebookExecutionRequest & WithExecutionEngine(ExecutionEngineT &&value)
StartNotebookExecutionRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
StartNotebookExecutionRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
void SetNotebookExecutionName(NotebookExecutionNameT &&value)
StartNotebookExecutionRequest & WithTags(TagsT &&value)
StartNotebookExecutionRequest & WithNotebookS3Location(NotebookS3LocationT &&value)
StartNotebookExecutionRequest & WithNotebookParams(NotebookParamsT &&value)
StartNotebookExecutionRequest & WithOutputNotebookFormat(OutputNotebookFormat value)
StartNotebookExecutionRequest & WithRelativePath(RelativePathT &&value)
StartNotebookExecutionRequest & WithNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT &&value)
AWS_EMR_API Aws::String SerializePayload() const override
void SetOutputNotebookS3Location(OutputNotebookS3LocationT &&value)
void SetNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT &&value)
StartNotebookExecutionRequest & WithOutputNotebookS3Location(OutputNotebookS3LocationT &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartNotebookExecutionRequest & WithNotebookExecutionName(NotebookExecutionNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector