7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Statistic.h>
12#include <aws/monitoring/model/StandardUnit.h>
13#include <aws/monitoring/model/ComparisonOperator.h>
14#include <aws/monitoring/model/Dimension.h>
15#include <aws/monitoring/model/MetricDataQuery.h>
16#include <aws/monitoring/model/Tag.h>
54 template<
typename AlarmNameT = Aws::String>
55 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet =
true; m_alarmName = std::forward<AlarmNameT>(value); }
56 template<
typename AlarmNameT = Aws::String>
66 template<
typename AlarmDescriptionT = Aws::String>
67 void SetAlarmDescription(AlarmDescriptionT&& value) { m_alarmDescriptionHasBeenSet =
true; m_alarmDescription = std::forward<AlarmDescriptionT>(value); }
68 template<
typename AlarmDescriptionT = Aws::String>
79 inline void SetActionsEnabled(
bool value) { m_actionsEnabledHasBeenSet =
true; m_actionsEnabled = value; }
118 template<
typename OKActionsT = Aws::Vector<Aws::String>>
119 void SetOKActions(OKActionsT&& value) { m_oKActionsHasBeenSet =
true; m_oKActions = std::forward<OKActionsT>(value); }
120 template<
typename OKActionsT = Aws::Vector<Aws::String>>
122 template<
typename OKActionsT = Aws::String>
164 template<
typename AlarmActionsT = Aws::Vector<Aws::String>>
165 void SetAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet =
true; m_alarmActions = std::forward<AlarmActionsT>(value); }
166 template<
typename AlarmActionsT = Aws::Vector<Aws::String>>
168 template<
typename AlarmActionsT = Aws::String>
208 template<
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
209 void SetInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet =
true; m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value); }
210 template<
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
212 template<
typename InsufficientDataActionsT = Aws::String>
229 template<
typename MetricNameT = Aws::String>
230 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
231 template<
typename MetricNameT = Aws::String>
242 template<
typename NamespaceT = Aws::String>
243 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet =
true; m_namespace = std::forward<NamespaceT>(value); }
244 template<
typename NamespaceT = Aws::String>
284 template<
typename ExtendedStatisticT = Aws::String>
285 void SetExtendedStatistic(ExtendedStatisticT&& value) { m_extendedStatisticHasBeenSet =
true; m_extendedStatistic = std::forward<ExtendedStatisticT>(value); }
286 template<
typename ExtendedStatisticT = Aws::String>
296 template<
typename DimensionsT = Aws::Vector<Dimension>>
297 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
298 template<
typename DimensionsT = Aws::Vector<Dimension>>
300 template<
typename DimensionsT = Dimension>
329 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
367 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
381 inline void SetDatapointsToAlarm(
int value) { m_datapointsToAlarmHasBeenSet =
true; m_datapointsToAlarm = value; }
393 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
427 template<
typename TreatMissingDataT = Aws::String>
428 void SetTreatMissingData(TreatMissingDataT&& value) { m_treatMissingDataHasBeenSet =
true; m_treatMissingData = std::forward<TreatMissingDataT>(value); }
429 template<
typename TreatMissingDataT = Aws::String>
447 template<
typename EvaluateLowSampleCountPercentileT = Aws::String>
448 void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) { m_evaluateLowSampleCountPercentileHasBeenSet =
true; m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value); }
449 template<
typename EvaluateLowSampleCountPercentileT = Aws::String>
474 template<
typename MetricsT = Aws::Vector<MetricDataQuery>>
475 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet =
true; m_metrics = std::forward<MetricsT>(value); }
476 template<
typename MetricsT = Aws::Vector<MetricDataQuery>>
478 template<
typename MetricsT = MetricDataQuery>
501 template<
typename TagsT = Aws::Vector<Tag>>
502 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
503 template<
typename TagsT = Aws::Vector<Tag>>
505 template<
typename TagsT = Tag>
519 template<
typename ThresholdMetricIdT = Aws::String>
520 void SetThresholdMetricId(ThresholdMetricIdT&& value) { m_thresholdMetricIdHasBeenSet =
true; m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value); }
521 template<
typename ThresholdMetricIdT = Aws::String>
527 bool m_alarmNameHasBeenSet =
false;
530 bool m_alarmDescriptionHasBeenSet =
false;
532 bool m_actionsEnabled{
false};
533 bool m_actionsEnabledHasBeenSet =
false;
536 bool m_oKActionsHasBeenSet =
false;
539 bool m_alarmActionsHasBeenSet =
false;
542 bool m_insufficientDataActionsHasBeenSet =
false;
545 bool m_metricNameHasBeenSet =
false;
548 bool m_namespaceHasBeenSet =
false;
551 bool m_statisticHasBeenSet =
false;
554 bool m_extendedStatisticHasBeenSet =
false;
557 bool m_dimensionsHasBeenSet =
false;
560 bool m_periodHasBeenSet =
false;
563 bool m_unitHasBeenSet =
false;
565 int m_evaluationPeriods{0};
566 bool m_evaluationPeriodsHasBeenSet =
false;
568 int m_datapointsToAlarm{0};
569 bool m_datapointsToAlarmHasBeenSet =
false;
571 double m_threshold{0.0};
572 bool m_thresholdHasBeenSet =
false;
575 bool m_comparisonOperatorHasBeenSet =
false;
578 bool m_treatMissingDataHasBeenSet =
false;
581 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
584 bool m_metricsHasBeenSet =
false;
587 bool m_tagsHasBeenSet =
false;
590 bool m_thresholdMetricIdHasBeenSet =
false;
bool ThresholdHasBeenSet() const
int GetDatapointsToAlarm() const
double GetThreshold() const
bool GetActionsEnabled() const
const Aws::String & GetExtendedStatistic() const
void SetExtendedStatistic(ExtendedStatisticT &&value)
void SetPeriod(int value)
bool AlarmActionsHasBeenSet() const
bool PeriodHasBeenSet() const
StandardUnit GetUnit() const
const Aws::String & GetMetricName() const
PutMetricAlarmRequest & WithExtendedStatistic(ExtendedStatisticT &&value)
bool EvaluateLowSampleCountPercentileHasBeenSet() const
const Aws::String & GetAlarmDescription() const
void SetThreshold(double value)
void SetNamespace(NamespaceT &&value)
PutMetricAlarmRequest & AddDimensions(DimensionsT &&value)
PutMetricAlarmRequest & WithThreshold(double value)
bool ComparisonOperatorHasBeenSet() const
bool InsufficientDataActionsHasBeenSet() const
void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
const Aws::String & GetThresholdMetricId() const
PutMetricAlarmRequest & WithEvaluationPeriods(int value)
PutMetricAlarmRequest & WithMetrics(MetricsT &&value)
bool DimensionsHasBeenSet() const
void SetDatapointsToAlarm(int value)
PutMetricAlarmRequest & WithDatapointsToAlarm(int value)
bool EvaluationPeriodsHasBeenSet() const
bool NamespaceHasBeenSet() const
PutMetricAlarmRequest & WithAlarmName(AlarmNameT &&value)
void SetMetricName(MetricNameT &&value)
bool TreatMissingDataHasBeenSet() const
bool StatisticHasBeenSet() const
const Aws::String & GetAlarmName() const
bool TagsHasBeenSet() const
bool UnitHasBeenSet() const
AWS_CLOUDWATCH_API PutMetricAlarmRequest()=default
void SetEvaluationPeriods(int value)
PutMetricAlarmRequest & WithOKActions(OKActionsT &&value)
void SetComparisonOperator(ComparisonOperator value)
void SetThresholdMetricId(ThresholdMetricIdT &&value)
Statistic GetStatistic() const
const Aws::Vector< Dimension > & GetDimensions() const
PutMetricAlarmRequest & AddMetrics(MetricsT &&value)
void SetOKActions(OKActionsT &&value)
bool ExtendedStatisticHasBeenSet() const
PutMetricAlarmRequest & WithStatistic(Statistic value)
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
bool MetricNameHasBeenSet() const
const Aws::Vector< MetricDataQuery > & GetMetrics() const
const Aws::Vector< Aws::String > & GetAlarmActions() const
bool AlarmDescriptionHasBeenSet() const
PutMetricAlarmRequest & WithActionsEnabled(bool value)
void SetAlarmName(AlarmNameT &&value)
PutMetricAlarmRequest & WithDimensions(DimensionsT &&value)
void SetStatistic(Statistic value)
const Aws::String & GetNamespace() const
void SetUnit(StandardUnit value)
const Aws::String & GetEvaluateLowSampleCountPercentile() const
PutMetricAlarmRequest & WithPeriod(int value)
const Aws::Vector< Aws::String > & GetOKActions() const
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
bool ActionsEnabledHasBeenSet() const
PutMetricAlarmRequest & WithThresholdMetricId(ThresholdMetricIdT &&value)
void SetActionsEnabled(bool value)
bool MetricsHasBeenSet() const
bool DatapointsToAlarmHasBeenSet() const
PutMetricAlarmRequest & WithUnit(StandardUnit value)
void SetMetrics(MetricsT &&value)
bool AlarmNameHasBeenSet() const
PutMetricAlarmRequest & WithInsufficientDataActions(InsufficientDataActionsT &&value)
void SetAlarmActions(AlarmActionsT &&value)
const Aws::String & GetTreatMissingData() const
void SetTreatMissingData(TreatMissingDataT &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
bool OKActionsHasBeenSet() const
PutMetricAlarmRequest & AddTags(TagsT &&value)
ComparisonOperator GetComparisonOperator() const
const Aws::Vector< Tag > & GetTags() const
bool ThresholdMetricIdHasBeenSet() const
void SetAlarmDescription(AlarmDescriptionT &&value)
PutMetricAlarmRequest & AddInsufficientDataActions(InsufficientDataActionsT &&value)
PutMetricAlarmRequest & WithAlarmDescription(AlarmDescriptionT &&value)
PutMetricAlarmRequest & WithAlarmActions(AlarmActionsT &&value)
PutMetricAlarmRequest & WithMetricName(MetricNameT &&value)
PutMetricAlarmRequest & WithComparisonOperator(ComparisonOperator value)
void SetDimensions(DimensionsT &&value)
PutMetricAlarmRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
PutMetricAlarmRequest & AddAlarmActions(AlarmActionsT &&value)
PutMetricAlarmRequest & WithNamespace(NamespaceT &&value)
PutMetricAlarmRequest & AddOKActions(OKActionsT &&value)
void SetTags(TagsT &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutMetricAlarmRequest & WithTreatMissingData(TreatMissingDataT &&value)
int GetEvaluationPeriods() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector