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>
68 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
81 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
96 inline void SetNamespace(
const char* value) { m_namespaceHasBeenSet =
true; m_namespace.assign(value); }
110 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
133 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
145 inline void SetUnit(
const Unit& value) { m_unitHasBeenSet =
true; m_unit = value; }
146 inline void SetUnit(
Unit&& value) { m_unitHasBeenSet =
true; m_unit = std::move(value); }
167 bool m_comparisonOperatorHasBeenSet =
false;
169 int m_evaluationPeriods;
170 bool m_evaluationPeriodsHasBeenSet =
false;
173 bool m_metricNameHasBeenSet =
false;
176 bool m_namespaceHasBeenSet =
false;
179 bool m_periodHasBeenSet =
false;
182 bool m_statisticHasBeenSet =
false;
185 bool m_thresholdHasBeenSet =
false;
188 bool m_unitHasBeenSet =
false;
191 bool m_dimensionsHasBeenSet =
false;
CloudWatchAlarmDefinition & WithPeriod(int value)
CloudWatchAlarmDefinition & WithDimensions(Aws::Vector< MetricDimension > &&value)
int GetEvaluationPeriods() const
const Aws::String & GetNamespace() const
CloudWatchAlarmDefinition & WithDimensions(const Aws::Vector< MetricDimension > &value)
CloudWatchAlarmDefinition & WithStatistic(Statistic &&value)
CloudWatchAlarmDefinition & WithStatistic(const Statistic &value)
const Aws::Vector< MetricDimension > & GetDimensions() const
void SetMetricName(const Aws::String &value)
CloudWatchAlarmDefinition & WithMetricName(const char *value)
CloudWatchAlarmDefinition & WithUnit(const Unit &value)
void SetMetricName(Aws::String &&value)
const Statistic & GetStatistic() const
void SetDimensions(Aws::Vector< MetricDimension > &&value)
double GetThreshold() const
void SetStatistic(const Statistic &value)
bool DimensionsHasBeenSet() const
void SetNamespace(Aws::String &&value)
CloudWatchAlarmDefinition & WithComparisonOperator(ComparisonOperator &&value)
CloudWatchAlarmDefinition & AddDimensions(MetricDimension &&value)
void SetComparisonOperator(const ComparisonOperator &value)
const Aws::String & GetMetricName() const
void SetThreshold(double value)
CloudWatchAlarmDefinition & WithEvaluationPeriods(int value)
void SetPeriod(int value)
CloudWatchAlarmDefinition & WithUnit(Unit &&value)
CloudWatchAlarmDefinition & WithComparisonOperator(const ComparisonOperator &value)
bool MetricNameHasBeenSet() const
AWS_EMR_API CloudWatchAlarmDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(Unit &&value)
void SetNamespace(const char *value)
const ComparisonOperator & GetComparisonOperator() const
void SetMetricName(const char *value)
const Unit & GetUnit() const
CloudWatchAlarmDefinition & WithMetricName(Aws::String &&value)
void SetEvaluationPeriods(int value)
bool ComparisonOperatorHasBeenSet() const
CloudWatchAlarmDefinition & WithMetricName(const Aws::String &value)
void SetUnit(const Unit &value)
bool UnitHasBeenSet() const
void SetDimensions(const Aws::Vector< MetricDimension > &value)
void SetComparisonOperator(ComparisonOperator &&value)
bool EvaluationPeriodsHasBeenSet() const
bool ThresholdHasBeenSet() const
CloudWatchAlarmDefinition & WithNamespace(const Aws::String &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNamespace(const Aws::String &value)
CloudWatchAlarmDefinition & WithNamespace(const char *value)
AWS_EMR_API CloudWatchAlarmDefinition(Aws::Utils::Json::JsonView jsonValue)
CloudWatchAlarmDefinition & WithNamespace(Aws::String &&value)
CloudWatchAlarmDefinition & AddDimensions(const MetricDimension &value)
bool NamespaceHasBeenSet() const
CloudWatchAlarmDefinition & WithThreshold(double value)
AWS_EMR_API CloudWatchAlarmDefinition()
bool StatisticHasBeenSet() const
void SetStatistic(Statistic &&value)
bool PeriodHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue