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