AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NotebookExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/EMR_EXPORTS.h>
12#include <aws/elasticmapreduce/model/ExecutionEngineConfig.h>
13#include <aws/elasticmapreduce/model/NotebookExecutionStatus.h>
14#include <aws/elasticmapreduce/model/NotebookS3LocationForOutput.h>
15#include <aws/elasticmapreduce/model/OutputNotebookFormat.h>
16#include <aws/elasticmapreduce/model/OutputNotebookS3LocationForOutput.h>
17#include <aws/elasticmapreduce/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace EMR {
29namespace Model {
30
39 public:
40 AWS_EMR_API NotebookExecution() = default;
44
46
49 inline const Aws::String& GetNotebookExecutionId() const { return m_notebookExecutionId; }
50 inline bool NotebookExecutionIdHasBeenSet() const { return m_notebookExecutionIdHasBeenSet; }
51 template <typename NotebookExecutionIdT = Aws::String>
52 void SetNotebookExecutionId(NotebookExecutionIdT&& value) {
53 m_notebookExecutionIdHasBeenSet = true;
54 m_notebookExecutionId = std::forward<NotebookExecutionIdT>(value);
55 }
56 template <typename NotebookExecutionIdT = Aws::String>
57 NotebookExecution& WithNotebookExecutionId(NotebookExecutionIdT&& value) {
58 SetNotebookExecutionId(std::forward<NotebookExecutionIdT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetEditorId() const { return m_editorId; }
69 inline bool EditorIdHasBeenSet() const { return m_editorIdHasBeenSet; }
70 template <typename EditorIdT = Aws::String>
71 void SetEditorId(EditorIdT&& value) {
72 m_editorIdHasBeenSet = true;
73 m_editorId = std::forward<EditorIdT>(value);
74 }
75 template <typename EditorIdT = Aws::String>
76 NotebookExecution& WithEditorId(EditorIdT&& value) {
77 SetEditorId(std::forward<EditorIdT>(value));
78 return *this;
79 }
81
83
87 inline const ExecutionEngineConfig& GetExecutionEngine() const { return m_executionEngine; }
88 inline bool ExecutionEngineHasBeenSet() const { return m_executionEngineHasBeenSet; }
89 template <typename ExecutionEngineT = ExecutionEngineConfig>
90 void SetExecutionEngine(ExecutionEngineT&& value) {
91 m_executionEngineHasBeenSet = true;
92 m_executionEngine = std::forward<ExecutionEngineT>(value);
93 }
94 template <typename ExecutionEngineT = ExecutionEngineConfig>
95 NotebookExecution& WithExecutionEngine(ExecutionEngineT&& value) {
96 SetExecutionEngine(std::forward<ExecutionEngineT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetNotebookExecutionName() const { return m_notebookExecutionName; }
106 inline bool NotebookExecutionNameHasBeenSet() const { return m_notebookExecutionNameHasBeenSet; }
107 template <typename NotebookExecutionNameT = Aws::String>
108 void SetNotebookExecutionName(NotebookExecutionNameT&& value) {
109 m_notebookExecutionNameHasBeenSet = true;
110 m_notebookExecutionName = std::forward<NotebookExecutionNameT>(value);
111 }
112 template <typename NotebookExecutionNameT = Aws::String>
113 NotebookExecution& WithNotebookExecutionName(NotebookExecutionNameT&& value) {
114 SetNotebookExecutionName(std::forward<NotebookExecutionNameT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetNotebookParams() const { return m_notebookParams; }
125 inline bool NotebookParamsHasBeenSet() const { return m_notebookParamsHasBeenSet; }
126 template <typename NotebookParamsT = Aws::String>
127 void SetNotebookParams(NotebookParamsT&& value) {
128 m_notebookParamsHasBeenSet = true;
129 m_notebookParams = std::forward<NotebookParamsT>(value);
130 }
131 template <typename NotebookParamsT = Aws::String>
132 NotebookExecution& WithNotebookParams(NotebookParamsT&& value) {
133 SetNotebookParams(std::forward<NotebookParamsT>(value));
134 return *this;
135 }
137
139
158 inline NotebookExecutionStatus GetStatus() const { return m_status; }
159 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 m_statusHasBeenSet = true;
162 m_status = value;
163 }
165 SetStatus(value);
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
175 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
176 template <typename StartTimeT = Aws::Utils::DateTime>
177 void SetStartTime(StartTimeT&& value) {
178 m_startTimeHasBeenSet = true;
179 m_startTime = std::forward<StartTimeT>(value);
180 }
181 template <typename StartTimeT = Aws::Utils::DateTime>
182 NotebookExecution& WithStartTime(StartTimeT&& value) {
183 SetStartTime(std::forward<StartTimeT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
193 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
194 template <typename EndTimeT = Aws::Utils::DateTime>
195 void SetEndTime(EndTimeT&& value) {
196 m_endTimeHasBeenSet = true;
197 m_endTime = std::forward<EndTimeT>(value);
198 }
199 template <typename EndTimeT = Aws::Utils::DateTime>
200 NotebookExecution& WithEndTime(EndTimeT&& value) {
201 SetEndTime(std::forward<EndTimeT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetArn() const { return m_arn; }
211 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
212 template <typename ArnT = Aws::String>
213 void SetArn(ArnT&& value) {
214 m_arnHasBeenSet = true;
215 m_arn = std::forward<ArnT>(value);
216 }
217 template <typename ArnT = Aws::String>
218 NotebookExecution& WithArn(ArnT&& value) {
219 SetArn(std::forward<ArnT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetOutputNotebookURI() const { return m_outputNotebookURI; }
229 inline bool OutputNotebookURIHasBeenSet() const { return m_outputNotebookURIHasBeenSet; }
230 template <typename OutputNotebookURIT = Aws::String>
231 void SetOutputNotebookURI(OutputNotebookURIT&& value) {
232 m_outputNotebookURIHasBeenSet = true;
233 m_outputNotebookURI = std::forward<OutputNotebookURIT>(value);
234 }
235 template <typename OutputNotebookURIT = Aws::String>
236 NotebookExecution& WithOutputNotebookURI(OutputNotebookURIT&& value) {
237 SetOutputNotebookURI(std::forward<OutputNotebookURIT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetLastStateChangeReason() const { return m_lastStateChangeReason; }
247 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
248 template <typename LastStateChangeReasonT = Aws::String>
249 void SetLastStateChangeReason(LastStateChangeReasonT&& value) {
250 m_lastStateChangeReasonHasBeenSet = true;
251 m_lastStateChangeReason = std::forward<LastStateChangeReasonT>(value);
252 }
253 template <typename LastStateChangeReasonT = Aws::String>
254 NotebookExecution& WithLastStateChangeReason(LastStateChangeReasonT&& value) {
255 SetLastStateChangeReason(std::forward<LastStateChangeReasonT>(value));
256 return *this;
257 }
259
261
268 inline const Aws::String& GetNotebookInstanceSecurityGroupId() const { return m_notebookInstanceSecurityGroupId; }
269 inline bool NotebookInstanceSecurityGroupIdHasBeenSet() const { return m_notebookInstanceSecurityGroupIdHasBeenSet; }
270 template <typename NotebookInstanceSecurityGroupIdT = Aws::String>
271 void SetNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) {
272 m_notebookInstanceSecurityGroupIdHasBeenSet = true;
273 m_notebookInstanceSecurityGroupId = std::forward<NotebookInstanceSecurityGroupIdT>(value);
274 }
275 template <typename NotebookInstanceSecurityGroupIdT = Aws::String>
276 NotebookExecution& WithNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) {
277 SetNotebookInstanceSecurityGroupId(std::forward<NotebookInstanceSecurityGroupIdT>(value));
278 return *this;
279 }
281
283
288 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
289 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
290 template <typename TagsT = Aws::Vector<Tag>>
291 void SetTags(TagsT&& value) {
292 m_tagsHasBeenSet = true;
293 m_tags = std::forward<TagsT>(value);
294 }
295 template <typename TagsT = Aws::Vector<Tag>>
296 NotebookExecution& WithTags(TagsT&& value) {
297 SetTags(std::forward<TagsT>(value));
298 return *this;
299 }
300 template <typename TagsT = Tag>
301 NotebookExecution& AddTags(TagsT&& value) {
302 m_tagsHasBeenSet = true;
303 m_tags.emplace_back(std::forward<TagsT>(value));
304 return *this;
305 }
307
309
312 inline const NotebookS3LocationForOutput& GetNotebookS3Location() const { return m_notebookS3Location; }
313 inline bool NotebookS3LocationHasBeenSet() const { return m_notebookS3LocationHasBeenSet; }
314 template <typename NotebookS3LocationT = NotebookS3LocationForOutput>
315 void SetNotebookS3Location(NotebookS3LocationT&& value) {
316 m_notebookS3LocationHasBeenSet = true;
317 m_notebookS3Location = std::forward<NotebookS3LocationT>(value);
318 }
319 template <typename NotebookS3LocationT = NotebookS3LocationForOutput>
320 NotebookExecution& WithNotebookS3Location(NotebookS3LocationT&& value) {
321 SetNotebookS3Location(std::forward<NotebookS3LocationT>(value));
322 return *this;
323 }
325
327
330 inline const OutputNotebookS3LocationForOutput& GetOutputNotebookS3Location() const { return m_outputNotebookS3Location; }
331 inline bool OutputNotebookS3LocationHasBeenSet() const { return m_outputNotebookS3LocationHasBeenSet; }
332 template <typename OutputNotebookS3LocationT = OutputNotebookS3LocationForOutput>
333 void SetOutputNotebookS3Location(OutputNotebookS3LocationT&& value) {
334 m_outputNotebookS3LocationHasBeenSet = true;
335 m_outputNotebookS3Location = std::forward<OutputNotebookS3LocationT>(value);
336 }
337 template <typename OutputNotebookS3LocationT = OutputNotebookS3LocationForOutput>
338 NotebookExecution& WithOutputNotebookS3Location(OutputNotebookS3LocationT&& value) {
339 SetOutputNotebookS3Location(std::forward<OutputNotebookS3LocationT>(value));
340 return *this;
341 }
343
345
348 inline OutputNotebookFormat GetOutputNotebookFormat() const { return m_outputNotebookFormat; }
349 inline bool OutputNotebookFormatHasBeenSet() const { return m_outputNotebookFormatHasBeenSet; }
351 m_outputNotebookFormatHasBeenSet = true;
352 m_outputNotebookFormat = value;
353 }
356 return *this;
357 }
359
361
364 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
365 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
366 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
367 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
368 m_environmentVariablesHasBeenSet = true;
369 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
370 }
371 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
372 NotebookExecution& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
373 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
374 return *this;
375 }
376 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
377 NotebookExecution& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
378 m_environmentVariablesHasBeenSet = true;
379 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
380 return *this;
381 }
383 private:
384 Aws::String m_notebookExecutionId;
385
386 Aws::String m_editorId;
387
388 ExecutionEngineConfig m_executionEngine;
389
390 Aws::String m_notebookExecutionName;
391
392 Aws::String m_notebookParams;
393
395
396 Aws::Utils::DateTime m_startTime{};
397
398 Aws::Utils::DateTime m_endTime{};
399
400 Aws::String m_arn;
401
402 Aws::String m_outputNotebookURI;
403
404 Aws::String m_lastStateChangeReason;
405
406 Aws::String m_notebookInstanceSecurityGroupId;
407
408 Aws::Vector<Tag> m_tags;
409
410 NotebookS3LocationForOutput m_notebookS3Location;
411
412 OutputNotebookS3LocationForOutput m_outputNotebookS3Location;
413
415
416 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
417 bool m_notebookExecutionIdHasBeenSet = false;
418 bool m_editorIdHasBeenSet = false;
419 bool m_executionEngineHasBeenSet = false;
420 bool m_notebookExecutionNameHasBeenSet = false;
421 bool m_notebookParamsHasBeenSet = false;
422 bool m_statusHasBeenSet = false;
423 bool m_startTimeHasBeenSet = false;
424 bool m_endTimeHasBeenSet = false;
425 bool m_arnHasBeenSet = false;
426 bool m_outputNotebookURIHasBeenSet = false;
427 bool m_lastStateChangeReasonHasBeenSet = false;
428 bool m_notebookInstanceSecurityGroupIdHasBeenSet = false;
429 bool m_tagsHasBeenSet = false;
430 bool m_notebookS3LocationHasBeenSet = false;
431 bool m_outputNotebookS3LocationHasBeenSet = false;
432 bool m_outputNotebookFormatHasBeenSet = false;
433 bool m_environmentVariablesHasBeenSet = false;
434};
435
436} // namespace Model
437} // namespace EMR
438} // namespace Aws
NotebookExecution & WithNotebookS3Location(NotebookS3LocationT &&value)
const ExecutionEngineConfig & GetExecutionEngine() const
NotebookExecution & WithNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT &&value)
NotebookExecution & WithLastStateChangeReason(LastStateChangeReasonT &&value)
const Aws::String & GetNotebookExecutionId() const
void SetExecutionEngine(ExecutionEngineT &&value)
NotebookExecution & WithNotebookExecutionName(NotebookExecutionNameT &&value)
const Aws::String & GetArn() const
const Aws::String & GetEditorId() const
NotebookExecution & WithNotebookExecutionId(NotebookExecutionIdT &&value)
NotebookExecution & AddTags(TagsT &&value)
void SetNotebookExecutionId(NotebookExecutionIdT &&value)
AWS_EMR_API NotebookExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
NotebookExecution & WithTags(TagsT &&value)
const OutputNotebookS3LocationForOutput & GetOutputNotebookS3Location() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
NotebookExecution & WithEditorId(EditorIdT &&value)
const Aws::String & GetLastStateChangeReason() const
NotebookExecution & WithEndTime(EndTimeT &&value)
void SetLastStateChangeReason(LastStateChangeReasonT &&value)
NotebookExecution & WithStatus(NotebookExecutionStatus value)
void SetStatus(NotebookExecutionStatus value)
const Aws::String & GetNotebookExecutionName() const
void SetNotebookS3Location(NotebookS3LocationT &&value)
NotebookExecution & WithOutputNotebookFormat(OutputNotebookFormat value)
NotebookExecution & WithStartTime(StartTimeT &&value)
OutputNotebookFormat GetOutputNotebookFormat() const
NotebookExecution & WithArn(ArnT &&value)
NotebookExecution & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
const Aws::Utils::DateTime & GetEndTime() const
NotebookExecution & WithOutputNotebookS3Location(OutputNotebookS3LocationT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
NotebookExecution & WithEnvironmentVariables(EnvironmentVariablesT &&value)
void SetOutputNotebookFormat(OutputNotebookFormat value)
NotebookExecution & WithOutputNotebookURI(OutputNotebookURIT &&value)
void SetOutputNotebookURI(OutputNotebookURIT &&value)
AWS_EMR_API NotebookExecution(Aws::Utils::Json::JsonView jsonValue)
NotebookExecution & WithNotebookParams(NotebookParamsT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetNotebookInstanceSecurityGroupId() const
void SetNotebookParams(NotebookParamsT &&value)
void SetEditorId(EditorIdT &&value)
NotebookExecutionStatus GetStatus() const
void SetOutputNotebookS3Location(OutputNotebookS3LocationT &&value)
void SetStartTime(StartTimeT &&value)
const NotebookS3LocationForOutput & GetNotebookS3Location() const
NotebookExecution & WithExecutionEngine(ExecutionEngineT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetNotebookExecutionName(NotebookExecutionNameT &&value)
const Aws::String & GetOutputNotebookURI() const
const Aws::String & GetNotebookParams() const
void SetNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT &&value)
AWS_EMR_API NotebookExecution()=default
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
Aws::Utils::Json::JsonValue JsonValue