AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterStatus.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/ClusterState.h>
9#include <aws/elasticmapreduce/model/ClusterStateChangeReason.h>
10#include <aws/elasticmapreduce/model/ClusterTimeline.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/ErrorDetail.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EMR
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_EMR_API ClusterStatus();
42
43
45
48 inline const ClusterState& GetState() const{ return m_state; }
49 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
50 inline void SetState(const ClusterState& value) { m_stateHasBeenSet = true; m_state = value; }
51 inline void SetState(ClusterState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
52 inline ClusterStatus& WithState(const ClusterState& value) { SetState(value); return *this;}
53 inline ClusterStatus& WithState(ClusterState&& value) { SetState(std::move(value)); return *this;}
55
57
60 inline const ClusterStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
61 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
62 inline void SetStateChangeReason(const ClusterStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
63 inline void SetStateChangeReason(ClusterStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
65 inline ClusterStatus& WithStateChangeReason(ClusterStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
67
69
73 inline const ClusterTimeline& GetTimeline() const{ return m_timeline; }
74 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
75 inline void SetTimeline(const ClusterTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
76 inline void SetTimeline(ClusterTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
77 inline ClusterStatus& WithTimeline(const ClusterTimeline& value) { SetTimeline(value); return *this;}
78 inline ClusterStatus& WithTimeline(ClusterTimeline&& value) { SetTimeline(std::move(value)); return *this;}
80
82
87 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const{ return m_errorDetails; }
88 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
89 inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
90 inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
91 inline ClusterStatus& WithErrorDetails(const Aws::Vector<ErrorDetail>& value) { SetErrorDetails(value); return *this;}
92 inline ClusterStatus& WithErrorDetails(Aws::Vector<ErrorDetail>&& value) { SetErrorDetails(std::move(value)); return *this;}
93 inline ClusterStatus& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
94 inline ClusterStatus& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
96 private:
97
98 ClusterState m_state;
99 bool m_stateHasBeenSet = false;
100
101 ClusterStateChangeReason m_stateChangeReason;
102 bool m_stateChangeReasonHasBeenSet = false;
103
104 ClusterTimeline m_timeline;
105 bool m_timelineHasBeenSet = false;
106
107 Aws::Vector<ErrorDetail> m_errorDetails;
108 bool m_errorDetailsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace EMR
113} // namespace Aws
void SetState(ClusterState &&value)
const ClusterTimeline & GetTimeline() const
AWS_EMR_API ClusterStatus(Aws::Utils::Json::JsonView jsonValue)
const ClusterStateChangeReason & GetStateChangeReason() const
ClusterStatus & WithStateChangeReason(const ClusterStateChangeReason &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const ClusterState & GetState() const
void SetTimeline(ClusterTimeline &&value)
void SetStateChangeReason(ClusterStateChangeReason &&value)
void SetErrorDetails(Aws::Vector< ErrorDetail > &&value)
ClusterStatus & WithTimeline(ClusterTimeline &&value)
ClusterStatus & AddErrorDetails(ErrorDetail &&value)
void SetErrorDetails(const Aws::Vector< ErrorDetail > &value)
ClusterStatus & WithState(ClusterState &&value)
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
ClusterStatus & WithState(const ClusterState &value)
ClusterStatus & AddErrorDetails(const ErrorDetail &value)
ClusterStatus & WithErrorDetails(Aws::Vector< ErrorDetail > &&value)
AWS_EMR_API ClusterStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimeline(const ClusterTimeline &value)
void SetState(const ClusterState &value)
ClusterStatus & WithTimeline(const ClusterTimeline &value)
void SetStateChangeReason(const ClusterStateChangeReason &value)
ClusterStatus & WithErrorDetails(const Aws::Vector< ErrorDetail > &value)
ClusterStatus & WithStateChangeReason(ClusterStateChangeReason &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue