AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceGroupStatus.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/InstanceGroupState.h>
9#include <aws/elasticmapreduce/model/InstanceGroupStateChangeReason.h>
10#include <aws/elasticmapreduce/model/InstanceGroupTimeline.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EMR_API InstanceGroupStatus();
40
41
43
46 inline const InstanceGroupState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const InstanceGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(InstanceGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline InstanceGroupStatus& WithState(const InstanceGroupState& value) { SetState(value); return *this;}
51 inline InstanceGroupStatus& WithState(InstanceGroupState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const InstanceGroupStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
59 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
60 inline void SetStateChangeReason(const InstanceGroupStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
61 inline void SetStateChangeReason(InstanceGroupStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
65
67
70 inline const InstanceGroupTimeline& GetTimeline() const{ return m_timeline; }
71 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
72 inline void SetTimeline(const InstanceGroupTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
73 inline void SetTimeline(InstanceGroupTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
74 inline InstanceGroupStatus& WithTimeline(const InstanceGroupTimeline& value) { SetTimeline(value); return *this;}
75 inline InstanceGroupStatus& WithTimeline(InstanceGroupTimeline&& value) { SetTimeline(std::move(value)); return *this;}
77 private:
78
79 InstanceGroupState m_state;
80 bool m_stateHasBeenSet = false;
81
82 InstanceGroupStateChangeReason m_stateChangeReason;
83 bool m_stateChangeReasonHasBeenSet = false;
84
85 InstanceGroupTimeline m_timeline;
86 bool m_timelineHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace EMR
91} // namespace Aws
const InstanceGroupTimeline & GetTimeline() const
InstanceGroupStatus & WithStateChangeReason(const InstanceGroupStateChangeReason &value)
void SetTimeline(const InstanceGroupTimeline &value)
InstanceGroupStatus & WithState(const InstanceGroupState &value)
AWS_EMR_API InstanceGroupStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceGroupStatus & WithStateChangeReason(InstanceGroupStateChangeReason &&value)
InstanceGroupStatus & WithTimeline(const InstanceGroupTimeline &value)
void SetTimeline(InstanceGroupTimeline &&value)
InstanceGroupStatus & WithTimeline(InstanceGroupTimeline &&value)
const InstanceGroupStateChangeReason & GetStateChangeReason() const
void SetState(const InstanceGroupState &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(InstanceGroupState &&value)
InstanceGroupStatus & WithState(InstanceGroupState &&value)
AWS_EMR_API InstanceGroupStatus(Aws::Utils::Json::JsonView jsonValue)
const InstanceGroupState & GetState() const
void SetStateChangeReason(const InstanceGroupStateChangeReason &value)
void SetStateChangeReason(InstanceGroupStateChangeReason &&value)
Aws::Utils::Json::JsonValue JsonValue