AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceFleetStatus.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/InstanceFleetState.h>
9#include <aws/elasticmapreduce/model/InstanceFleetStateChangeReason.h>
10#include <aws/elasticmapreduce/model/InstanceFleetTimeline.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
36 {
37 public:
38 AWS_EMR_API InstanceFleetStatus();
42
43
45
62 inline const InstanceFleetState& GetState() const{ return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(const InstanceFleetState& value) { m_stateHasBeenSet = true; m_state = value; }
65 inline void SetState(InstanceFleetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
66 inline InstanceFleetStatus& WithState(const InstanceFleetState& value) { SetState(value); return *this;}
67 inline InstanceFleetStatus& WithState(InstanceFleetState&& value) { SetState(std::move(value)); return *this;}
69
71
74 inline const InstanceFleetStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
75 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
76 inline void SetStateChangeReason(const InstanceFleetStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
77 inline void SetStateChangeReason(InstanceFleetStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
81
83
87 inline const InstanceFleetTimeline& GetTimeline() const{ return m_timeline; }
88 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
89 inline void SetTimeline(const InstanceFleetTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
90 inline void SetTimeline(InstanceFleetTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
91 inline InstanceFleetStatus& WithTimeline(const InstanceFleetTimeline& value) { SetTimeline(value); return *this;}
92 inline InstanceFleetStatus& WithTimeline(InstanceFleetTimeline&& value) { SetTimeline(std::move(value)); return *this;}
94 private:
95
96 InstanceFleetState m_state;
97 bool m_stateHasBeenSet = false;
98
99 InstanceFleetStateChangeReason m_stateChangeReason;
100 bool m_stateChangeReasonHasBeenSet = false;
101
102 InstanceFleetTimeline m_timeline;
103 bool m_timelineHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EMR
108} // namespace Aws
void SetTimeline(const InstanceFleetTimeline &value)
void SetState(InstanceFleetState &&value)
InstanceFleetStatus & WithTimeline(const InstanceFleetTimeline &value)
InstanceFleetStatus & WithState(const InstanceFleetState &value)
AWS_EMR_API InstanceFleetStatus(Aws::Utils::Json::JsonView jsonValue)
InstanceFleetStatus & WithTimeline(InstanceFleetTimeline &&value)
void SetStateChangeReason(const InstanceFleetStateChangeReason &value)
const InstanceFleetStateChangeReason & GetStateChangeReason() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStateChangeReason(InstanceFleetStateChangeReason &&value)
InstanceFleetStatus & WithStateChangeReason(const InstanceFleetStateChangeReason &value)
InstanceFleetStatus & WithState(InstanceFleetState &&value)
void SetState(const InstanceFleetState &value)
const InstanceFleetTimeline & GetTimeline() const
AWS_EMR_API InstanceFleetStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimeline(InstanceFleetTimeline &&value)
InstanceFleetStatus & WithStateChangeReason(InstanceFleetStateChangeReason &&value)
const InstanceFleetState & GetState() const
Aws::Utils::Json::JsonValue JsonValue