AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
JobRunSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
10#include <aws/emr-serverless/model/FlexExecution.h>
11#include <aws/emr-serverless/model/JobRunMode.h>
12#include <aws/emr-serverless/model/JobRunState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMRServerless {
24namespace Model {
25
33 public:
34 AWS_EMRSERVERLESS_API JobRunSummary() = default;
35 AWS_EMRSERVERLESS_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EMRSERVERLESS_API JobRunSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 template <typename ApplicationIdT = Aws::String>
46 void SetApplicationId(ApplicationIdT&& value) {
47 m_applicationIdHasBeenSet = true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
49 }
50 template <typename ApplicationIdT = Aws::String>
51 JobRunSummary& WithApplicationId(ApplicationIdT&& value) {
52 SetApplicationId(std::forward<ApplicationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
69 JobRunSummary& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 JobRunSummary& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline JobRunMode GetMode() const { return m_mode; }
98 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
99 inline void SetMode(JobRunMode value) {
100 m_modeHasBeenSet = true;
101 m_mode = value;
102 }
104 SetMode(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetArn() const { return m_arn; }
114 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
115 template <typename ArnT = Aws::String>
116 void SetArn(ArnT&& value) {
117 m_arnHasBeenSet = true;
118 m_arn = std::forward<ArnT>(value);
119 }
120 template <typename ArnT = Aws::String>
121 JobRunSummary& WithArn(ArnT&& value) {
122 SetArn(std::forward<ArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
132 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
133 template <typename CreatedByT = Aws::String>
134 void SetCreatedBy(CreatedByT&& value) {
135 m_createdByHasBeenSet = true;
136 m_createdBy = std::forward<CreatedByT>(value);
137 }
138 template <typename CreatedByT = Aws::String>
139 JobRunSummary& WithCreatedBy(CreatedByT&& value) {
140 SetCreatedBy(std::forward<CreatedByT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
150 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 void SetCreatedAt(CreatedAtT&& value) {
153 m_createdAtHasBeenSet = true;
154 m_createdAt = std::forward<CreatedAtT>(value);
155 }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 JobRunSummary& WithCreatedAt(CreatedAtT&& value) {
158 SetCreatedAt(std::forward<CreatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
168 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 void SetUpdatedAt(UpdatedAtT&& value) {
171 m_updatedAtHasBeenSet = true;
172 m_updatedAt = std::forward<UpdatedAtT>(value);
173 }
174 template <typename UpdatedAtT = Aws::Utils::DateTime>
175 JobRunSummary& WithUpdatedAt(UpdatedAtT&& value) {
176 SetUpdatedAt(std::forward<UpdatedAtT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
186 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
187 template <typename ExecutionRoleT = Aws::String>
188 void SetExecutionRole(ExecutionRoleT&& value) {
189 m_executionRoleHasBeenSet = true;
190 m_executionRole = std::forward<ExecutionRoleT>(value);
191 }
192 template <typename ExecutionRoleT = Aws::String>
193 JobRunSummary& WithExecutionRole(ExecutionRoleT&& value) {
194 SetExecutionRole(std::forward<ExecutionRoleT>(value));
195 return *this;
196 }
198
200
203 inline JobRunState GetState() const { return m_state; }
204 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
205 inline void SetState(JobRunState value) {
206 m_stateHasBeenSet = true;
207 m_state = value;
208 }
210 SetState(value);
211 return *this;
212 }
214
216
219 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
220 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
221 template <typename StateDetailsT = Aws::String>
222 void SetStateDetails(StateDetailsT&& value) {
223 m_stateDetailsHasBeenSet = true;
224 m_stateDetails = std::forward<StateDetailsT>(value);
225 }
226 template <typename StateDetailsT = Aws::String>
227 JobRunSummary& WithStateDetails(StateDetailsT&& value) {
228 SetStateDetails(std::forward<StateDetailsT>(value));
229 return *this;
230 }
232
234
238 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
239 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
240 template <typename ReleaseLabelT = Aws::String>
241 void SetReleaseLabel(ReleaseLabelT&& value) {
242 m_releaseLabelHasBeenSet = true;
243 m_releaseLabel = std::forward<ReleaseLabelT>(value);
244 }
245 template <typename ReleaseLabelT = Aws::String>
246 JobRunSummary& WithReleaseLabel(ReleaseLabelT&& value) {
247 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetType() const { return m_type; }
257 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
258 template <typename TypeT = Aws::String>
259 void SetType(TypeT&& value) {
260 m_typeHasBeenSet = true;
261 m_type = std::forward<TypeT>(value);
262 }
263 template <typename TypeT = Aws::String>
264 JobRunSummary& WithType(TypeT&& value) {
265 SetType(std::forward<TypeT>(value));
266 return *this;
267 }
269
271
274 inline int GetAttempt() const { return m_attempt; }
275 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
276 inline void SetAttempt(int value) {
277 m_attemptHasBeenSet = true;
278 m_attempt = value;
279 }
280 inline JobRunSummary& WithAttempt(int value) {
281 SetAttempt(value);
282 return *this;
283 }
285
287
290 inline const Aws::Utils::DateTime& GetAttemptCreatedAt() const { return m_attemptCreatedAt; }
291 inline bool AttemptCreatedAtHasBeenSet() const { return m_attemptCreatedAtHasBeenSet; }
292 template <typename AttemptCreatedAtT = Aws::Utils::DateTime>
293 void SetAttemptCreatedAt(AttemptCreatedAtT&& value) {
294 m_attemptCreatedAtHasBeenSet = true;
295 m_attemptCreatedAt = std::forward<AttemptCreatedAtT>(value);
296 }
297 template <typename AttemptCreatedAtT = Aws::Utils::DateTime>
298 JobRunSummary& WithAttemptCreatedAt(AttemptCreatedAtT&& value) {
299 SetAttemptCreatedAt(std::forward<AttemptCreatedAtT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Utils::DateTime& GetAttemptUpdatedAt() const { return m_attemptUpdatedAt; }
309 inline bool AttemptUpdatedAtHasBeenSet() const { return m_attemptUpdatedAtHasBeenSet; }
310 template <typename AttemptUpdatedAtT = Aws::Utils::DateTime>
311 void SetAttemptUpdatedAt(AttemptUpdatedAtT&& value) {
312 m_attemptUpdatedAtHasBeenSet = true;
313 m_attemptUpdatedAt = std::forward<AttemptUpdatedAtT>(value);
314 }
315 template <typename AttemptUpdatedAtT = Aws::Utils::DateTime>
316 JobRunSummary& WithAttemptUpdatedAt(AttemptUpdatedAtT&& value) {
317 SetAttemptUpdatedAt(std::forward<AttemptUpdatedAtT>(value));
318 return *this;
319 }
321
323
326 inline const FlexExecution& GetFlexExecution() const { return m_flexExecution; }
327 inline bool FlexExecutionHasBeenSet() const { return m_flexExecutionHasBeenSet; }
328 template <typename FlexExecutionT = FlexExecution>
329 void SetFlexExecution(FlexExecutionT&& value) {
330 m_flexExecutionHasBeenSet = true;
331 m_flexExecution = std::forward<FlexExecutionT>(value);
332 }
333 template <typename FlexExecutionT = FlexExecution>
334 JobRunSummary& WithFlexExecution(FlexExecutionT&& value) {
335 SetFlexExecution(std::forward<FlexExecutionT>(value));
336 return *this;
337 }
339 private:
340 Aws::String m_applicationId;
341
342 Aws::String m_id;
343
344 Aws::String m_name;
345
347
348 Aws::String m_arn;
349
350 Aws::String m_createdBy;
351
352 Aws::Utils::DateTime m_createdAt{};
353
354 Aws::Utils::DateTime m_updatedAt{};
355
356 Aws::String m_executionRole;
357
359
360 Aws::String m_stateDetails;
361
362 Aws::String m_releaseLabel;
363
364 Aws::String m_type;
365
366 int m_attempt{0};
367
368 Aws::Utils::DateTime m_attemptCreatedAt{};
369
370 Aws::Utils::DateTime m_attemptUpdatedAt{};
371
372 FlexExecution m_flexExecution;
373 bool m_applicationIdHasBeenSet = false;
374 bool m_idHasBeenSet = false;
375 bool m_nameHasBeenSet = false;
376 bool m_modeHasBeenSet = false;
377 bool m_arnHasBeenSet = false;
378 bool m_createdByHasBeenSet = false;
379 bool m_createdAtHasBeenSet = false;
380 bool m_updatedAtHasBeenSet = false;
381 bool m_executionRoleHasBeenSet = false;
382 bool m_stateHasBeenSet = false;
383 bool m_stateDetailsHasBeenSet = false;
384 bool m_releaseLabelHasBeenSet = false;
385 bool m_typeHasBeenSet = false;
386 bool m_attemptHasBeenSet = false;
387 bool m_attemptCreatedAtHasBeenSet = false;
388 bool m_attemptUpdatedAtHasBeenSet = false;
389 bool m_flexExecutionHasBeenSet = false;
390};
391
392} // namespace Model
393} // namespace EMRServerless
394} // namespace Aws
JobRunSummary & WithAttempt(int value)
JobRunSummary & WithReleaseLabel(ReleaseLabelT &&value)
const Aws::Utils::DateTime & GetAttemptUpdatedAt() const
const Aws::String & GetStateDetails() const
void SetApplicationId(ApplicationIdT &&value)
JobRunSummary & WithType(TypeT &&value)
const Aws::String & GetReleaseLabel() const
JobRunSummary & WithStateDetails(StateDetailsT &&value)
void SetFlexExecution(FlexExecutionT &&value)
const Aws::String & GetType() const
const Aws::String & GetArn() const
const Aws::String & GetId() const
const Aws::String & GetApplicationId() const
void SetAttemptCreatedAt(AttemptCreatedAtT &&value)
JobRunSummary & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_EMRSERVERLESS_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue)
JobRunSummary & WithName(NameT &&value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
JobRunSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetAttemptCreatedAt() const
const Aws::String & GetName() const
AWS_EMRSERVERLESS_API JobRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRunSummary & WithAttemptUpdatedAt(AttemptUpdatedAtT &&value)
JobRunSummary & WithMode(JobRunMode value)
const Aws::String & GetCreatedBy() const
const Aws::Utils::DateTime & GetUpdatedAt() const
JobRunSummary & WithId(IdT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
const Aws::String & GetExecutionRole() const
JobRunSummary & WithApplicationId(ApplicationIdT &&value)
JobRunSummary & WithAttemptCreatedAt(AttemptCreatedAtT &&value)
JobRunSummary & WithArn(ArnT &&value)
void SetReleaseLabel(ReleaseLabelT &&value)
JobRunSummary & WithExecutionRole(ExecutionRoleT &&value)
JobRunSummary & WithState(JobRunState value)
void SetStateDetails(StateDetailsT &&value)
JobRunSummary & WithUpdatedAt(UpdatedAtT &&value)
JobRunSummary & WithFlexExecution(FlexExecutionT &&value)
const FlexExecution & GetFlexExecution() const
void SetAttemptUpdatedAt(AttemptUpdatedAtT &&value)
AWS_EMRSERVERLESS_API JobRunSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue