AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StartNotebookExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMRRequest.h>
11#include <aws/elasticmapreduce/EMR_EXPORTS.h>
12#include <aws/elasticmapreduce/model/ExecutionEngineConfig.h>
13#include <aws/elasticmapreduce/model/NotebookS3LocationFromInput.h>
14#include <aws/elasticmapreduce/model/OutputNotebookFormat.h>
15#include <aws/elasticmapreduce/model/OutputNotebookS3LocationFromInput.h>
16#include <aws/elasticmapreduce/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace EMR {
22namespace Model {
23
27 public:
28 AWS_EMR_API StartNotebookExecutionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartNotebookExecution"; }
35
36 AWS_EMR_API Aws::String SerializePayload() const override;
37
39
41
45 inline const Aws::String& GetEditorId() const { return m_editorId; }
46 inline bool EditorIdHasBeenSet() const { return m_editorIdHasBeenSet; }
47 template <typename EditorIdT = Aws::String>
48 void SetEditorId(EditorIdT&& value) {
49 m_editorIdHasBeenSet = true;
50 m_editorId = std::forward<EditorIdT>(value);
51 }
52 template <typename EditorIdT = Aws::String>
54 SetEditorId(std::forward<EditorIdT>(value));
55 return *this;
56 }
58
60
71 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
72 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
73 template <typename RelativePathT = Aws::String>
74 void SetRelativePath(RelativePathT&& value) {
75 m_relativePathHasBeenSet = true;
76 m_relativePath = std::forward<RelativePathT>(value);
77 }
78 template <typename RelativePathT = Aws::String>
80 SetRelativePath(std::forward<RelativePathT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetNotebookExecutionName() const { return m_notebookExecutionName; }
90 inline bool NotebookExecutionNameHasBeenSet() const { return m_notebookExecutionNameHasBeenSet; }
91 template <typename NotebookExecutionNameT = Aws::String>
92 void SetNotebookExecutionName(NotebookExecutionNameT&& value) {
93 m_notebookExecutionNameHasBeenSet = true;
94 m_notebookExecutionName = std::forward<NotebookExecutionNameT>(value);
95 }
96 template <typename NotebookExecutionNameT = Aws::String>
98 SetNotebookExecutionName(std::forward<NotebookExecutionNameT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetNotebookParams() const { return m_notebookParams; }
109 inline bool NotebookParamsHasBeenSet() const { return m_notebookParamsHasBeenSet; }
110 template <typename NotebookParamsT = Aws::String>
111 void SetNotebookParams(NotebookParamsT&& value) {
112 m_notebookParamsHasBeenSet = true;
113 m_notebookParams = std::forward<NotebookParamsT>(value);
114 }
115 template <typename NotebookParamsT = Aws::String>
117 SetNotebookParams(std::forward<NotebookParamsT>(value));
118 return *this;
119 }
121
123
127 inline const ExecutionEngineConfig& GetExecutionEngine() const { return m_executionEngine; }
128 inline bool ExecutionEngineHasBeenSet() const { return m_executionEngineHasBeenSet; }
129 template <typename ExecutionEngineT = ExecutionEngineConfig>
130 void SetExecutionEngine(ExecutionEngineT&& value) {
131 m_executionEngineHasBeenSet = true;
132 m_executionEngine = std::forward<ExecutionEngineT>(value);
133 }
134 template <typename ExecutionEngineT = ExecutionEngineConfig>
136 SetExecutionEngine(std::forward<ExecutionEngineT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
147 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
148 template <typename ServiceRoleT = Aws::String>
149 void SetServiceRole(ServiceRoleT&& value) {
150 m_serviceRoleHasBeenSet = true;
151 m_serviceRole = std::forward<ServiceRoleT>(value);
152 }
153 template <typename ServiceRoleT = Aws::String>
155 SetServiceRole(std::forward<ServiceRoleT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetNotebookInstanceSecurityGroupId() const { return m_notebookInstanceSecurityGroupId; }
166 inline bool NotebookInstanceSecurityGroupIdHasBeenSet() const { return m_notebookInstanceSecurityGroupIdHasBeenSet; }
167 template <typename NotebookInstanceSecurityGroupIdT = Aws::String>
168 void SetNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) {
169 m_notebookInstanceSecurityGroupIdHasBeenSet = true;
170 m_notebookInstanceSecurityGroupId = std::forward<NotebookInstanceSecurityGroupIdT>(value);
171 }
172 template <typename NotebookInstanceSecurityGroupIdT = Aws::String>
173 StartNotebookExecutionRequest& WithNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) {
174 SetNotebookInstanceSecurityGroupId(std::forward<NotebookInstanceSecurityGroupIdT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template <typename TagsT = Aws::Vector<Tag>>
188 void SetTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags = std::forward<TagsT>(value);
191 }
192 template <typename TagsT = Aws::Vector<Tag>>
194 SetTags(std::forward<TagsT>(value));
195 return *this;
196 }
197 template <typename TagsT = Tag>
199 m_tagsHasBeenSet = true;
200 m_tags.emplace_back(std::forward<TagsT>(value));
201 return *this;
202 }
204
206
209 inline const NotebookS3LocationFromInput& GetNotebookS3Location() const { return m_notebookS3Location; }
210 inline bool NotebookS3LocationHasBeenSet() const { return m_notebookS3LocationHasBeenSet; }
211 template <typename NotebookS3LocationT = NotebookS3LocationFromInput>
212 void SetNotebookS3Location(NotebookS3LocationT&& value) {
213 m_notebookS3LocationHasBeenSet = true;
214 m_notebookS3Location = std::forward<NotebookS3LocationT>(value);
215 }
216 template <typename NotebookS3LocationT = NotebookS3LocationFromInput>
218 SetNotebookS3Location(std::forward<NotebookS3LocationT>(value));
219 return *this;
220 }
222
224
227 inline const OutputNotebookS3LocationFromInput& GetOutputNotebookS3Location() const { return m_outputNotebookS3Location; }
228 inline bool OutputNotebookS3LocationHasBeenSet() const { return m_outputNotebookS3LocationHasBeenSet; }
229 template <typename OutputNotebookS3LocationT = OutputNotebookS3LocationFromInput>
230 void SetOutputNotebookS3Location(OutputNotebookS3LocationT&& value) {
231 m_outputNotebookS3LocationHasBeenSet = true;
232 m_outputNotebookS3Location = std::forward<OutputNotebookS3LocationT>(value);
233 }
234 template <typename OutputNotebookS3LocationT = OutputNotebookS3LocationFromInput>
236 SetOutputNotebookS3Location(std::forward<OutputNotebookS3LocationT>(value));
237 return *this;
238 }
240
242
245 inline OutputNotebookFormat GetOutputNotebookFormat() const { return m_outputNotebookFormat; }
246 inline bool OutputNotebookFormatHasBeenSet() const { return m_outputNotebookFormatHasBeenSet; }
248 m_outputNotebookFormatHasBeenSet = true;
249 m_outputNotebookFormat = value;
250 }
253 return *this;
254 }
256
258
261 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
262 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
263 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
264 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
265 m_environmentVariablesHasBeenSet = true;
266 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
267 }
268 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
270 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
271 return *this;
272 }
273 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
274 StartNotebookExecutionRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
275 m_environmentVariablesHasBeenSet = true;
276 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
277 return *this;
278 }
280 private:
281 Aws::String m_editorId;
282
283 Aws::String m_relativePath;
284
285 Aws::String m_notebookExecutionName;
286
287 Aws::String m_notebookParams;
288
289 ExecutionEngineConfig m_executionEngine;
290
291 Aws::String m_serviceRole;
292
293 Aws::String m_notebookInstanceSecurityGroupId;
294
295 Aws::Vector<Tag> m_tags;
296
297 NotebookS3LocationFromInput m_notebookS3Location;
298
299 OutputNotebookS3LocationFromInput m_outputNotebookS3Location;
300
302
303 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
304 bool m_editorIdHasBeenSet = false;
305 bool m_relativePathHasBeenSet = false;
306 bool m_notebookExecutionNameHasBeenSet = false;
307 bool m_notebookParamsHasBeenSet = false;
308 bool m_executionEngineHasBeenSet = false;
309 bool m_serviceRoleHasBeenSet = false;
310 bool m_notebookInstanceSecurityGroupIdHasBeenSet = false;
311 bool m_tagsHasBeenSet = false;
312 bool m_notebookS3LocationHasBeenSet = false;
313 bool m_outputNotebookS3LocationHasBeenSet = false;
314 bool m_outputNotebookFormatHasBeenSet = false;
315 bool m_environmentVariablesHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace EMR
320} // 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