AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
NotebookExecution.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/ExecutionEngineConfig.h>
10#include <aws/elasticmapreduce/model/NotebookExecutionStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticmapreduce/model/NotebookS3LocationForOutput.h>
14#include <aws/elasticmapreduce/model/OutputNotebookS3LocationForOutput.h>
15#include <aws/elasticmapreduce/model/OutputNotebookFormat.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/elasticmapreduce/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace EMR
31{
32namespace Model
33{
34
43 {
44 public:
45 AWS_EMR_API NotebookExecution() = default;
49
50
52
55 inline const Aws::String& GetNotebookExecutionId() const { return m_notebookExecutionId; }
56 inline bool NotebookExecutionIdHasBeenSet() const { return m_notebookExecutionIdHasBeenSet; }
57 template<typename NotebookExecutionIdT = Aws::String>
58 void SetNotebookExecutionId(NotebookExecutionIdT&& value) { m_notebookExecutionIdHasBeenSet = true; m_notebookExecutionId = std::forward<NotebookExecutionIdT>(value); }
59 template<typename NotebookExecutionIdT = Aws::String>
60 NotebookExecution& WithNotebookExecutionId(NotebookExecutionIdT&& value) { SetNotebookExecutionId(std::forward<NotebookExecutionIdT>(value)); return *this;}
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) { m_editorIdHasBeenSet = true; m_editorId = std::forward<EditorIdT>(value); }
72 template<typename EditorIdT = Aws::String>
73 NotebookExecution& WithEditorId(EditorIdT&& value) { SetEditorId(std::forward<EditorIdT>(value)); return *this;}
75
77
81 inline const ExecutionEngineConfig& GetExecutionEngine() const { return m_executionEngine; }
82 inline bool ExecutionEngineHasBeenSet() const { return m_executionEngineHasBeenSet; }
83 template<typename ExecutionEngineT = ExecutionEngineConfig>
84 void SetExecutionEngine(ExecutionEngineT&& value) { m_executionEngineHasBeenSet = true; m_executionEngine = std::forward<ExecutionEngineT>(value); }
85 template<typename ExecutionEngineT = ExecutionEngineConfig>
86 NotebookExecution& WithExecutionEngine(ExecutionEngineT&& value) { SetExecutionEngine(std::forward<ExecutionEngineT>(value)); return *this;}
88
90
93 inline const Aws::String& GetNotebookExecutionName() const { return m_notebookExecutionName; }
94 inline bool NotebookExecutionNameHasBeenSet() const { return m_notebookExecutionNameHasBeenSet; }
95 template<typename NotebookExecutionNameT = Aws::String>
96 void SetNotebookExecutionName(NotebookExecutionNameT&& value) { m_notebookExecutionNameHasBeenSet = true; m_notebookExecutionName = std::forward<NotebookExecutionNameT>(value); }
97 template<typename NotebookExecutionNameT = Aws::String>
98 NotebookExecution& WithNotebookExecutionName(NotebookExecutionNameT&& value) { SetNotebookExecutionName(std::forward<NotebookExecutionNameT>(value)); return *this;}
100
102
106 inline const Aws::String& GetNotebookParams() const { return m_notebookParams; }
107 inline bool NotebookParamsHasBeenSet() const { return m_notebookParamsHasBeenSet; }
108 template<typename NotebookParamsT = Aws::String>
109 void SetNotebookParams(NotebookParamsT&& value) { m_notebookParamsHasBeenSet = true; m_notebookParams = std::forward<NotebookParamsT>(value); }
110 template<typename NotebookParamsT = Aws::String>
111 NotebookExecution& WithNotebookParams(NotebookParamsT&& value) { SetNotebookParams(std::forward<NotebookParamsT>(value)); return *this;}
113
115
134 inline NotebookExecutionStatus GetStatus() const { return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(NotebookExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
137 inline NotebookExecution& WithStatus(NotebookExecutionStatus value) { SetStatus(value); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
145 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
146 template<typename StartTimeT = Aws::Utils::DateTime>
147 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
148 template<typename StartTimeT = Aws::Utils::DateTime>
149 NotebookExecution& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
157 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
158 template<typename EndTimeT = Aws::Utils::DateTime>
159 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
160 template<typename EndTimeT = Aws::Utils::DateTime>
161 NotebookExecution& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
163
165
168 inline const Aws::String& GetArn() const { return m_arn; }
169 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
170 template<typename ArnT = Aws::String>
171 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
172 template<typename ArnT = Aws::String>
173 NotebookExecution& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
175
177
180 inline const Aws::String& GetOutputNotebookURI() const { return m_outputNotebookURI; }
181 inline bool OutputNotebookURIHasBeenSet() const { return m_outputNotebookURIHasBeenSet; }
182 template<typename OutputNotebookURIT = Aws::String>
183 void SetOutputNotebookURI(OutputNotebookURIT&& value) { m_outputNotebookURIHasBeenSet = true; m_outputNotebookURI = std::forward<OutputNotebookURIT>(value); }
184 template<typename OutputNotebookURIT = Aws::String>
185 NotebookExecution& WithOutputNotebookURI(OutputNotebookURIT&& value) { SetOutputNotebookURI(std::forward<OutputNotebookURIT>(value)); return *this;}
187
189
192 inline const Aws::String& GetLastStateChangeReason() const { return m_lastStateChangeReason; }
193 inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; }
194 template<typename LastStateChangeReasonT = Aws::String>
195 void SetLastStateChangeReason(LastStateChangeReasonT&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::forward<LastStateChangeReasonT>(value); }
196 template<typename LastStateChangeReasonT = Aws::String>
197 NotebookExecution& WithLastStateChangeReason(LastStateChangeReasonT&& value) { SetLastStateChangeReason(std::forward<LastStateChangeReasonT>(value)); return *this;}
199
201
208 inline const Aws::String& GetNotebookInstanceSecurityGroupId() const { return m_notebookInstanceSecurityGroupId; }
209 inline bool NotebookInstanceSecurityGroupIdHasBeenSet() const { return m_notebookInstanceSecurityGroupIdHasBeenSet; }
210 template<typename NotebookInstanceSecurityGroupIdT = Aws::String>
211 void SetNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) { m_notebookInstanceSecurityGroupIdHasBeenSet = true; m_notebookInstanceSecurityGroupId = std::forward<NotebookInstanceSecurityGroupIdT>(value); }
212 template<typename NotebookInstanceSecurityGroupIdT = Aws::String>
213 NotebookExecution& WithNotebookInstanceSecurityGroupId(NotebookInstanceSecurityGroupIdT&& value) { SetNotebookInstanceSecurityGroupId(std::forward<NotebookInstanceSecurityGroupIdT>(value)); return *this;}
215
217
222 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
223 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 template<typename TagsT = Aws::Vector<Tag>>
225 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
226 template<typename TagsT = Aws::Vector<Tag>>
227 NotebookExecution& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
228 template<typename TagsT = Tag>
229 NotebookExecution& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
231
233
236 inline const NotebookS3LocationForOutput& GetNotebookS3Location() const { return m_notebookS3Location; }
237 inline bool NotebookS3LocationHasBeenSet() const { return m_notebookS3LocationHasBeenSet; }
238 template<typename NotebookS3LocationT = NotebookS3LocationForOutput>
239 void SetNotebookS3Location(NotebookS3LocationT&& value) { m_notebookS3LocationHasBeenSet = true; m_notebookS3Location = std::forward<NotebookS3LocationT>(value); }
240 template<typename NotebookS3LocationT = NotebookS3LocationForOutput>
241 NotebookExecution& WithNotebookS3Location(NotebookS3LocationT&& value) { SetNotebookS3Location(std::forward<NotebookS3LocationT>(value)); return *this;}
243
245
248 inline const OutputNotebookS3LocationForOutput& GetOutputNotebookS3Location() const { return m_outputNotebookS3Location; }
249 inline bool OutputNotebookS3LocationHasBeenSet() const { return m_outputNotebookS3LocationHasBeenSet; }
250 template<typename OutputNotebookS3LocationT = OutputNotebookS3LocationForOutput>
251 void SetOutputNotebookS3Location(OutputNotebookS3LocationT&& value) { m_outputNotebookS3LocationHasBeenSet = true; m_outputNotebookS3Location = std::forward<OutputNotebookS3LocationT>(value); }
252 template<typename OutputNotebookS3LocationT = OutputNotebookS3LocationForOutput>
253 NotebookExecution& WithOutputNotebookS3Location(OutputNotebookS3LocationT&& value) { SetOutputNotebookS3Location(std::forward<OutputNotebookS3LocationT>(value)); return *this;}
255
257
260 inline OutputNotebookFormat GetOutputNotebookFormat() const { return m_outputNotebookFormat; }
261 inline bool OutputNotebookFormatHasBeenSet() const { return m_outputNotebookFormatHasBeenSet; }
262 inline void SetOutputNotebookFormat(OutputNotebookFormat value) { m_outputNotebookFormatHasBeenSet = true; m_outputNotebookFormat = value; }
265
267
270 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
271 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
272 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
273 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
274 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
275 NotebookExecution& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
276 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
277 NotebookExecution& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
278 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
279 }
281 private:
282
283 Aws::String m_notebookExecutionId;
284 bool m_notebookExecutionIdHasBeenSet = false;
285
286 Aws::String m_editorId;
287 bool m_editorIdHasBeenSet = false;
288
289 ExecutionEngineConfig m_executionEngine;
290 bool m_executionEngineHasBeenSet = false;
291
292 Aws::String m_notebookExecutionName;
293 bool m_notebookExecutionNameHasBeenSet = false;
294
295 Aws::String m_notebookParams;
296 bool m_notebookParamsHasBeenSet = false;
297
299 bool m_statusHasBeenSet = false;
300
301 Aws::Utils::DateTime m_startTime{};
302 bool m_startTimeHasBeenSet = false;
303
304 Aws::Utils::DateTime m_endTime{};
305 bool m_endTimeHasBeenSet = false;
306
307 Aws::String m_arn;
308 bool m_arnHasBeenSet = false;
309
310 Aws::String m_outputNotebookURI;
311 bool m_outputNotebookURIHasBeenSet = false;
312
313 Aws::String m_lastStateChangeReason;
314 bool m_lastStateChangeReasonHasBeenSet = false;
315
316 Aws::String m_notebookInstanceSecurityGroupId;
317 bool m_notebookInstanceSecurityGroupIdHasBeenSet = false;
318
319 Aws::Vector<Tag> m_tags;
320 bool m_tagsHasBeenSet = false;
321
322 NotebookS3LocationForOutput m_notebookS3Location;
323 bool m_notebookS3LocationHasBeenSet = false;
324
325 OutputNotebookS3LocationForOutput m_outputNotebookS3Location;
326 bool m_outputNotebookS3LocationHasBeenSet = false;
327
329 bool m_outputNotebookFormatHasBeenSet = false;
330
331 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
332 bool m_environmentVariablesHasBeenSet = false;
333 };
334
335} // namespace Model
336} // namespace EMR
337} // 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