AWS SDK for C++  1.8.96
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:
38  StepStatus();
40  StepStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
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
StepStatus & WithStateChangeReason(StepStateChangeReason &&value)
Definition: StepStatus.h:103
void SetFailureDetails(FailureDetails &&value)
Definition: StepStatus.h:128
StepStatus & WithStateChangeReason(const StepStateChangeReason &value)
Definition: StepStatus.h:98
void SetStateChangeReason(StepStateChangeReason &&value)
Definition: StepStatus.h:93
void SetTimeline(const StepTimeline &value)
Definition: StepStatus.h:156
const FailureDetails & GetFailureDetails() const
Definition: StepStatus.h:110
bool TimelineHasBeenSet() const
Definition: StepStatus.h:151
bool FailureDetailsHasBeenSet() const
Definition: StepStatus.h:116
void SetFailureDetails(const FailureDetails &value)
Definition: StepStatus.h:122
StepStatus & WithState(StepState &&value)
Definition: StepStatus.h:72
StepStatus & WithTimeline(const StepTimeline &value)
Definition: StepStatus.h:166
StepStatus & WithState(const StepState &value)
Definition: StepStatus.h:67
const StepTimeline & GetTimeline() const
Definition: StepStatus.h:146
void SetState(const StepState &value)
Definition: StepStatus.h:57
const StepState & GetState() const
Definition: StepStatus.h:47
void SetStateChangeReason(const StepStateChangeReason &value)
Definition: StepStatus.h:88
void SetTimeline(StepTimeline &&value)
Definition: StepStatus.h:161
StepStatus & WithFailureDetails(const FailureDetails &value)
Definition: StepStatus.h:134
const StepStateChangeReason & GetStateChangeReason() const
Definition: StepStatus.h:78
bool StateHasBeenSet() const
Definition: StepStatus.h:52
void SetState(StepState &&value)
Definition: StepStatus.h:62
StepStatus & WithFailureDetails(FailureDetails &&value)
Definition: StepStatus.h:140
bool StateChangeReasonHasBeenSet() const
Definition: StepStatus.h:83
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
StepStatus & WithTimeline(StepTimeline &&value)
Definition: StepStatus.h:171