7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/ClusterState.h>
10#include <aws/elasticmapreduce/model/ClusterStateChangeReason.h>
11#include <aws/elasticmapreduce/model/ClusterTimeline.h>
12#include <aws/elasticmapreduce/model/ErrorDetail.h>
45 m_stateHasBeenSet =
true;
60 template <
typename StateChangeReasonT = ClusterStateChangeReason>
62 m_stateChangeReasonHasBeenSet =
true;
63 m_stateChangeReason = std::forward<StateChangeReasonT>(value);
65 template <
typename StateChangeReasonT = ClusterStateChangeReason>
79 template <
typename TimelineT = ClusterTimeline>
81 m_timelineHasBeenSet =
true;
82 m_timeline = std::forward<TimelineT>(value);
84 template <
typename TimelineT = ClusterTimeline>
99 template <
typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
101 m_errorDetailsHasBeenSet =
true;
102 m_errorDetails = std::forward<ErrorDetailsT>(value);
104 template <
typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
109 template <
typename ErrorDetailsT = ErrorDetail>
111 m_errorDetailsHasBeenSet =
true;
112 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
119 ClusterStateChangeReason m_stateChangeReason;
121 ClusterTimeline m_timeline;
124 bool m_stateHasBeenSet =
false;
125 bool m_stateChangeReasonHasBeenSet =
false;
126 bool m_timelineHasBeenSet =
false;
127 bool m_errorDetailsHasBeenSet =
false;
const ClusterTimeline & GetTimeline() const
AWS_EMR_API ClusterStatus(Aws::Utils::Json::JsonView jsonValue)
void SetStateChangeReason(StateChangeReasonT &&value)
const ClusterStateChangeReason & GetStateChangeReason() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeline(TimelineT &&value)
bool StateHasBeenSet() const
ClusterStatus & WithErrorDetails(ErrorDetailsT &&value)
bool TimelineHasBeenSet() const
bool StateChangeReasonHasBeenSet() const
AWS_EMR_API ClusterStatus()=default
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
void SetState(ClusterState value)
ClusterStatus & WithStateChangeReason(StateChangeReasonT &&value)
ClusterStatus & WithState(ClusterState value)
AWS_EMR_API ClusterStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ErrorDetailsHasBeenSet() const
ClusterState GetState() const
ClusterStatus & WithTimeline(TimelineT &&value)
void SetErrorDetails(ErrorDetailsT &&value)
ClusterStatus & AddErrorDetails(ErrorDetailsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue