AWS SDK for C++  1.9.153
AWS SDK for C++
ClusterStatus.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 ClusterState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const ClusterState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(ClusterState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline ClusterStatus& WithState(const ClusterState& value) { SetState(value); return *this;}
66 
70  inline ClusterStatus& WithState(ClusterState&& value) { SetState(std::move(value)); return *this;}
71 
72 
76  inline const ClusterStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
77 
81  inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
82 
86  inline void SetStateChangeReason(const ClusterStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
87 
91  inline void SetStateChangeReason(ClusterStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
92 
96  inline ClusterStatus& WithStateChangeReason(const ClusterStateChangeReason& value) { SetStateChangeReason(value); return *this;}
97 
101  inline ClusterStatus& WithStateChangeReason(ClusterStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
102 
103 
108  inline const ClusterTimeline& GetTimeline() const{ return m_timeline; }
109 
114  inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
115 
120  inline void SetTimeline(const ClusterTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
121 
126  inline void SetTimeline(ClusterTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
127 
132  inline ClusterStatus& WithTimeline(const ClusterTimeline& value) { SetTimeline(value); return *this;}
133 
138  inline ClusterStatus& WithTimeline(ClusterTimeline&& value) { SetTimeline(std::move(value)); return *this;}
139 
140  private:
141 
142  ClusterState m_state;
143  bool m_stateHasBeenSet;
144 
145  ClusterStateChangeReason m_stateChangeReason;
146  bool m_stateChangeReasonHasBeenSet;
147 
148  ClusterTimeline m_timeline;
149  bool m_timelineHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace EMR
154 } // namespace Aws
Aws::EMR::Model::ClusterStatus::GetStateChangeReason
const ClusterStateChangeReason & GetStateChangeReason() const
Definition: ClusterStatus.h:76
Aws::EMR::Model::ClusterStatus::SetState
void SetState(const ClusterState &value)
Definition: ClusterStatus.h:55
Aws::EMR::Model::ClusterStatus::TimelineHasBeenSet
bool TimelineHasBeenSet() const
Definition: ClusterStatus.h:114
ClusterState.h
Aws::EMR::Model::ClusterStatus::SetState
void SetState(ClusterState &&value)
Definition: ClusterStatus.h:60
EMR_EXPORTS.h
Aws::EMR::Model::ClusterStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ClusterStatus.h:50
Aws::EMR::Model::ClusterStatus::StateChangeReasonHasBeenSet
bool StateChangeReasonHasBeenSet() const
Definition: ClusterStatus.h:81
Aws::EMR::Model::ClusterStatus::SetStateChangeReason
void SetStateChangeReason(ClusterStateChangeReason &&value)
Definition: ClusterStatus.h:91
Aws::EMR::Model::ClusterStatus::WithStateChangeReason
ClusterStatus & WithStateChangeReason(const ClusterStateChangeReason &value)
Definition: ClusterStatus.h:96
Aws::EMR::Model::ClusterTimeline
Definition: ClusterTimeline.h:33
Aws::EMR::Model::ClusterStatus::GetState
const ClusterState & GetState() const
Definition: ClusterStatus.h:45
Aws::EMR::Model::ClusterStatus::SetTimeline
void SetTimeline(ClusterTimeline &&value)
Definition: ClusterStatus.h:126
Aws::EMR::Model::ClusterStatus::ClusterStatus
ClusterStatus()
Aws::EMR::Model::ClusterStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ClusterStatus::WithStateChangeReason
ClusterStatus & WithStateChangeReason(ClusterStateChangeReason &&value)
Definition: ClusterStatus.h:101
Aws::EMR::Model::ClusterState
ClusterState
Definition: ClusterState.h:17
Aws::EMR::Model::ClusterStatus::SetTimeline
void SetTimeline(const ClusterTimeline &value)
Definition: ClusterStatus.h:120
Aws::EMR::Model::ClusterStatus::ClusterStatus
ClusterStatus(Aws::Utils::Json::JsonView jsonValue)
ClusterStateChangeReason.h
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::EMR::Model::ClusterStatus::WithTimeline
ClusterStatus & WithTimeline(const ClusterTimeline &value)
Definition: ClusterStatus.h:132
Aws::EMR::Model::ClusterStatus::WithTimeline
ClusterStatus & WithTimeline(ClusterTimeline &&value)
Definition: ClusterStatus.h:138
Aws::EMR::Model::ClusterStateChangeReason
Definition: ClusterStateChangeReason.h:34
Aws::EMR::Model::ClusterStatus::operator=
ClusterStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ClusterStatus
Definition: ClusterStatus.h:34
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ClusterStatus::SetStateChangeReason
void SetStateChangeReason(const ClusterStateChangeReason &value)
Definition: ClusterStatus.h:86
ClusterTimeline.h
Aws::EMR::Model::ClusterStatus::WithState
ClusterStatus & WithState(ClusterState &&value)
Definition: ClusterStatus.h:70
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ClusterStatus::GetTimeline
const ClusterTimeline & GetTimeline() const
Definition: ClusterStatus.h:108
Aws::EMR::Model::ClusterStatus::WithState
ClusterStatus & WithState(const ClusterState &value)
Definition: ClusterStatus.h:65