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>
50 template <
typename AlarmNameT = Aws::String>
52 m_alarmNameHasBeenSet =
true;
53 m_alarmName = std::forward<AlarmNameT>(value);
55 template <
typename AlarmNameT = Aws::String>
68 template <
typename AlarmDescriptionT = Aws::String>
70 m_alarmDescriptionHasBeenSet =
true;
71 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
73 template <
typename AlarmDescriptionT = Aws::String>
88 m_actionsEnabledHasBeenSet =
true;
89 m_actionsEnabled = value;
132 template <
typename OKActionsT = Aws::Vector<Aws::String>>
134 m_oKActionsHasBeenSet =
true;
135 m_oKActions = std::forward<OKActionsT>(value);
137 template <
typename OKActionsT = Aws::Vector<Aws::String>>
142 template <
typename OKActionsT = Aws::String>
144 m_oKActionsHasBeenSet =
true;
145 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
188 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
190 m_alarmActionsHasBeenSet =
true;
191 m_alarmActions = std::forward<AlarmActionsT>(value);
193 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
198 template <
typename AlarmActionsT = Aws::String>
200 m_alarmActionsHasBeenSet =
true;
201 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
242 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
244 m_insufficientDataActionsHasBeenSet =
true;
245 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
247 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
252 template <
typename InsufficientDataActionsT = Aws::String>
254 m_insufficientDataActionsHasBeenSet =
true;
255 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
274 template <
typename MetricNameT = Aws::String>
276 m_metricNameHasBeenSet =
true;
277 m_metricName = std::forward<MetricNameT>(value);
279 template <
typename MetricNameT = Aws::String>
293 template <
typename NamespaceT = Aws::String>
295 m_namespaceHasBeenSet =
true;
296 m_namespace = std::forward<NamespaceT>(value);
298 template <
typename NamespaceT = Aws::String>
316 m_statisticHasBeenSet =
true;
347 template <
typename ExtendedStatisticT = Aws::String>
349 m_extendedStatisticHasBeenSet =
true;
350 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
352 template <
typename ExtendedStatisticT = Aws::String>
365 template <
typename DimensionsT = Aws::Vector<Dimension>>
367 m_dimensionsHasBeenSet =
true;
368 m_dimensions = std::forward<DimensionsT>(value);
370 template <
typename DimensionsT = Aws::Vector<Dimension>>
375 template <
typename DimensionsT = Dimension>
377 m_dimensionsHasBeenSet =
true;
378 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
409 m_periodHasBeenSet =
true;
440 m_unitHasBeenSet =
true;
459 m_evaluationPeriodsHasBeenSet =
true;
460 m_evaluationPeriods = value;
479 m_datapointsToAlarmHasBeenSet =
true;
480 m_datapointsToAlarm = value;
497 m_thresholdHasBeenSet =
true;
517 m_comparisonOperatorHasBeenSet =
true;
518 m_comparisonOperator = value;
543 template <
typename TreatMissingDataT = Aws::String>
545 m_treatMissingDataHasBeenSet =
true;
546 m_treatMissingData = std::forward<TreatMissingDataT>(value);
548 template <
typename TreatMissingDataT = Aws::String>
569 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
571 m_evaluateLowSampleCountPercentileHasBeenSet =
true;
572 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
574 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
602 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
604 m_metricsHasBeenSet =
true;
605 m_metrics = std::forward<MetricsT>(value);
607 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
612 template <
typename MetricsT = MetricDataQuery>
614 m_metricsHasBeenSet =
true;
615 m_metrics.emplace_back(std::forward<MetricsT>(value));
639 template <
typename TagsT = Aws::Vector<Tag>>
641 m_tagsHasBeenSet =
true;
642 m_tags = std::forward<TagsT>(value);
644 template <
typename TagsT = Aws::Vector<Tag>>
646 SetTags(std::forward<TagsT>(value));
649 template <
typename TagsT = Tag>
651 m_tagsHasBeenSet =
true;
652 m_tags.emplace_back(std::forward<TagsT>(value));
667 template <
typename ThresholdMetricIdT = Aws::String>
669 m_thresholdMetricIdHasBeenSet =
true;
670 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
672 template <
typename ThresholdMetricIdT = Aws::String>
694 template <
typename EvaluationWindowT = EvaluationWindow>
696 m_evaluationWindowHasBeenSet =
true;
697 m_evaluationWindow = std::forward<EvaluationWindowT>(value);
699 template <
typename EvaluationWindowT = EvaluationWindow>
723 template <
typename EvaluationCriteriaT = EvaluationCriteria>
725 m_evaluationCriteriaHasBeenSet =
true;
726 m_evaluationCriteria = std::forward<EvaluationCriteriaT>(value);
728 template <
typename EvaluationCriteriaT = EvaluationCriteria>
745 m_evaluationIntervalHasBeenSet =
true;
746 m_evaluationInterval = value;
758 bool m_actionsEnabled{
false};
780 int m_evaluationPeriods{0};
782 int m_datapointsToAlarm{0};
784 double m_threshold{0.0};
798 EvaluationWindow m_evaluationWindow;
800 EvaluationCriteria m_evaluationCriteria;
802 int m_evaluationInterval{0};
803 bool m_alarmNameHasBeenSet =
false;
804 bool m_alarmDescriptionHasBeenSet =
false;
805 bool m_actionsEnabledHasBeenSet =
false;
806 bool m_oKActionsHasBeenSet =
false;
807 bool m_alarmActionsHasBeenSet =
false;
808 bool m_insufficientDataActionsHasBeenSet =
false;
809 bool m_metricNameHasBeenSet =
false;
810 bool m_namespaceHasBeenSet =
false;
811 bool m_statisticHasBeenSet =
false;
812 bool m_extendedStatisticHasBeenSet =
false;
813 bool m_dimensionsHasBeenSet =
false;
814 bool m_periodHasBeenSet =
false;
815 bool m_unitHasBeenSet =
false;
816 bool m_evaluationPeriodsHasBeenSet =
false;
817 bool m_datapointsToAlarmHasBeenSet =
false;
818 bool m_thresholdHasBeenSet =
false;
819 bool m_comparisonOperatorHasBeenSet =
false;
820 bool m_treatMissingDataHasBeenSet =
false;
821 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
822 bool m_metricsHasBeenSet =
false;
823 bool m_tagsHasBeenSet =
false;
824 bool m_thresholdMetricIdHasBeenSet =
false;
825 bool m_evaluationWindowHasBeenSet =
false;
826 bool m_evaluationCriteriaHasBeenSet =
false;
827 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)
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
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
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 & 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