AWS SDK for C++  1.9.45
AWS SDK for C++
InstanceFleetStatus.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EMR
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
60  inline const InstanceFleetState& GetState() const{ return m_state; }
61 
78  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 
96  inline void SetState(const InstanceFleetState& value) { m_stateHasBeenSet = true; m_state = value; }
97 
114  inline void SetState(InstanceFleetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
115 
132  inline InstanceFleetStatus& WithState(const InstanceFleetState& value) { SetState(value); return *this;}
133 
150  inline InstanceFleetStatus& WithState(InstanceFleetState&& value) { SetState(std::move(value)); return *this;}
151 
152 
156  inline const InstanceFleetStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
157 
161  inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
162 
166  inline void SetStateChangeReason(const InstanceFleetStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
167 
171  inline void SetStateChangeReason(InstanceFleetStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
172 
176  inline InstanceFleetStatus& WithStateChangeReason(const InstanceFleetStateChangeReason& value) { SetStateChangeReason(value); return *this;}
177 
181  inline InstanceFleetStatus& WithStateChangeReason(InstanceFleetStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
182 
183 
188  inline const InstanceFleetTimeline& GetTimeline() const{ return m_timeline; }
189 
194  inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
195 
200  inline void SetTimeline(const InstanceFleetTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
201 
206  inline void SetTimeline(InstanceFleetTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
207 
212  inline InstanceFleetStatus& WithTimeline(const InstanceFleetTimeline& value) { SetTimeline(value); return *this;}
213 
218  inline InstanceFleetStatus& WithTimeline(InstanceFleetTimeline&& value) { SetTimeline(std::move(value)); return *this;}
219 
220  private:
221 
222  InstanceFleetState m_state;
223  bool m_stateHasBeenSet;
224 
225  InstanceFleetStateChangeReason m_stateChangeReason;
226  bool m_stateChangeReasonHasBeenSet;
227 
228  InstanceFleetTimeline m_timeline;
229  bool m_timelineHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace EMR
234 } // namespace Aws
Aws::EMR::Model::InstanceFleetStatus::WithTimeline
InstanceFleetStatus & WithTimeline(const InstanceFleetTimeline &value)
Definition: InstanceFleetStatus.h:212
Aws::EMR::Model::InstanceFleetStatus::SetState
void SetState(InstanceFleetState &&value)
Definition: InstanceFleetStatus.h:114
Aws::EMR::Model::InstanceFleetStatus::WithStateChangeReason
InstanceFleetStatus & WithStateChangeReason(const InstanceFleetStateChangeReason &value)
Definition: InstanceFleetStatus.h:176
Aws::EMR::Model::InstanceFleetStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
EMR_EXPORTS.h
Aws::EMR::Model::InstanceFleetTimeline
Definition: InstanceFleetTimeline.h:36
Aws::EMR::Model::InstanceFleetStatus
Definition: InstanceFleetStatus.h:36
Aws::EMR::Model::InstanceFleetStatus::StateChangeReasonHasBeenSet
bool StateChangeReasonHasBeenSet() const
Definition: InstanceFleetStatus.h:161
Aws::EMR::Model::InstanceFleetStatus::InstanceFleetStatus
InstanceFleetStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleetStatus::SetState
void SetState(const InstanceFleetState &value)
Definition: InstanceFleetStatus.h:96
Aws::EMR::Model::InstanceFleetStatus::WithTimeline
InstanceFleetStatus & WithTimeline(InstanceFleetTimeline &&value)
Definition: InstanceFleetStatus.h:218
Aws::EMR::Model::InstanceFleetStatus::SetTimeline
void SetTimeline(const InstanceFleetTimeline &value)
Definition: InstanceFleetStatus.h:200
Aws::EMR::Model::InstanceFleetStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: InstanceFleetStatus.h:78
Aws::EMR::Model::InstanceFleetStatus::GetTimeline
const InstanceFleetTimeline & GetTimeline() const
Definition: InstanceFleetStatus.h:188
Aws::EMR::Model::InstanceFleetStatus::SetTimeline
void SetTimeline(InstanceFleetTimeline &&value)
Definition: InstanceFleetStatus.h:206
InstanceFleetState.h
Aws::EMR::Model::InstanceFleetStatus::GetStateChangeReason
const InstanceFleetStateChangeReason & GetStateChangeReason() const
Definition: InstanceFleetStatus.h:156
Aws::EMR::Model::InstanceFleetStatus::InstanceFleetStatus
InstanceFleetStatus()
Aws::EMR::Model::InstanceFleetStatus::TimelineHasBeenSet
bool TimelineHasBeenSet() const
Definition: InstanceFleetStatus.h:194
Aws::EMR::Model::InstanceFleetStatus::operator=
InstanceFleetStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
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::InstanceFleetState
InstanceFleetState
Definition: InstanceFleetState.h:17
Aws::EMR::Model::InstanceFleetStatus::WithState
InstanceFleetStatus & WithState(const InstanceFleetState &value)
Definition: InstanceFleetStatus.h:132
Aws::EMR::Model::InstanceFleetStatus::GetState
const InstanceFleetState & GetState() const
Definition: InstanceFleetStatus.h:60
InstanceFleetStateChangeReason.h
Aws::EMR::Model::InstanceFleetStatus::SetStateChangeReason
void SetStateChangeReason(const InstanceFleetStateChangeReason &value)
Definition: InstanceFleetStatus.h:166
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceFleetStateChangeReason
Definition: InstanceFleetStateChangeReason.h:35
Aws::EMR::Model::InstanceFleetStatus::SetStateChangeReason
void SetStateChangeReason(InstanceFleetStateChangeReason &&value)
Definition: InstanceFleetStatus.h:171
InstanceFleetTimeline.h
Aws::EMR::Model::InstanceFleetStatus::WithStateChangeReason
InstanceFleetStatus & WithStateChangeReason(InstanceFleetStateChangeReason &&value)
Definition: InstanceFleetStatus.h:181
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceFleetStatus::WithState
InstanceFleetStatus & WithState(InstanceFleetState &&value)
Definition: InstanceFleetStatus.h:150