AWS SDK for C++  1.9.67
AWS SDK for C++
InstanceGroupStatus.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 
34  {
35  public:
40 
41 
45  inline const InstanceGroupState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const InstanceGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(InstanceGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline InstanceGroupStatus& WithState(const InstanceGroupState& value) { SetState(value); return *this;}
66 
70  inline InstanceGroupStatus& WithState(InstanceGroupState&& value) { SetState(std::move(value)); return *this;}
71 
72 
76  inline const InstanceGroupStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
77 
81  inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
82 
86  inline void SetStateChangeReason(const InstanceGroupStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
87 
91  inline void SetStateChangeReason(InstanceGroupStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
92 
96  inline InstanceGroupStatus& WithStateChangeReason(const InstanceGroupStateChangeReason& value) { SetStateChangeReason(value); return *this;}
97 
101  inline InstanceGroupStatus& WithStateChangeReason(InstanceGroupStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
102 
103 
107  inline const InstanceGroupTimeline& GetTimeline() const{ return m_timeline; }
108 
112  inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
113 
117  inline void SetTimeline(const InstanceGroupTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
118 
122  inline void SetTimeline(InstanceGroupTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
123 
127  inline InstanceGroupStatus& WithTimeline(const InstanceGroupTimeline& value) { SetTimeline(value); return *this;}
128 
132  inline InstanceGroupStatus& WithTimeline(InstanceGroupTimeline&& value) { SetTimeline(std::move(value)); return *this;}
133 
134  private:
135 
136  InstanceGroupState m_state;
137  bool m_stateHasBeenSet;
138 
139  InstanceGroupStateChangeReason m_stateChangeReason;
140  bool m_stateChangeReasonHasBeenSet;
141 
142  InstanceGroupTimeline m_timeline;
143  bool m_timelineHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace EMR
148 } // namespace Aws
Aws::EMR::Model::InstanceGroupState
InstanceGroupState
Definition: InstanceGroupState.h:17
Aws::EMR::Model::InstanceGroupStatus::StateChangeReasonHasBeenSet
bool StateChangeReasonHasBeenSet() const
Definition: InstanceGroupStatus.h:81
Aws::EMR::Model::InstanceGroupStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: InstanceGroupStatus.h:50
Aws::EMR::Model::InstanceGroupStatus::GetTimeline
const InstanceGroupTimeline & GetTimeline() const
Definition: InstanceGroupStatus.h:107
EMR_EXPORTS.h
Aws::EMR::Model::InstanceGroupTimeline
Definition: InstanceGroupTimeline.h:32
Aws::EMR::Model::InstanceGroupStatus::GetState
const InstanceGroupState & GetState() const
Definition: InstanceGroupStatus.h:45
InstanceGroupTimeline.h
Aws::EMR::Model::InstanceGroupStatus::SetTimeline
void SetTimeline(InstanceGroupTimeline &&value)
Definition: InstanceGroupStatus.h:122
Aws::EMR::Model::InstanceGroupStatus::InstanceGroupStatus
InstanceGroupStatus()
InstanceGroupStateChangeReason.h
Aws::EMR::Model::InstanceGroupStatus::WithState
InstanceGroupStatus & WithState(InstanceGroupState &&value)
Definition: InstanceGroupStatus.h:70
Aws::EMR::Model::InstanceGroupStatus::WithTimeline
InstanceGroupStatus & WithTimeline(const InstanceGroupTimeline &value)
Definition: InstanceGroupStatus.h:127
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::InstanceGroupStatus::WithTimeline
InstanceGroupStatus & WithTimeline(InstanceGroupTimeline &&value)
Definition: InstanceGroupStatus.h:132
Aws::EMR::Model::InstanceGroupStatus::InstanceGroupStatus
InstanceGroupStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceGroupStatus::WithStateChangeReason
InstanceGroupStatus & WithStateChangeReason(InstanceGroupStateChangeReason &&value)
Definition: InstanceGroupStatus.h:101
Aws::EMR::Model::InstanceGroupStatus::SetStateChangeReason
void SetStateChangeReason(const InstanceGroupStateChangeReason &value)
Definition: InstanceGroupStatus.h:86
InstanceGroupState.h
Aws::EMR::Model::InstanceGroupStatus::TimelineHasBeenSet
bool TimelineHasBeenSet() const
Definition: InstanceGroupStatus.h:112
Aws::EMR::Model::InstanceGroupStatus
Definition: InstanceGroupStatus.h:34
Aws::EMR::Model::InstanceGroupStatus::operator=
InstanceGroupStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceGroupStatus::SetTimeline
void SetTimeline(const InstanceGroupTimeline &value)
Definition: InstanceGroupStatus.h:117
Aws::EMR::Model::InstanceGroupStatus::WithStateChangeReason
InstanceGroupStatus & WithStateChangeReason(const InstanceGroupStateChangeReason &value)
Definition: InstanceGroupStatus.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceGroupStatus::SetStateChangeReason
void SetStateChangeReason(InstanceGroupStateChangeReason &&value)
Definition: InstanceGroupStatus.h:91
Aws::EMR::Model::InstanceGroupStatus::GetStateChangeReason
const InstanceGroupStateChangeReason & GetStateChangeReason() const
Definition: InstanceGroupStatus.h:76
Aws::EMR::Model::InstanceGroupStateChangeReason
Definition: InstanceGroupStateChangeReason.h:34
Aws::EMR::Model::InstanceGroupStatus::SetState
void SetState(const InstanceGroupState &value)
Definition: InstanceGroupStatus.h:55
Aws::EMR::Model::InstanceGroupStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceGroupStatus::SetState
void SetState(InstanceGroupState &&value)
Definition: InstanceGroupStatus.h:60
Aws::EMR::Model::InstanceGroupStatus::WithState
InstanceGroupStatus & WithState(const InstanceGroupState &value)
Definition: InstanceGroupStatus.h:65