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>
60 template<
typename StateChangeReasonT = ClusterStateChangeReason>
61 void SetStateChangeReason(StateChangeReasonT&& value) { m_stateChangeReasonHasBeenSet =
true; m_stateChangeReason = std::forward<StateChangeReasonT>(value); }
62 template<
typename StateChangeReasonT = ClusterStateChangeReason>
73 template<
typename TimelineT = ClusterTimeline>
74 void SetTimeline(TimelineT&& value) { m_timelineHasBeenSet =
true; m_timeline = std::forward<TimelineT>(value); }
75 template<
typename TimelineT = ClusterTimeline>
87 template<
typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
88 void SetErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet =
true; m_errorDetails = std::forward<ErrorDetailsT>(value); }
89 template<
typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
91 template<
typename ErrorDetailsT = ErrorDetail>
92 ClusterStatus&
AddErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet =
true; m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
return *
this; }
97 bool m_stateHasBeenSet =
false;
99 ClusterStateChangeReason m_stateChangeReason;
100 bool m_stateChangeReasonHasBeenSet =
false;
102 ClusterTimeline m_timeline;
103 bool m_timelineHasBeenSet =
false;
106 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