AWS SDK for C++  1.9.20
AWS SDK for C++
StepStatus.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace EMR
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const StepState& GetState() const{ return m_state; }
48 
52  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
53 
57  inline void SetState(const StepState& value) { m_stateHasBeenSet = true; m_state = value; }
58 
62  inline void SetState(StepState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
63 
67  inline StepStatus& WithState(const StepState& value) { SetState(value); return *this;}
68 
72  inline StepStatus& WithState(StepState&& value) { SetState(std::move(value)); return *this;}
73 
74 
78  inline const StepStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
79 
83  inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
84 
88  inline void SetStateChangeReason(const StepStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
89 
93  inline void SetStateChangeReason(StepStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
94 
98  inline StepStatus& WithStateChangeReason(const StepStateChangeReason& value) { SetStateChangeReason(value); return *this;}
99 
103  inline StepStatus& WithStateChangeReason(StepStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
104 
105 
110  inline const FailureDetails& GetFailureDetails() const{ return m_failureDetails; }
111 
116  inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
117 
122  inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
123 
128  inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
129 
134  inline StepStatus& WithFailureDetails(const FailureDetails& value) { SetFailureDetails(value); return *this;}
135 
140  inline StepStatus& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(std::move(value)); return *this;}
141 
142 
146  inline const StepTimeline& GetTimeline() const{ return m_timeline; }
147 
151  inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
152 
156  inline void SetTimeline(const StepTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
157 
161  inline void SetTimeline(StepTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
162 
166  inline StepStatus& WithTimeline(const StepTimeline& value) { SetTimeline(value); return *this;}
167 
171  inline StepStatus& WithTimeline(StepTimeline&& value) { SetTimeline(std::move(value)); return *this;}
172 
173  private:
174 
175  StepState m_state;
176  bool m_stateHasBeenSet;
177 
178  StepStateChangeReason m_stateChangeReason;
179  bool m_stateChangeReasonHasBeenSet;
180 
181  FailureDetails m_failureDetails;
182  bool m_failureDetailsHasBeenSet;
183 
184  StepTimeline m_timeline;
185  bool m_timelineHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace EMR
190 } // namespace Aws
Aws::EMR::Model::StepStatus::SetFailureDetails
void SetFailureDetails(const FailureDetails &value)
Definition: StepStatus.h:122
Aws::EMR::Model::StepStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::StepState
StepState
Definition: StepState.h:17
Aws::EMR::Model::StepStatus::WithFailureDetails
StepStatus & WithFailureDetails(const FailureDetails &value)
Definition: StepStatus.h:134
Aws::EMR::Model::StepStatus::GetStateChangeReason
const StepStateChangeReason & GetStateChangeReason() const
Definition: StepStatus.h:78
Aws::EMR::Model::StepStatus::SetState
void SetState(const StepState &value)
Definition: StepStatus.h:57
EMR_EXPORTS.h
Aws::EMR::Model::StepStatus::WithState
StepStatus & WithState(const StepState &value)
Definition: StepStatus.h:67
Aws::EMR::Model::StepStatus::WithFailureDetails
StepStatus & WithFailureDetails(FailureDetails &&value)
Definition: StepStatus.h:140
Aws::EMR::Model::StepStatus
Definition: StepStatus.h:36
Aws::EMR::Model::StepStatus::SetState
void SetState(StepState &&value)
Definition: StepStatus.h:62
StepTimeline.h
Aws::EMR::Model::StepStatus::StateChangeReasonHasBeenSet
bool StateChangeReasonHasBeenSet() const
Definition: StepStatus.h:83
Aws::EMR::Model::StepStatus::SetFailureDetails
void SetFailureDetails(FailureDetails &&value)
Definition: StepStatus.h:128
Aws::EMR::Model::StepTimeline
Definition: StepTimeline.h:32
Aws::EMR::Model::StepStatus::GetState
const StepState & GetState() const
Definition: StepStatus.h:47
Aws::EMR::Model::StepStatus::StepStatus
StepStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepStatus::operator=
StepStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::StepStatus::WithStateChangeReason
StepStatus & WithStateChangeReason(StepStateChangeReason &&value)
Definition: StepStatus.h:103
Aws::EMR::Model::StepStatus::SetStateChangeReason
void SetStateChangeReason(StepStateChangeReason &&value)
Definition: StepStatus.h:93
Aws::EMR::Model::StepStatus::SetStateChangeReason
void SetStateChangeReason(const StepStateChangeReason &value)
Definition: StepStatus.h:88
Aws::EMR::Model::FailureDetails
Definition: FailureDetails.h:33
Aws::EMR::Model::StepStatus::StepStatus
StepStatus()
Aws::EMR::Model::StepStateChangeReason
Definition: StepStateChangeReason.h:33
Aws::EMR::Model::StepStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: StepStatus.h:52
Aws::EMR::Model::StepStatus::SetTimeline
void SetTimeline(const StepTimeline &value)
Definition: StepStatus.h:156
Aws::EMR::Model::StepStatus::WithTimeline
StepStatus & WithTimeline(StepTimeline &&value)
Definition: StepStatus.h:171
Aws::EMR::Model::StepStatus::WithState
StepStatus & WithState(StepState &&value)
Definition: StepStatus.h:72
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::StepStatus::FailureDetailsHasBeenSet
bool FailureDetailsHasBeenSet() const
Definition: StepStatus.h:116
FailureDetails.h
Aws::EMR::Model::StepStatus::WithTimeline
StepStatus & WithTimeline(const StepTimeline &value)
Definition: StepStatus.h:166
Aws::EMR::Model::StepStatus::GetFailureDetails
const FailureDetails & GetFailureDetails() const
Definition: StepStatus.h:110
Aws::EMR::Model::StepStatus::WithStateChangeReason
StepStatus & WithStateChangeReason(const StepStateChangeReason &value)
Definition: StepStatus.h:98
StepState.h
Aws
Definition: AccessManagementClient.h:15
StepStateChangeReason.h
Aws::EMR::Model::StepStatus::GetTimeline
const StepTimeline & GetTimeline() const
Definition: StepStatus.h:146
Aws::EMR::Model::StepStatus::SetTimeline
void SetTimeline(StepTimeline &&value)
Definition: StepStatus.h:161
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::StepStatus::TimelineHasBeenSet
bool TimelineHasBeenSet() const
Definition: StepStatus.h:151