AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StepStatus.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/StepState.h>
9#include <aws/elasticmapreduce/model/StepStateChangeReason.h>
10#include <aws/elasticmapreduce/model/FailureDetails.h>
11#include <aws/elasticmapreduce/model/StepTimeline.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMR
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EMR_API StepStatus();
39 AWS_EMR_API StepStatus(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const StepState& GetState() const{ return m_state; }
49 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
50 inline void SetState(const StepState& value) { m_stateHasBeenSet = true; m_state = value; }
51 inline void SetState(StepState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
52 inline StepStatus& WithState(const StepState& value) { SetState(value); return *this;}
53 inline StepStatus& WithState(StepState&& value) { SetState(std::move(value)); return *this;}
55
57
60 inline const StepStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
61 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
62 inline void SetStateChangeReason(const StepStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
63 inline void SetStateChangeReason(StepStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
64 inline StepStatus& WithStateChangeReason(const StepStateChangeReason& value) { SetStateChangeReason(value); return *this;}
65 inline StepStatus& WithStateChangeReason(StepStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
67
69
73 inline const FailureDetails& GetFailureDetails() const{ return m_failureDetails; }
74 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
75 inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
76 inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
77 inline StepStatus& WithFailureDetails(const FailureDetails& value) { SetFailureDetails(value); return *this;}
78 inline StepStatus& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(std::move(value)); return *this;}
80
82
85 inline const StepTimeline& GetTimeline() const{ return m_timeline; }
86 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
87 inline void SetTimeline(const StepTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
88 inline void SetTimeline(StepTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
89 inline StepStatus& WithTimeline(const StepTimeline& value) { SetTimeline(value); return *this;}
90 inline StepStatus& WithTimeline(StepTimeline&& value) { SetTimeline(std::move(value)); return *this;}
92 private:
93
94 StepState m_state;
95 bool m_stateHasBeenSet = false;
96
97 StepStateChangeReason m_stateChangeReason;
98 bool m_stateChangeReasonHasBeenSet = false;
99
100 FailureDetails m_failureDetails;
101 bool m_failureDetailsHasBeenSet = false;
102
103 StepTimeline m_timeline;
104 bool m_timelineHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EMR
109} // namespace Aws
void SetStateChangeReason(StepStateChangeReason &&value)
Definition StepStatus.h:63
bool FailureDetailsHasBeenSet() const
Definition StepStatus.h:74
void SetFailureDetails(FailureDetails &&value)
Definition StepStatus.h:76
const StepStateChangeReason & GetStateChangeReason() const
Definition StepStatus.h:60
StepStatus & WithState(StepState &&value)
Definition StepStatus.h:53
StepStatus & WithStateChangeReason(StepStateChangeReason &&value)
Definition StepStatus.h:65
const FailureDetails & GetFailureDetails() const
Definition StepStatus.h:73
const StepState & GetState() const
Definition StepStatus.h:48
bool StateChangeReasonHasBeenSet() const
Definition StepStatus.h:61
void SetState(const StepState &value)
Definition StepStatus.h:50
void SetState(StepState &&value)
Definition StepStatus.h:51
void SetFailureDetails(const FailureDetails &value)
Definition StepStatus.h:75
StepStatus & WithTimeline(const StepTimeline &value)
Definition StepStatus.h:89
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeline(const StepTimeline &value)
Definition StepStatus.h:87
StepStatus & WithTimeline(StepTimeline &&value)
Definition StepStatus.h:90
StepStatus & WithState(const StepState &value)
Definition StepStatus.h:52
void SetStateChangeReason(const StepStateChangeReason &value)
Definition StepStatus.h:62
void SetTimeline(StepTimeline &&value)
Definition StepStatus.h:88
StepStatus & WithFailureDetails(FailureDetails &&value)
Definition StepStatus.h:78
StepStatus & WithFailureDetails(const FailureDetails &value)
Definition StepStatus.h:77
bool TimelineHasBeenSet() const
Definition StepStatus.h:86
StepStatus & WithStateChangeReason(const StepStateChangeReason &value)
Definition StepStatus.h:64
const StepTimeline & GetTimeline() const
Definition StepStatus.h:85
AWS_EMR_API StepStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API StepStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue