AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceStatus.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/InstanceState.h>
9#include <aws/elasticmapreduce/model/InstanceStateChangeReason.h>
10#include <aws/elasticmapreduce/model/InstanceTimeline.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 InstanceStatus();
40
41
43
46 inline const InstanceState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline InstanceStatus& WithState(const InstanceState& value) { SetState(value); return *this;}
51 inline InstanceStatus& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const InstanceStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
59 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
60 inline void SetStateChangeReason(const InstanceStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
61 inline void SetStateChangeReason(InstanceStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
63 inline InstanceStatus& WithStateChangeReason(InstanceStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
65
67
70 inline const InstanceTimeline& GetTimeline() const{ return m_timeline; }
71 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
72 inline void SetTimeline(const InstanceTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
73 inline void SetTimeline(InstanceTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
74 inline InstanceStatus& WithTimeline(const InstanceTimeline& value) { SetTimeline(value); return *this;}
75 inline InstanceStatus& WithTimeline(InstanceTimeline&& value) { SetTimeline(std::move(value)); return *this;}
77 private:
78
79 InstanceState m_state;
80 bool m_stateHasBeenSet = false;
81
82 InstanceStateChangeReason m_stateChangeReason;
83 bool m_stateChangeReasonHasBeenSet = false;
84
85 InstanceTimeline m_timeline;
86 bool m_timelineHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace EMR
91} // namespace Aws
InstanceStatus & WithState(InstanceState &&value)
InstanceStatus & WithState(const InstanceState &value)
void SetState(const InstanceState &value)
InstanceStatus & WithStateChangeReason(InstanceStateChangeReason &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeline(InstanceTimeline &&value)
InstanceStatus & WithStateChangeReason(const InstanceStateChangeReason &value)
InstanceStatus & WithTimeline(const InstanceTimeline &value)
void SetState(InstanceState &&value)
void SetStateChangeReason(const InstanceStateChangeReason &value)
const InstanceState & GetState() const
AWS_EMR_API InstanceStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API InstanceStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
const InstanceStateChangeReason & GetStateChangeReason() const
InstanceStatus & WithTimeline(InstanceTimeline &&value)
const InstanceTimeline & GetTimeline() const
void SetTimeline(const InstanceTimeline &value)
void SetStateChangeReason(InstanceStateChangeReason &&value)
Aws::Utils::Json::JsonValue JsonValue