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/EvaluationCriteria.h>
14#include <aws/monitoring/model/EvaluationWindow.h>
15#include <aws/monitoring/model/MetricDataQuery.h>
16#include <aws/monitoring/model/StandardUnit.h>
17#include <aws/monitoring/model/Statistic.h>
18#include <aws/monitoring/model/Tag.h>
19#include <aws/monitoring/model/WarmUpConfiguration.h>
51 template <
typename AlarmNameT = Aws::String>
53 m_alarmNameHasBeenSet =
true;
54 m_alarmName = std::forward<AlarmNameT>(value);
56 template <
typename AlarmNameT = Aws::String>
69 template <
typename AlarmDescriptionT = Aws::String>
71 m_alarmDescriptionHasBeenSet =
true;
72 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
74 template <
typename AlarmDescriptionT = Aws::String>
89 m_actionsEnabledHasBeenSet =
true;
90 m_actionsEnabled = value;
133 template <
typename OKActionsT = Aws::Vector<Aws::String>>
135 m_oKActionsHasBeenSet =
true;
136 m_oKActions = std::forward<OKActionsT>(value);
138 template <
typename OKActionsT = Aws::Vector<Aws::String>>
143 template <
typename OKActionsT = Aws::String>
145 m_oKActionsHasBeenSet =
true;
146 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
189 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
191 m_alarmActionsHasBeenSet =
true;
192 m_alarmActions = std::forward<AlarmActionsT>(value);
194 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
199 template <
typename AlarmActionsT = Aws::String>
201 m_alarmActionsHasBeenSet =
true;
202 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
243 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
245 m_insufficientDataActionsHasBeenSet =
true;
246 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
248 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
253 template <
typename InsufficientDataActionsT = Aws::String>
255 m_insufficientDataActionsHasBeenSet =
true;
256 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
275 template <
typename MetricNameT = Aws::String>
277 m_metricNameHasBeenSet =
true;
278 m_metricName = std::forward<MetricNameT>(value);
280 template <
typename MetricNameT = Aws::String>
294 template <
typename NamespaceT = Aws::String>
296 m_namespaceHasBeenSet =
true;
297 m_namespace = std::forward<NamespaceT>(value);
299 template <
typename NamespaceT = Aws::String>
317 m_statisticHasBeenSet =
true;
348 template <
typename ExtendedStatisticT = Aws::String>
350 m_extendedStatisticHasBeenSet =
true;
351 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
353 template <
typename ExtendedStatisticT = Aws::String>
366 template <
typename DimensionsT = Aws::Vector<Dimension>>
368 m_dimensionsHasBeenSet =
true;
369 m_dimensions = std::forward<DimensionsT>(value);
371 template <
typename DimensionsT = Aws::Vector<Dimension>>
376 template <
typename DimensionsT = Dimension>
378 m_dimensionsHasBeenSet =
true;
379 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
410 m_periodHasBeenSet =
true;
441 m_unitHasBeenSet =
true;
460 m_evaluationPeriodsHasBeenSet =
true;
461 m_evaluationPeriods = value;
480 m_datapointsToAlarmHasBeenSet =
true;
481 m_datapointsToAlarm = value;
498 m_thresholdHasBeenSet =
true;
518 m_comparisonOperatorHasBeenSet =
true;
519 m_comparisonOperator = value;
544 template <
typename TreatMissingDataT = Aws::String>
546 m_treatMissingDataHasBeenSet =
true;
547 m_treatMissingData = std::forward<TreatMissingDataT>(value);
549 template <
typename TreatMissingDataT = Aws::String>
570 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
572 m_evaluateLowSampleCountPercentileHasBeenSet =
true;
573 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
575 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
603 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
605 m_metricsHasBeenSet =
true;
606 m_metrics = std::forward<MetricsT>(value);
608 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
613 template <
typename MetricsT = MetricDataQuery>
615 m_metricsHasBeenSet =
true;
616 m_metrics.emplace_back(std::forward<MetricsT>(value));
640 template <
typename TagsT = Aws::Vector<Tag>>
642 m_tagsHasBeenSet =
true;
643 m_tags = std::forward<TagsT>(value);
645 template <
typename TagsT = Aws::Vector<Tag>>
647 SetTags(std::forward<TagsT>(value));
650 template <
typename TagsT = Tag>
652 m_tagsHasBeenSet =
true;
653 m_tags.emplace_back(std::forward<TagsT>(value));
668 template <
typename ThresholdMetricIdT = Aws::String>
670 m_thresholdMetricIdHasBeenSet =
true;
671 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
673 template <
typename ThresholdMetricIdT = Aws::String>
695 template <
typename EvaluationWindowT = EvaluationWindow>
697 m_evaluationWindowHasBeenSet =
true;
698 m_evaluationWindow = std::forward<EvaluationWindowT>(value);
700 template <
typename EvaluationWindowT = EvaluationWindow>
718 template <
typename WarmUpConfigurationT = WarmUpConfiguration>
720 m_warmUpConfigurationHasBeenSet =
true;
721 m_warmUpConfiguration = std::forward<WarmUpConfigurationT>(value);
723 template <
typename WarmUpConfigurationT = WarmUpConfiguration>
747 template <
typename EvaluationCriteriaT = EvaluationCriteria>
749 m_evaluationCriteriaHasBeenSet =
true;
750 m_evaluationCriteria = std::forward<EvaluationCriteriaT>(value);
752 template <
typename EvaluationCriteriaT = EvaluationCriteria>
769 m_evaluationIntervalHasBeenSet =
true;
770 m_evaluationInterval = value;
782 bool m_actionsEnabled{
false};
804 int m_evaluationPeriods{0};
806 int m_datapointsToAlarm{0};
808 double m_threshold{0.0};
822 EvaluationWindow m_evaluationWindow;
824 WarmUpConfiguration m_warmUpConfiguration;
826 EvaluationCriteria m_evaluationCriteria;
828 int m_evaluationInterval{0};
829 bool m_alarmNameHasBeenSet =
false;
830 bool m_alarmDescriptionHasBeenSet =
false;
831 bool m_actionsEnabledHasBeenSet =
false;
832 bool m_oKActionsHasBeenSet =
false;
833 bool m_alarmActionsHasBeenSet =
false;
834 bool m_insufficientDataActionsHasBeenSet =
false;
835 bool m_metricNameHasBeenSet =
false;
836 bool m_namespaceHasBeenSet =
false;
837 bool m_statisticHasBeenSet =
false;
838 bool m_extendedStatisticHasBeenSet =
false;
839 bool m_dimensionsHasBeenSet =
false;
840 bool m_periodHasBeenSet =
false;
841 bool m_unitHasBeenSet =
false;
842 bool m_evaluationPeriodsHasBeenSet =
false;
843 bool m_datapointsToAlarmHasBeenSet =
false;
844 bool m_thresholdHasBeenSet =
false;
845 bool m_comparisonOperatorHasBeenSet =
false;
846 bool m_treatMissingDataHasBeenSet =
false;
847 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
848 bool m_metricsHasBeenSet =
false;
849 bool m_tagsHasBeenSet =
false;
850 bool m_thresholdMetricIdHasBeenSet =
false;
851 bool m_evaluationWindowHasBeenSet =
false;
852 bool m_warmUpConfigurationHasBeenSet =
false;
853 bool m_evaluationCriteriaHasBeenSet =
false;
854 bool m_evaluationIntervalHasBeenSet =
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)
void SetWarmUpConfiguration(WarmUpConfigurationT &&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
PutMetricAlarmRequest & WithEvaluationCriteria(EvaluationCriteriaT &&value)
AWS_CLOUDWATCH_API PutMetricAlarmRequest()=default
void SetEvaluationPeriods(int value)
PutMetricAlarmRequest & WithOKActions(OKActionsT &&value)
bool EvaluationWindowHasBeenSet() const
void SetComparisonOperator(ComparisonOperator value)
void SetThresholdMetricId(ThresholdMetricIdT &&value)
PutMetricAlarmRequest & WithEvaluationWindow(EvaluationWindowT &&value)
Statistic GetStatistic() const
const Aws::Vector< Dimension > & GetDimensions() const
PutMetricAlarmRequest & AddMetrics(MetricsT &&value)
void SetOKActions(OKActionsT &&value)
bool ExtendedStatisticHasBeenSet() const
const EvaluationCriteria & GetEvaluationCriteria() 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 SetEvaluationInterval(int value)
void SetUnit(StandardUnit value)
const Aws::String & GetEvaluateLowSampleCountPercentile() const
bool EvaluationCriteriaHasBeenSet() const
PutMetricAlarmRequest & WithPeriod(int value)
const Aws::Vector< Aws::String > & GetOKActions() const
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
bool ActionsEnabledHasBeenSet() const
PutMetricAlarmRequest & WithThresholdMetricId(ThresholdMetricIdT &&value)
void SetEvaluationWindow(EvaluationWindowT &&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
const WarmUpConfiguration & GetWarmUpConfiguration() const
bool AlarmNameHasBeenSet() const
PutMetricAlarmRequest & WithInsufficientDataActions(InsufficientDataActionsT &&value)
void SetAlarmActions(AlarmActionsT &&value)
const Aws::String & GetTreatMissingData() const
void SetTreatMissingData(TreatMissingDataT &&value)
bool WarmUpConfigurationHasBeenSet() const
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
bool OKActionsHasBeenSet() const
bool EvaluationIntervalHasBeenSet() 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
void SetEvaluationCriteria(EvaluationCriteriaT &&value)
const EvaluationWindow & GetEvaluationWindow() const
PutMetricAlarmRequest & WithWarmUpConfiguration(WarmUpConfigurationT &&value)
PutMetricAlarmRequest & WithEvaluationInterval(int value)
PutMetricAlarmRequest & AddAlarmActions(AlarmActionsT &&value)
PutMetricAlarmRequest & WithNamespace(NamespaceT &&value)
int GetEvaluationInterval() const
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