7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/monitoring/CloudWatchRequest.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/ComparisonOperator.h>
12#include <aws/monitoring/model/Dimension.h>
13#include <aws/monitoring/model/MetricDataQuery.h>
14#include <aws/monitoring/model/StandardUnit.h>
15#include <aws/monitoring/model/Statistic.h>
16#include <aws/monitoring/model/Tag.h>
48 template <
typename AlarmNameT = Aws::String>
50 m_alarmNameHasBeenSet =
true;
51 m_alarmName = std::forward<AlarmNameT>(value);
53 template <
typename AlarmNameT = Aws::String>
66 template <
typename AlarmDescriptionT = Aws::String>
68 m_alarmDescriptionHasBeenSet =
true;
69 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
71 template <
typename AlarmDescriptionT = Aws::String>
86 m_actionsEnabledHasBeenSet =
true;
87 m_actionsEnabled = value;
130 template <
typename OKActionsT = Aws::Vector<Aws::String>>
132 m_oKActionsHasBeenSet =
true;
133 m_oKActions = std::forward<OKActionsT>(value);
135 template <
typename OKActionsT = Aws::Vector<Aws::String>>
140 template <
typename OKActionsT = Aws::String>
142 m_oKActionsHasBeenSet =
true;
143 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
186 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
188 m_alarmActionsHasBeenSet =
true;
189 m_alarmActions = std::forward<AlarmActionsT>(value);
191 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
196 template <
typename AlarmActionsT = Aws::String>
198 m_alarmActionsHasBeenSet =
true;
199 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
240 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
242 m_insufficientDataActionsHasBeenSet =
true;
243 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
245 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
250 template <
typename InsufficientDataActionsT = Aws::String>
252 m_insufficientDataActionsHasBeenSet =
true;
253 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
271 template <
typename MetricNameT = Aws::String>
273 m_metricNameHasBeenSet =
true;
274 m_metricName = std::forward<MetricNameT>(value);
276 template <
typename MetricNameT = Aws::String>
290 template <
typename NamespaceT = Aws::String>
292 m_namespaceHasBeenSet =
true;
293 m_namespace = std::forward<NamespaceT>(value);
295 template <
typename NamespaceT = Aws::String>
313 m_statisticHasBeenSet =
true;
344 template <
typename ExtendedStatisticT = Aws::String>
346 m_extendedStatisticHasBeenSet =
true;
347 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
349 template <
typename ExtendedStatisticT = Aws::String>
362 template <
typename DimensionsT = Aws::Vector<Dimension>>
364 m_dimensionsHasBeenSet =
true;
365 m_dimensions = std::forward<DimensionsT>(value);
367 template <
typename DimensionsT = Aws::Vector<Dimension>>
372 template <
typename DimensionsT = Dimension>
374 m_dimensionsHasBeenSet =
true;
375 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
406 m_periodHasBeenSet =
true;
437 m_unitHasBeenSet =
true;
456 m_evaluationPeriodsHasBeenSet =
true;
457 m_evaluationPeriods = value;
476 m_datapointsToAlarmHasBeenSet =
true;
477 m_datapointsToAlarm = value;
494 m_thresholdHasBeenSet =
true;
514 m_comparisonOperatorHasBeenSet =
true;
515 m_comparisonOperator = value;
539 template <
typename TreatMissingDataT = Aws::String>
541 m_treatMissingDataHasBeenSet =
true;
542 m_treatMissingData = std::forward<TreatMissingDataT>(value);
544 template <
typename TreatMissingDataT = Aws::String>
565 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
567 m_evaluateLowSampleCountPercentileHasBeenSet =
true;
568 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
570 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
598 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
600 m_metricsHasBeenSet =
true;
601 m_metrics = std::forward<MetricsT>(value);
603 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
608 template <
typename MetricsT = MetricDataQuery>
610 m_metricsHasBeenSet =
true;
611 m_metrics.emplace_back(std::forward<MetricsT>(value));
635 template <
typename TagsT = Aws::Vector<Tag>>
637 m_tagsHasBeenSet =
true;
638 m_tags = std::forward<TagsT>(value);
640 template <
typename TagsT = Aws::Vector<Tag>>
642 SetTags(std::forward<TagsT>(value));
645 template <
typename TagsT = Tag>
647 m_tagsHasBeenSet =
true;
648 m_tags.emplace_back(std::forward<TagsT>(value));
663 template <
typename ThresholdMetricIdT = Aws::String>
665 m_thresholdMetricIdHasBeenSet =
true;
666 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
668 template <
typename ThresholdMetricIdT = Aws::String>
679 bool m_actionsEnabled{
false};
701 int m_evaluationPeriods{0};
703 int m_datapointsToAlarm{0};
705 double m_threshold{0.0};
718 bool m_alarmNameHasBeenSet =
false;
719 bool m_alarmDescriptionHasBeenSet =
false;
720 bool m_actionsEnabledHasBeenSet =
false;
721 bool m_oKActionsHasBeenSet =
false;
722 bool m_alarmActionsHasBeenSet =
false;
723 bool m_insufficientDataActionsHasBeenSet =
false;
724 bool m_metricNameHasBeenSet =
false;
725 bool m_namespaceHasBeenSet =
false;
726 bool m_statisticHasBeenSet =
false;
727 bool m_extendedStatisticHasBeenSet =
false;
728 bool m_dimensionsHasBeenSet =
false;
729 bool m_periodHasBeenSet =
false;
730 bool m_unitHasBeenSet =
false;
731 bool m_evaluationPeriodsHasBeenSet =
false;
732 bool m_datapointsToAlarmHasBeenSet =
false;
733 bool m_thresholdHasBeenSet =
false;
734 bool m_comparisonOperatorHasBeenSet =
false;
735 bool m_treatMissingDataHasBeenSet =
false;
736 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
737 bool m_metricsHasBeenSet =
false;
738 bool m_tagsHasBeenSet =
false;
739 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)
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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)
PutMetricAlarmRequest & WithTreatMissingData(TreatMissingDataT &&value)
int GetEvaluationPeriods() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector