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/MetricDataQuery.h>
15#include <aws/monitoring/model/StandardUnit.h>
16#include <aws/monitoring/model/Statistic.h>
17#include <aws/monitoring/model/Tag.h>
49 template <
typename AlarmNameT = Aws::String>
51 m_alarmNameHasBeenSet =
true;
52 m_alarmName = std::forward<AlarmNameT>(value);
54 template <
typename AlarmNameT = Aws::String>
67 template <
typename AlarmDescriptionT = Aws::String>
69 m_alarmDescriptionHasBeenSet =
true;
70 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
72 template <
typename AlarmDescriptionT = Aws::String>
87 m_actionsEnabledHasBeenSet =
true;
88 m_actionsEnabled = value;
131 template <
typename OKActionsT = Aws::Vector<Aws::String>>
133 m_oKActionsHasBeenSet =
true;
134 m_oKActions = std::forward<OKActionsT>(value);
136 template <
typename OKActionsT = Aws::Vector<Aws::String>>
141 template <
typename OKActionsT = Aws::String>
143 m_oKActionsHasBeenSet =
true;
144 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
187 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
189 m_alarmActionsHasBeenSet =
true;
190 m_alarmActions = std::forward<AlarmActionsT>(value);
192 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
197 template <
typename AlarmActionsT = Aws::String>
199 m_alarmActionsHasBeenSet =
true;
200 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
241 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
243 m_insufficientDataActionsHasBeenSet =
true;
244 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
246 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
251 template <
typename InsufficientDataActionsT = Aws::String>
253 m_insufficientDataActionsHasBeenSet =
true;
254 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
273 template <
typename MetricNameT = Aws::String>
275 m_metricNameHasBeenSet =
true;
276 m_metricName = std::forward<MetricNameT>(value);
278 template <
typename MetricNameT = Aws::String>
292 template <
typename NamespaceT = Aws::String>
294 m_namespaceHasBeenSet =
true;
295 m_namespace = std::forward<NamespaceT>(value);
297 template <
typename NamespaceT = Aws::String>
315 m_statisticHasBeenSet =
true;
346 template <
typename ExtendedStatisticT = Aws::String>
348 m_extendedStatisticHasBeenSet =
true;
349 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
351 template <
typename ExtendedStatisticT = Aws::String>
364 template <
typename DimensionsT = Aws::Vector<Dimension>>
366 m_dimensionsHasBeenSet =
true;
367 m_dimensions = std::forward<DimensionsT>(value);
369 template <
typename DimensionsT = Aws::Vector<Dimension>>
374 template <
typename DimensionsT = Dimension>
376 m_dimensionsHasBeenSet =
true;
377 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
408 m_periodHasBeenSet =
true;
439 m_unitHasBeenSet =
true;
458 m_evaluationPeriodsHasBeenSet =
true;
459 m_evaluationPeriods = value;
478 m_datapointsToAlarmHasBeenSet =
true;
479 m_datapointsToAlarm = value;
496 m_thresholdHasBeenSet =
true;
516 m_comparisonOperatorHasBeenSet =
true;
517 m_comparisonOperator = value;
542 template <
typename TreatMissingDataT = Aws::String>
544 m_treatMissingDataHasBeenSet =
true;
545 m_treatMissingData = std::forward<TreatMissingDataT>(value);
547 template <
typename TreatMissingDataT = Aws::String>
568 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
570 m_evaluateLowSampleCountPercentileHasBeenSet =
true;
571 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
573 template <
typename EvaluateLowSampleCountPercentileT = Aws::String>
601 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
603 m_metricsHasBeenSet =
true;
604 m_metrics = std::forward<MetricsT>(value);
606 template <
typename MetricsT = Aws::Vector<MetricDataQuery>>
611 template <
typename MetricsT = MetricDataQuery>
613 m_metricsHasBeenSet =
true;
614 m_metrics.emplace_back(std::forward<MetricsT>(value));
638 template <
typename TagsT = Aws::Vector<Tag>>
640 m_tagsHasBeenSet =
true;
641 m_tags = std::forward<TagsT>(value);
643 template <
typename TagsT = Aws::Vector<Tag>>
645 SetTags(std::forward<TagsT>(value));
648 template <
typename TagsT = Tag>
650 m_tagsHasBeenSet =
true;
651 m_tags.emplace_back(std::forward<TagsT>(value));
666 template <
typename ThresholdMetricIdT = Aws::String>
668 m_thresholdMetricIdHasBeenSet =
true;
669 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
671 template <
typename ThresholdMetricIdT = Aws::String>
695 template <
typename EvaluationCriteriaT = EvaluationCriteria>
697 m_evaluationCriteriaHasBeenSet =
true;
698 m_evaluationCriteria = std::forward<EvaluationCriteriaT>(value);
700 template <
typename EvaluationCriteriaT = EvaluationCriteria>
717 m_evaluationIntervalHasBeenSet =
true;
718 m_evaluationInterval = value;
730 bool m_actionsEnabled{
false};
752 int m_evaluationPeriods{0};
754 int m_datapointsToAlarm{0};
756 double m_threshold{0.0};
770 EvaluationCriteria m_evaluationCriteria;
772 int m_evaluationInterval{0};
773 bool m_alarmNameHasBeenSet =
false;
774 bool m_alarmDescriptionHasBeenSet =
false;
775 bool m_actionsEnabledHasBeenSet =
false;
776 bool m_oKActionsHasBeenSet =
false;
777 bool m_alarmActionsHasBeenSet =
false;
778 bool m_insufficientDataActionsHasBeenSet =
false;
779 bool m_metricNameHasBeenSet =
false;
780 bool m_namespaceHasBeenSet =
false;
781 bool m_statisticHasBeenSet =
false;
782 bool m_extendedStatisticHasBeenSet =
false;
783 bool m_dimensionsHasBeenSet =
false;
784 bool m_periodHasBeenSet =
false;
785 bool m_unitHasBeenSet =
false;
786 bool m_evaluationPeriodsHasBeenSet =
false;
787 bool m_datapointsToAlarmHasBeenSet =
false;
788 bool m_thresholdHasBeenSet =
false;
789 bool m_comparisonOperatorHasBeenSet =
false;
790 bool m_treatMissingDataHasBeenSet =
false;
791 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
792 bool m_metricsHasBeenSet =
false;
793 bool m_tagsHasBeenSet =
false;
794 bool m_thresholdMetricIdHasBeenSet =
false;
795 bool m_evaluationCriteriaHasBeenSet =
false;
796 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)
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
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 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)
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