AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
JobRun.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/emr-serverless/EMRServerless_EXPORTS.h>
11#include <aws/emr-serverless/model/ConfigurationOverrides.h>
12#include <aws/emr-serverless/model/FlexExecution.h>
13#include <aws/emr-serverless/model/ImageConfiguration.h>
14#include <aws/emr-serverless/model/JobDriver.h>
15#include <aws/emr-serverless/model/JobRunExecutionIamPolicy.h>
16#include <aws/emr-serverless/model/JobRunMode.h>
17#include <aws/emr-serverless/model/JobRunState.h>
18#include <aws/emr-serverless/model/NetworkConfiguration.h>
19#include <aws/emr-serverless/model/ResourceUtilization.h>
20#include <aws/emr-serverless/model/RetryPolicy.h>
21#include <aws/emr-serverless/model/TotalResourceUtilization.h>
22#include <aws/emr-serverless/model/WorkerTypeSpecification.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace EMRServerless {
34namespace Model {
35
43class JobRun {
44 public:
45 AWS_EMRSERVERLESS_API JobRun() = default;
46 AWS_EMRSERVERLESS_API JobRun(Aws::Utils::Json::JsonView jsonValue);
47 AWS_EMRSERVERLESS_API JobRun& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
54 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
55 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
56 template <typename ApplicationIdT = Aws::String>
57 void SetApplicationId(ApplicationIdT&& value) {
58 m_applicationIdHasBeenSet = true;
59 m_applicationId = std::forward<ApplicationIdT>(value);
60 }
61 template <typename ApplicationIdT = Aws::String>
62 JobRun& WithApplicationId(ApplicationIdT&& value) {
63 SetApplicationId(std::forward<ApplicationIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetJobRunId() const { return m_jobRunId; }
73 inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
74 template <typename JobRunIdT = Aws::String>
75 void SetJobRunId(JobRunIdT&& value) {
76 m_jobRunIdHasBeenSet = true;
77 m_jobRunId = std::forward<JobRunIdT>(value);
78 }
79 template <typename JobRunIdT = Aws::String>
80 JobRun& WithJobRunId(JobRunIdT&& value) {
81 SetJobRunId(std::forward<JobRunIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 template <typename NameT = Aws::String>
93 void SetName(NameT&& value) {
94 m_nameHasBeenSet = true;
95 m_name = std::forward<NameT>(value);
96 }
97 template <typename NameT = Aws::String>
98 JobRun& WithName(NameT&& value) {
99 SetName(std::forward<NameT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetArn() const { return m_arn; }
109 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
110 template <typename ArnT = Aws::String>
111 void SetArn(ArnT&& value) {
112 m_arnHasBeenSet = true;
113 m_arn = std::forward<ArnT>(value);
114 }
115 template <typename ArnT = Aws::String>
116 JobRun& WithArn(ArnT&& value) {
117 SetArn(std::forward<ArnT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
127 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
128 template <typename CreatedByT = Aws::String>
129 void SetCreatedBy(CreatedByT&& value) {
130 m_createdByHasBeenSet = true;
131 m_createdBy = std::forward<CreatedByT>(value);
132 }
133 template <typename CreatedByT = Aws::String>
134 JobRun& WithCreatedBy(CreatedByT&& value) {
135 SetCreatedBy(std::forward<CreatedByT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 JobRun& WithCreatedAt(CreatedAtT&& value) {
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
163 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
164 template <typename UpdatedAtT = Aws::Utils::DateTime>
165 void SetUpdatedAt(UpdatedAtT&& value) {
166 m_updatedAtHasBeenSet = true;
167 m_updatedAt = std::forward<UpdatedAtT>(value);
168 }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 JobRun& WithUpdatedAt(UpdatedAtT&& value) {
171 SetUpdatedAt(std::forward<UpdatedAtT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
181 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
182 template <typename ExecutionRoleT = Aws::String>
183 void SetExecutionRole(ExecutionRoleT&& value) {
184 m_executionRoleHasBeenSet = true;
185 m_executionRole = std::forward<ExecutionRoleT>(value);
186 }
187 template <typename ExecutionRoleT = Aws::String>
188 JobRun& WithExecutionRole(ExecutionRoleT&& value) {
189 SetExecutionRole(std::forward<ExecutionRoleT>(value));
190 return *this;
191 }
193
195
196 inline const JobRunExecutionIamPolicy& GetExecutionIamPolicy() const { return m_executionIamPolicy; }
197 inline bool ExecutionIamPolicyHasBeenSet() const { return m_executionIamPolicyHasBeenSet; }
198 template <typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
199 void SetExecutionIamPolicy(ExecutionIamPolicyT&& value) {
200 m_executionIamPolicyHasBeenSet = true;
201 m_executionIamPolicy = std::forward<ExecutionIamPolicyT>(value);
202 }
203 template <typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
204 JobRun& WithExecutionIamPolicy(ExecutionIamPolicyT&& value) {
205 SetExecutionIamPolicy(std::forward<ExecutionIamPolicyT>(value));
206 return *this;
207 }
209
211
214 inline JobRunState GetState() const { return m_state; }
215 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
216 inline void SetState(JobRunState value) {
217 m_stateHasBeenSet = true;
218 m_state = value;
219 }
220 inline JobRun& WithState(JobRunState value) {
221 SetState(value);
222 return *this;
223 }
225
227
230 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
231 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
232 template <typename StateDetailsT = Aws::String>
233 void SetStateDetails(StateDetailsT&& value) {
234 m_stateDetailsHasBeenSet = true;
235 m_stateDetails = std::forward<StateDetailsT>(value);
236 }
237 template <typename StateDetailsT = Aws::String>
238 JobRun& WithStateDetails(StateDetailsT&& value) {
239 SetStateDetails(std::forward<StateDetailsT>(value));
240 return *this;
241 }
243
245
249 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
250 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
251 template <typename ReleaseLabelT = Aws::String>
252 void SetReleaseLabel(ReleaseLabelT&& value) {
253 m_releaseLabelHasBeenSet = true;
254 m_releaseLabel = std::forward<ReleaseLabelT>(value);
255 }
256 template <typename ReleaseLabelT = Aws::String>
257 JobRun& WithReleaseLabel(ReleaseLabelT&& value) {
258 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
259 return *this;
260 }
262
264
268 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
269 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
270 template <typename ConfigurationOverridesT = ConfigurationOverrides>
271 void SetConfigurationOverrides(ConfigurationOverridesT&& value) {
272 m_configurationOverridesHasBeenSet = true;
273 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
274 }
275 template <typename ConfigurationOverridesT = ConfigurationOverrides>
276 JobRun& WithConfigurationOverrides(ConfigurationOverridesT&& value) {
277 SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value));
278 return *this;
279 }
281
283
286 inline const JobDriver& GetJobDriver() const { return m_jobDriver; }
287 inline bool JobDriverHasBeenSet() const { return m_jobDriverHasBeenSet; }
288 template <typename JobDriverT = JobDriver>
289 void SetJobDriver(JobDriverT&& value) {
290 m_jobDriverHasBeenSet = true;
291 m_jobDriver = std::forward<JobDriverT>(value);
292 }
293 template <typename JobDriverT = JobDriver>
294 JobRun& WithJobDriver(JobDriverT&& value) {
295 SetJobDriver(std::forward<JobDriverT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
305 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
306 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
307 void SetTags(TagsT&& value) {
308 m_tagsHasBeenSet = true;
309 m_tags = std::forward<TagsT>(value);
310 }
311 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
312 JobRun& WithTags(TagsT&& value) {
313 SetTags(std::forward<TagsT>(value));
314 return *this;
315 }
316 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
317 JobRun& AddTags(TagsKeyT&& key, TagsValueT&& value) {
318 m_tagsHasBeenSet = true;
319 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
320 return *this;
321 }
323
325
330 inline const TotalResourceUtilization& GetTotalResourceUtilization() const { return m_totalResourceUtilization; }
331 inline bool TotalResourceUtilizationHasBeenSet() const { return m_totalResourceUtilizationHasBeenSet; }
332 template <typename TotalResourceUtilizationT = TotalResourceUtilization>
333 void SetTotalResourceUtilization(TotalResourceUtilizationT&& value) {
334 m_totalResourceUtilizationHasBeenSet = true;
335 m_totalResourceUtilization = std::forward<TotalResourceUtilizationT>(value);
336 }
337 template <typename TotalResourceUtilizationT = TotalResourceUtilization>
338 JobRun& WithTotalResourceUtilization(TotalResourceUtilizationT&& value) {
339 SetTotalResourceUtilization(std::forward<TotalResourceUtilizationT>(value));
340 return *this;
341 }
343
345
346 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
347 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
348 template <typename NetworkConfigurationT = NetworkConfiguration>
349 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
350 m_networkConfigurationHasBeenSet = true;
351 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
352 }
353 template <typename NetworkConfigurationT = NetworkConfiguration>
354 JobRun& WithNetworkConfiguration(NetworkConfigurationT&& value) {
355 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
356 return *this;
357 }
359
361
366 inline int GetTotalExecutionDurationSeconds() const { return m_totalExecutionDurationSeconds; }
367 inline bool TotalExecutionDurationSecondsHasBeenSet() const { return m_totalExecutionDurationSecondsHasBeenSet; }
368 inline void SetTotalExecutionDurationSeconds(int value) {
369 m_totalExecutionDurationSecondsHasBeenSet = true;
370 m_totalExecutionDurationSeconds = value;
371 }
374 return *this;
375 }
377
379
385 inline long long GetExecutionTimeoutMinutes() const { return m_executionTimeoutMinutes; }
386 inline bool ExecutionTimeoutMinutesHasBeenSet() const { return m_executionTimeoutMinutesHasBeenSet; }
387 inline void SetExecutionTimeoutMinutes(long long value) {
388 m_executionTimeoutMinutesHasBeenSet = true;
389 m_executionTimeoutMinutes = value;
390 }
391 inline JobRun& WithExecutionTimeoutMinutes(long long value) {
393 return *this;
394 }
396
398
404 inline const ResourceUtilization& GetBilledResourceUtilization() const { return m_billedResourceUtilization; }
405 inline bool BilledResourceUtilizationHasBeenSet() const { return m_billedResourceUtilizationHasBeenSet; }
406 template <typename BilledResourceUtilizationT = ResourceUtilization>
407 void SetBilledResourceUtilization(BilledResourceUtilizationT&& value) {
408 m_billedResourceUtilizationHasBeenSet = true;
409 m_billedResourceUtilization = std::forward<BilledResourceUtilizationT>(value);
410 }
411 template <typename BilledResourceUtilizationT = ResourceUtilization>
412 JobRun& WithBilledResourceUtilization(BilledResourceUtilizationT&& value) {
413 SetBilledResourceUtilization(std::forward<BilledResourceUtilizationT>(value));
414 return *this;
415 }
417
419
422 inline JobRunMode GetMode() const { return m_mode; }
423 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
424 inline void SetMode(JobRunMode value) {
425 m_modeHasBeenSet = true;
426 m_mode = value;
427 }
428 inline JobRun& WithMode(JobRunMode value) {
429 SetMode(value);
430 return *this;
431 }
433
435
438 inline const RetryPolicy& GetRetryPolicy() const { return m_retryPolicy; }
439 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
440 template <typename RetryPolicyT = RetryPolicy>
441 void SetRetryPolicy(RetryPolicyT&& value) {
442 m_retryPolicyHasBeenSet = true;
443 m_retryPolicy = std::forward<RetryPolicyT>(value);
444 }
445 template <typename RetryPolicyT = RetryPolicy>
446 JobRun& WithRetryPolicy(RetryPolicyT&& value) {
447 SetRetryPolicy(std::forward<RetryPolicyT>(value));
448 return *this;
449 }
451
453
456 inline int GetAttempt() const { return m_attempt; }
457 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
458 inline void SetAttempt(int value) {
459 m_attemptHasBeenSet = true;
460 m_attempt = value;
461 }
462 inline JobRun& WithAttempt(int value) {
463 SetAttempt(value);
464 return *this;
465 }
467
469
472 inline const Aws::Utils::DateTime& GetAttemptCreatedAt() const { return m_attemptCreatedAt; }
473 inline bool AttemptCreatedAtHasBeenSet() const { return m_attemptCreatedAtHasBeenSet; }
474 template <typename AttemptCreatedAtT = Aws::Utils::DateTime>
475 void SetAttemptCreatedAt(AttemptCreatedAtT&& value) {
476 m_attemptCreatedAtHasBeenSet = true;
477 m_attemptCreatedAt = std::forward<AttemptCreatedAtT>(value);
478 }
479 template <typename AttemptCreatedAtT = Aws::Utils::DateTime>
480 JobRun& WithAttemptCreatedAt(AttemptCreatedAtT&& value) {
481 SetAttemptCreatedAt(std::forward<AttemptCreatedAtT>(value));
482 return *this;
483 }
485
487
490 inline const Aws::Utils::DateTime& GetAttemptUpdatedAt() const { return m_attemptUpdatedAt; }
491 inline bool AttemptUpdatedAtHasBeenSet() const { return m_attemptUpdatedAtHasBeenSet; }
492 template <typename AttemptUpdatedAtT = Aws::Utils::DateTime>
493 void SetAttemptUpdatedAt(AttemptUpdatedAtT&& value) {
494 m_attemptUpdatedAtHasBeenSet = true;
495 m_attemptUpdatedAt = std::forward<AttemptUpdatedAtT>(value);
496 }
497 template <typename AttemptUpdatedAtT = Aws::Utils::DateTime>
498 JobRun& WithAttemptUpdatedAt(AttemptUpdatedAtT&& value) {
499 SetAttemptUpdatedAt(std::forward<AttemptUpdatedAtT>(value));
500 return *this;
501 }
503
505
508 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
509 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
510 template <typename StartedAtT = Aws::Utils::DateTime>
511 void SetStartedAt(StartedAtT&& value) {
512 m_startedAtHasBeenSet = true;
513 m_startedAt = std::forward<StartedAtT>(value);
514 }
515 template <typename StartedAtT = Aws::Utils::DateTime>
516 JobRun& WithStartedAt(StartedAtT&& value) {
517 SetStartedAt(std::forward<StartedAtT>(value));
518 return *this;
519 }
521
523
526 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
527 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
528 template <typename EndedAtT = Aws::Utils::DateTime>
529 void SetEndedAt(EndedAtT&& value) {
530 m_endedAtHasBeenSet = true;
531 m_endedAt = std::forward<EndedAtT>(value);
532 }
533 template <typename EndedAtT = Aws::Utils::DateTime>
534 JobRun& WithEndedAt(EndedAtT&& value) {
535 SetEndedAt(std::forward<EndedAtT>(value));
536 return *this;
537 }
539
541
544 inline long long GetQueuedDurationMilliseconds() const { return m_queuedDurationMilliseconds; }
545 inline bool QueuedDurationMillisecondsHasBeenSet() const { return m_queuedDurationMillisecondsHasBeenSet; }
546 inline void SetQueuedDurationMilliseconds(long long value) {
547 m_queuedDurationMillisecondsHasBeenSet = true;
548 m_queuedDurationMilliseconds = value;
549 }
550 inline JobRun& WithQueuedDurationMilliseconds(long long value) {
552 return *this;
553 }
555
557
558 inline const ImageConfiguration& GetImageConfiguration() const { return m_imageConfiguration; }
559 inline bool ImageConfigurationHasBeenSet() const { return m_imageConfigurationHasBeenSet; }
560 template <typename ImageConfigurationT = ImageConfiguration>
561 void SetImageConfiguration(ImageConfigurationT&& value) {
562 m_imageConfigurationHasBeenSet = true;
563 m_imageConfiguration = std::forward<ImageConfigurationT>(value);
564 }
565 template <typename ImageConfigurationT = ImageConfiguration>
566 JobRun& WithImageConfiguration(ImageConfigurationT&& value) {
567 SetImageConfiguration(std::forward<ImageConfigurationT>(value));
568 return *this;
569 }
571
573
578 inline const Aws::Map<Aws::String, WorkerTypeSpecification>& GetWorkerTypeSpecifications() const { return m_workerTypeSpecifications; }
579 inline bool WorkerTypeSpecificationsHasBeenSet() const { return m_workerTypeSpecificationsHasBeenSet; }
580 template <typename WorkerTypeSpecificationsT = Aws::Map<Aws::String, WorkerTypeSpecification>>
581 void SetWorkerTypeSpecifications(WorkerTypeSpecificationsT&& value) {
582 m_workerTypeSpecificationsHasBeenSet = true;
583 m_workerTypeSpecifications = std::forward<WorkerTypeSpecificationsT>(value);
584 }
585 template <typename WorkerTypeSpecificationsT = Aws::Map<Aws::String, WorkerTypeSpecification>>
586 JobRun& WithWorkerTypeSpecifications(WorkerTypeSpecificationsT&& value) {
587 SetWorkerTypeSpecifications(std::forward<WorkerTypeSpecificationsT>(value));
588 return *this;
589 }
590 template <typename WorkerTypeSpecificationsKeyT = Aws::String, typename WorkerTypeSpecificationsValueT = WorkerTypeSpecification>
591 JobRun& AddWorkerTypeSpecifications(WorkerTypeSpecificationsKeyT&& key, WorkerTypeSpecificationsValueT&& value) {
592 m_workerTypeSpecificationsHasBeenSet = true;
593 m_workerTypeSpecifications.emplace(std::forward<WorkerTypeSpecificationsKeyT>(key),
594 std::forward<WorkerTypeSpecificationsValueT>(value));
595 return *this;
596 }
598
600
603 inline const FlexExecution& GetFlexExecution() const { return m_flexExecution; }
604 inline bool FlexExecutionHasBeenSet() const { return m_flexExecutionHasBeenSet; }
605 template <typename FlexExecutionT = FlexExecution>
606 void SetFlexExecution(FlexExecutionT&& value) {
607 m_flexExecutionHasBeenSet = true;
608 m_flexExecution = std::forward<FlexExecutionT>(value);
609 }
610 template <typename FlexExecutionT = FlexExecution>
611 JobRun& WithFlexExecution(FlexExecutionT&& value) {
612 SetFlexExecution(std::forward<FlexExecutionT>(value));
613 return *this;
614 }
616 private:
617 Aws::String m_applicationId;
618
619 Aws::String m_jobRunId;
620
621 Aws::String m_name;
622
623 Aws::String m_arn;
624
625 Aws::String m_createdBy;
626
627 Aws::Utils::DateTime m_createdAt{};
628
629 Aws::Utils::DateTime m_updatedAt{};
630
631 Aws::String m_executionRole;
632
633 JobRunExecutionIamPolicy m_executionIamPolicy;
634
636
637 Aws::String m_stateDetails;
638
639 Aws::String m_releaseLabel;
640
641 ConfigurationOverrides m_configurationOverrides;
642
643 JobDriver m_jobDriver;
644
646
647 TotalResourceUtilization m_totalResourceUtilization;
648
649 NetworkConfiguration m_networkConfiguration;
650
651 int m_totalExecutionDurationSeconds{0};
652
653 long long m_executionTimeoutMinutes{0};
654
655 ResourceUtilization m_billedResourceUtilization;
656
658
659 RetryPolicy m_retryPolicy;
660
661 int m_attempt{0};
662
663 Aws::Utils::DateTime m_attemptCreatedAt{};
664
665 Aws::Utils::DateTime m_attemptUpdatedAt{};
666
667 Aws::Utils::DateTime m_startedAt{};
668
669 Aws::Utils::DateTime m_endedAt{};
670
671 long long m_queuedDurationMilliseconds{0};
672
673 ImageConfiguration m_imageConfiguration;
674
675 Aws::Map<Aws::String, WorkerTypeSpecification> m_workerTypeSpecifications;
676
677 FlexExecution m_flexExecution;
678 bool m_applicationIdHasBeenSet = false;
679 bool m_jobRunIdHasBeenSet = false;
680 bool m_nameHasBeenSet = false;
681 bool m_arnHasBeenSet = false;
682 bool m_createdByHasBeenSet = false;
683 bool m_createdAtHasBeenSet = false;
684 bool m_updatedAtHasBeenSet = false;
685 bool m_executionRoleHasBeenSet = false;
686 bool m_executionIamPolicyHasBeenSet = false;
687 bool m_stateHasBeenSet = false;
688 bool m_stateDetailsHasBeenSet = false;
689 bool m_releaseLabelHasBeenSet = false;
690 bool m_configurationOverridesHasBeenSet = false;
691 bool m_jobDriverHasBeenSet = false;
692 bool m_tagsHasBeenSet = false;
693 bool m_totalResourceUtilizationHasBeenSet = false;
694 bool m_networkConfigurationHasBeenSet = false;
695 bool m_totalExecutionDurationSecondsHasBeenSet = false;
696 bool m_executionTimeoutMinutesHasBeenSet = false;
697 bool m_billedResourceUtilizationHasBeenSet = false;
698 bool m_modeHasBeenSet = false;
699 bool m_retryPolicyHasBeenSet = false;
700 bool m_attemptHasBeenSet = false;
701 bool m_attemptCreatedAtHasBeenSet = false;
702 bool m_attemptUpdatedAtHasBeenSet = false;
703 bool m_startedAtHasBeenSet = false;
704 bool m_endedAtHasBeenSet = false;
705 bool m_queuedDurationMillisecondsHasBeenSet = false;
706 bool m_imageConfigurationHasBeenSet = false;
707 bool m_workerTypeSpecificationsHasBeenSet = false;
708 bool m_flexExecutionHasBeenSet = false;
709};
710
711} // namespace Model
712} // namespace EMRServerless
713} // namespace Aws
JobRun & WithNetworkConfiguration(NetworkConfigurationT &&value)
Definition JobRun.h:354
void SetUpdatedAt(UpdatedAtT &&value)
Definition JobRun.h:165
bool TotalExecutionDurationSecondsHasBeenSet() const
Definition JobRun.h:367
bool ConfigurationOverridesHasBeenSet() const
Definition JobRun.h:269
JobRun & WithRetryPolicy(RetryPolicyT &&value)
Definition JobRun.h:446
const FlexExecution & GetFlexExecution() const
Definition JobRun.h:603
JobRun & WithExecutionRole(ExecutionRoleT &&value)
Definition JobRun.h:188
const Aws::Utils::DateTime & GetAttemptCreatedAt() const
Definition JobRun.h:472
JobRun & WithWorkerTypeSpecifications(WorkerTypeSpecificationsT &&value)
Definition JobRun.h:586
JobRun & WithStartedAt(StartedAtT &&value)
Definition JobRun.h:516
bool BilledResourceUtilizationHasBeenSet() const
Definition JobRun.h:405
JobRun & WithReleaseLabel(ReleaseLabelT &&value)
Definition JobRun.h:257
const ConfigurationOverrides & GetConfigurationOverrides() const
Definition JobRun.h:268
JobRun & WithTotalExecutionDurationSeconds(int value)
Definition JobRun.h:372
bool StateDetailsHasBeenSet() const
Definition JobRun.h:231
JobRun & WithJobDriver(JobDriverT &&value)
Definition JobRun.h:294
bool NetworkConfigurationHasBeenSet() const
Definition JobRun.h:347
void SetCreatedAt(CreatedAtT &&value)
Definition JobRun.h:147
JobRun & WithBilledResourceUtilization(BilledResourceUtilizationT &&value)
Definition JobRun.h:412
void SetRetryPolicy(RetryPolicyT &&value)
Definition JobRun.h:441
JobRun & WithJobRunId(JobRunIdT &&value)
Definition JobRun.h:80
void SetExecutionRole(ExecutionRoleT &&value)
Definition JobRun.h:183
bool WorkerTypeSpecificationsHasBeenSet() const
Definition JobRun.h:579
JobRun & AddWorkerTypeSpecifications(WorkerTypeSpecificationsKeyT &&key, WorkerTypeSpecificationsValueT &&value)
Definition JobRun.h:591
JobRun & WithApplicationId(ApplicationIdT &&value)
Definition JobRun.h:62
bool AttemptUpdatedAtHasBeenSet() const
Definition JobRun.h:491
void SetReleaseLabel(ReleaseLabelT &&value)
Definition JobRun.h:252
const Aws::String & GetReleaseLabel() const
Definition JobRun.h:249
void SetBilledResourceUtilization(BilledResourceUtilizationT &&value)
Definition JobRun.h:407
void SetName(NameT &&value)
Definition JobRun.h:93
long long GetQueuedDurationMilliseconds() const
Definition JobRun.h:544
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkerTypeSpecifications(WorkerTypeSpecificationsT &&value)
Definition JobRun.h:581
const JobDriver & GetJobDriver() const
Definition JobRun.h:286
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition JobRun.h:304
const Aws::String & GetArn() const
Definition JobRun.h:108
AWS_EMRSERVERLESS_API JobRun & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRun & WithName(NameT &&value)
Definition JobRun.h:98
const Aws::String & GetCreatedBy() const
Definition JobRun.h:126
JobRun & WithMode(JobRunMode value)
Definition JobRun.h:428
bool ExecutionTimeoutMinutesHasBeenSet() const
Definition JobRun.h:386
const JobRunExecutionIamPolicy & GetExecutionIamPolicy() const
Definition JobRun.h:196
JobRun & WithState(JobRunState value)
Definition JobRun.h:220
const Aws::Utils::DateTime & GetStartedAt() const
Definition JobRun.h:508
void SetTotalExecutionDurationSeconds(int value)
Definition JobRun.h:368
bool ImageConfigurationHasBeenSet() const
Definition JobRun.h:559
JobRunState GetState() const
Definition JobRun.h:214
const Aws::Utils::DateTime & GetAttemptUpdatedAt() const
Definition JobRun.h:490
const ResourceUtilization & GetBilledResourceUtilization() const
Definition JobRun.h:404
void SetEndedAt(EndedAtT &&value)
Definition JobRun.h:529
void SetArn(ArnT &&value)
Definition JobRun.h:111
JobRun & WithExecutionIamPolicy(ExecutionIamPolicyT &&value)
Definition JobRun.h:204
JobRun & WithTags(TagsT &&value)
Definition JobRun.h:312
bool TotalResourceUtilizationHasBeenSet() const
Definition JobRun.h:331
AWS_EMRSERVERLESS_API JobRun(Aws::Utils::Json::JsonView jsonValue)
void SetTotalResourceUtilization(TotalResourceUtilizationT &&value)
Definition JobRun.h:333
const ImageConfiguration & GetImageConfiguration() const
Definition JobRun.h:558
bool FlexExecutionHasBeenSet() const
Definition JobRun.h:604
void SetImageConfiguration(ImageConfigurationT &&value)
Definition JobRun.h:561
JobRun & WithExecutionTimeoutMinutes(long long value)
Definition JobRun.h:391
void SetExecutionIamPolicy(ExecutionIamPolicyT &&value)
Definition JobRun.h:199
void SetExecutionTimeoutMinutes(long long value)
Definition JobRun.h:387
bool ExecutionIamPolicyHasBeenSet() const
Definition JobRun.h:197
const Aws::Map< Aws::String, WorkerTypeSpecification > & GetWorkerTypeSpecifications() const
Definition JobRun.h:578
void SetFlexExecution(FlexExecutionT &&value)
Definition JobRun.h:606
void SetJobRunId(JobRunIdT &&value)
Definition JobRun.h:75
JobRun & WithAttemptCreatedAt(AttemptCreatedAtT &&value)
Definition JobRun.h:480
bool AttemptCreatedAtHasBeenSet() const
Definition JobRun.h:473
JobRun & WithArn(ArnT &&value)
Definition JobRun.h:116
void SetCreatedBy(CreatedByT &&value)
Definition JobRun.h:129
long long GetExecutionTimeoutMinutes() const
Definition JobRun.h:385
const Aws::Utils::DateTime & GetEndedAt() const
Definition JobRun.h:526
JobRunMode GetMode() const
Definition JobRun.h:422
bool QueuedDurationMillisecondsHasBeenSet() const
Definition JobRun.h:545
const Aws::String & GetApplicationId() const
Definition JobRun.h:54
void SetApplicationId(ApplicationIdT &&value)
Definition JobRun.h:57
JobRun & WithTotalResourceUtilization(TotalResourceUtilizationT &&value)
Definition JobRun.h:338
void SetJobDriver(JobDriverT &&value)
Definition JobRun.h:289
JobRun & WithAttempt(int value)
Definition JobRun.h:462
bool ApplicationIdHasBeenSet() const
Definition JobRun.h:55
JobRun & WithEndedAt(EndedAtT &&value)
Definition JobRun.h:534
bool ReleaseLabelHasBeenSet() const
Definition JobRun.h:250
void SetMode(JobRunMode value)
Definition JobRun.h:424
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
Definition JobRun.h:271
void SetStartedAt(StartedAtT &&value)
Definition JobRun.h:511
JobRun & WithQueuedDurationMilliseconds(long long value)
Definition JobRun.h:550
JobRun & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition JobRun.h:317
JobRun & WithImageConfiguration(ImageConfigurationT &&value)
Definition JobRun.h:566
JobRun & WithCreatedBy(CreatedByT &&value)
Definition JobRun.h:134
JobRun & WithFlexExecution(FlexExecutionT &&value)
Definition JobRun.h:611
void SetAttemptUpdatedAt(AttemptUpdatedAtT &&value)
Definition JobRun.h:493
void SetNetworkConfiguration(NetworkConfigurationT &&value)
Definition JobRun.h:349
void SetStateDetails(StateDetailsT &&value)
Definition JobRun.h:233
AWS_EMRSERVERLESS_API JobRun()=default
const Aws::String & GetStateDetails() const
Definition JobRun.h:230
const Aws::String & GetExecutionRole() const
Definition JobRun.h:180
const NetworkConfiguration & GetNetworkConfiguration() const
Definition JobRun.h:346
JobRun & WithConfigurationOverrides(ConfigurationOverridesT &&value)
Definition JobRun.h:276
const Aws::String & GetJobRunId() const
Definition JobRun.h:72
JobRun & WithAttemptUpdatedAt(AttemptUpdatedAtT &&value)
Definition JobRun.h:498
const TotalResourceUtilization & GetTotalResourceUtilization() const
Definition JobRun.h:330
bool ExecutionRoleHasBeenSet() const
Definition JobRun.h:181
JobRun & WithStateDetails(StateDetailsT &&value)
Definition JobRun.h:238
JobRun & WithCreatedAt(CreatedAtT &&value)
Definition JobRun.h:152
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobRun.h:144
void SetQueuedDurationMilliseconds(long long value)
Definition JobRun.h:546
const RetryPolicy & GetRetryPolicy() const
Definition JobRun.h:438
void SetState(JobRunState value)
Definition JobRun.h:216
const Aws::String & GetName() const
Definition JobRun.h:90
void SetAttemptCreatedAt(AttemptCreatedAtT &&value)
Definition JobRun.h:475
JobRun & WithUpdatedAt(UpdatedAtT &&value)
Definition JobRun.h:170
int GetTotalExecutionDurationSeconds() const
Definition JobRun.h:366
void SetTags(TagsT &&value)
Definition JobRun.h:307
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition JobRun.h:162
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
Aws::Utils::Json::JsonValue JsonValue