7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/ComparisonOperator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticmapreduce/model/Statistic.h>
11#include <aws/elasticmapreduce/model/Unit.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticmapreduce/model/MetricDimension.h>
66 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
77 template<
typename MetricNameT = Aws::String>
78 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
79 template<
typename MetricNameT = Aws::String>
90 template<
typename NamespaceT = Aws::String>
91 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet =
true; m_namespace = std::forward<NamespaceT>(value); }
92 template<
typename NamespaceT = Aws::String>
104 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
125 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
137 inline void SetUnit(
Unit value) { m_unitHasBeenSet =
true; m_unit = value; }
147 template<
typename DimensionsT = Aws::Vector<MetricDimension>>
148 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
149 template<
typename DimensionsT = Aws::Vector<MetricDimension>>
151 template<
typename DimensionsT = MetricDimension>
157 bool m_comparisonOperatorHasBeenSet =
false;
159 int m_evaluationPeriods{0};
160 bool m_evaluationPeriodsHasBeenSet =
false;
163 bool m_metricNameHasBeenSet =
false;
166 bool m_namespaceHasBeenSet =
false;
169 bool m_periodHasBeenSet =
false;
172 bool m_statisticHasBeenSet =
false;
174 double m_threshold{0.0};
175 bool m_thresholdHasBeenSet =
false;
178 bool m_unitHasBeenSet =
false;
181 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