7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/model/ComparisonOperator.h>
11#include <aws/elasticmapreduce/model/MetricDimension.h>
12#include <aws/elasticmapreduce/model/Statistic.h>
13#include <aws/elasticmapreduce/model/Unit.h>
49 m_comparisonOperatorHasBeenSet =
true;
50 m_comparisonOperator = value;
67 m_evaluationPeriodsHasBeenSet =
true;
68 m_evaluationPeriods = value;
83 template <
typename MetricNameT = Aws::String>
85 m_metricNameHasBeenSet =
true;
86 m_metricName = std::forward<MetricNameT>(value);
88 template <
typename MetricNameT = Aws::String>
102 template <
typename NamespaceT = Aws::String>
104 m_namespaceHasBeenSet =
true;
105 m_namespace = std::forward<NamespaceT>(value);
107 template <
typename NamespaceT = Aws::String>
123 m_periodHasBeenSet =
true;
140 m_statisticHasBeenSet =
true;
156 m_thresholdHasBeenSet =
true;
174 m_unitHasBeenSet =
true;
189 template <
typename DimensionsT = Aws::Vector<MetricDimension>>
191 m_dimensionsHasBeenSet =
true;
192 m_dimensions = std::forward<DimensionsT>(value);
194 template <
typename DimensionsT = Aws::Vector<MetricDimension>>
199 template <
typename DimensionsT = MetricDimension>
201 m_dimensionsHasBeenSet =
true;
202 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
209 int m_evaluationPeriods{0};
219 double m_threshold{0.0};
224 bool m_comparisonOperatorHasBeenSet =
false;
225 bool m_evaluationPeriodsHasBeenSet =
false;
226 bool m_metricNameHasBeenSet =
false;
227 bool m_namespaceHasBeenSet =
false;
228 bool m_periodHasBeenSet =
false;
229 bool m_statisticHasBeenSet =
false;
230 bool m_thresholdHasBeenSet =
false;
231 bool m_unitHasBeenSet =
false;
232 bool m_dimensionsHasBeenSet =
false;
CloudWatchAlarmDefinition & WithPeriod(int value)
int GetEvaluationPeriods() const
const Aws::String & GetNamespace() const
const Aws::Vector< MetricDimension > & GetDimensions() const
double GetThreshold() const
bool DimensionsHasBeenSet() const
void SetDimensions(DimensionsT &&value)
const Aws::String & GetMetricName() const
void SetThreshold(double value)
CloudWatchAlarmDefinition & WithEvaluationPeriods(int value)
CloudWatchAlarmDefinition & WithMetricName(MetricNameT &&value)
void SetPeriod(int value)
bool MetricNameHasBeenSet() const
AWS_EMR_API CloudWatchAlarmDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEvaluationPeriods(int value)
bool ComparisonOperatorHasBeenSet() const
bool UnitHasBeenSet() const
bool EvaluationPeriodsHasBeenSet() const
CloudWatchAlarmDefinition & WithUnit(Unit value)
bool ThresholdHasBeenSet() const
void SetComparisonOperator(ComparisonOperator value)
AWS_EMR_API CloudWatchAlarmDefinition()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API CloudWatchAlarmDefinition(Aws::Utils::Json::JsonView jsonValue)
CloudWatchAlarmDefinition & WithNamespace(NamespaceT &&value)
ComparisonOperator GetComparisonOperator() const
CloudWatchAlarmDefinition & WithComparisonOperator(ComparisonOperator value)
void SetMetricName(MetricNameT &&value)
void SetStatistic(Statistic value)
CloudWatchAlarmDefinition & WithStatistic(Statistic value)
bool NamespaceHasBeenSet() const
Statistic GetStatistic() const
CloudWatchAlarmDefinition & WithThreshold(double value)
bool StatisticHasBeenSet() const
CloudWatchAlarmDefinition & AddDimensions(DimensionsT &&value)
void SetNamespace(NamespaceT &&value)
bool PeriodHasBeenSet() const
CloudWatchAlarmDefinition & WithDimensions(DimensionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue