AWS SDK for C++

AWS SDK for C++ Version 1.11.854

Loading...
Searching...
No Matches
MetricAlarm.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/ComparisonOperator.h>
13#include <aws/monitoring/model/Dimension.h>
14#include <aws/monitoring/model/EvaluationCriteria.h>
15#include <aws/monitoring/model/EvaluationState.h>
16#include <aws/monitoring/model/EvaluationWindow.h>
17#include <aws/monitoring/model/MetricDataQuery.h>
18#include <aws/monitoring/model/StandardUnit.h>
19#include <aws/monitoring/model/StateValue.h>
20#include <aws/monitoring/model/Statistic.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Cbor {
27class CborValue;
28} // namespace Cbor
29} // namespace Utils
30namespace CloudWatch {
31namespace Model {
32
39 public:
40 AWS_CLOUDWATCH_API MetricAlarm() = default;
41 AWS_CLOUDWATCH_API MetricAlarm(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_CLOUDWATCH_API MetricAlarm& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
44
46
49 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
50 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
51 template <typename AlarmNameT = Aws::String>
52 void SetAlarmName(AlarmNameT&& value) {
53 m_alarmNameHasBeenSet = true;
54 m_alarmName = std::forward<AlarmNameT>(value);
55 }
56 template <typename AlarmNameT = Aws::String>
57 MetricAlarm& WithAlarmName(AlarmNameT&& value) {
58 SetAlarmName(std::forward<AlarmNameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetAlarmArn() const { return m_alarmArn; }
68 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
69 template <typename AlarmArnT = Aws::String>
70 void SetAlarmArn(AlarmArnT&& value) {
71 m_alarmArnHasBeenSet = true;
72 m_alarmArn = std::forward<AlarmArnT>(value);
73 }
74 template <typename AlarmArnT = Aws::String>
75 MetricAlarm& WithAlarmArn(AlarmArnT&& value) {
76 SetAlarmArn(std::forward<AlarmArnT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
86 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
87 template <typename AlarmDescriptionT = Aws::String>
88 void SetAlarmDescription(AlarmDescriptionT&& value) {
89 m_alarmDescriptionHasBeenSet = true;
90 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
91 }
92 template <typename AlarmDescriptionT = Aws::String>
93 MetricAlarm& WithAlarmDescription(AlarmDescriptionT&& value) {
94 SetAlarmDescription(std::forward<AlarmDescriptionT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetAlarmConfigurationUpdatedTimestamp() const { return m_alarmConfigurationUpdatedTimestamp; }
104 inline bool AlarmConfigurationUpdatedTimestampHasBeenSet() const { return m_alarmConfigurationUpdatedTimestampHasBeenSet; }
105 template <typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
106 void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) {
107 m_alarmConfigurationUpdatedTimestampHasBeenSet = true;
108 m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value);
109 }
110 template <typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
111 MetricAlarm& WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) {
112 SetAlarmConfigurationUpdatedTimestamp(std::forward<AlarmConfigurationUpdatedTimestampT>(value));
113 return *this;
114 }
116
118
122 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
123 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
124 inline void SetActionsEnabled(bool value) {
125 m_actionsEnabledHasBeenSet = true;
126 m_actionsEnabled = value;
127 }
128 inline MetricAlarm& WithActionsEnabled(bool value) {
129 SetActionsEnabled(value);
130 return *this;
131 }
133
135
140 inline const Aws::Vector<Aws::String>& GetOKActions() const { return m_oKActions; }
141 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
142 template <typename OKActionsT = Aws::Vector<Aws::String>>
143 void SetOKActions(OKActionsT&& value) {
144 m_oKActionsHasBeenSet = true;
145 m_oKActions = std::forward<OKActionsT>(value);
146 }
147 template <typename OKActionsT = Aws::Vector<Aws::String>>
148 MetricAlarm& WithOKActions(OKActionsT&& value) {
149 SetOKActions(std::forward<OKActionsT>(value));
150 return *this;
151 }
152 template <typename OKActionsT = Aws::String>
153 MetricAlarm& AddOKActions(OKActionsT&& value) {
154 m_oKActionsHasBeenSet = true;
155 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::Vector<Aws::String>& GetAlarmActions() const { return m_alarmActions; }
167 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
168 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
169 void SetAlarmActions(AlarmActionsT&& value) {
170 m_alarmActionsHasBeenSet = true;
171 m_alarmActions = std::forward<AlarmActionsT>(value);
172 }
173 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
174 MetricAlarm& WithAlarmActions(AlarmActionsT&& value) {
175 SetAlarmActions(std::forward<AlarmActionsT>(value));
176 return *this;
177 }
178 template <typename AlarmActionsT = Aws::String>
179 MetricAlarm& AddAlarmActions(AlarmActionsT&& value) {
180 m_alarmActionsHasBeenSet = true;
181 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
182 return *this;
183 }
185
187
192 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
193 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
194 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
195 void SetInsufficientDataActions(InsufficientDataActionsT&& value) {
196 m_insufficientDataActionsHasBeenSet = true;
197 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
198 }
199 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
200 MetricAlarm& WithInsufficientDataActions(InsufficientDataActionsT&& value) {
201 SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value));
202 return *this;
203 }
204 template <typename InsufficientDataActionsT = Aws::String>
205 MetricAlarm& AddInsufficientDataActions(InsufficientDataActionsT&& value) {
206 m_insufficientDataActionsHasBeenSet = true;
207 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
208 return *this;
209 }
211
213
216 inline StateValue GetStateValue() const { return m_stateValue; }
217 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
218 inline void SetStateValue(StateValue value) {
219 m_stateValueHasBeenSet = true;
220 m_stateValue = value;
221 }
223 SetStateValue(value);
224 return *this;
225 }
227
229
232 inline const Aws::String& GetStateReason() const { return m_stateReason; }
233 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
234 template <typename StateReasonT = Aws::String>
235 void SetStateReason(StateReasonT&& value) {
236 m_stateReasonHasBeenSet = true;
237 m_stateReason = std::forward<StateReasonT>(value);
238 }
239 template <typename StateReasonT = Aws::String>
240 MetricAlarm& WithStateReason(StateReasonT&& value) {
241 SetStateReason(std::forward<StateReasonT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::String& GetStateReasonData() const { return m_stateReasonData; }
251 inline bool StateReasonDataHasBeenSet() const { return m_stateReasonDataHasBeenSet; }
252 template <typename StateReasonDataT = Aws::String>
253 void SetStateReasonData(StateReasonDataT&& value) {
254 m_stateReasonDataHasBeenSet = true;
255 m_stateReasonData = std::forward<StateReasonDataT>(value);
256 }
257 template <typename StateReasonDataT = Aws::String>
258 MetricAlarm& WithStateReasonData(StateReasonDataT&& value) {
259 SetStateReasonData(std::forward<StateReasonDataT>(value));
260 return *this;
261 }
263
265
269 inline const Aws::Utils::DateTime& GetStateUpdatedTimestamp() const { return m_stateUpdatedTimestamp; }
270 inline bool StateUpdatedTimestampHasBeenSet() const { return m_stateUpdatedTimestampHasBeenSet; }
271 template <typename StateUpdatedTimestampT = Aws::Utils::DateTime>
272 void SetStateUpdatedTimestamp(StateUpdatedTimestampT&& value) {
273 m_stateUpdatedTimestampHasBeenSet = true;
274 m_stateUpdatedTimestamp = std::forward<StateUpdatedTimestampT>(value);
275 }
276 template <typename StateUpdatedTimestampT = Aws::Utils::DateTime>
277 MetricAlarm& WithStateUpdatedTimestamp(StateUpdatedTimestampT&& value) {
278 SetStateUpdatedTimestamp(std::forward<StateUpdatedTimestampT>(value));
279 return *this;
280 }
282
284
288 inline const Aws::String& GetMetricName() const { return m_metricName; }
289 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
290 template <typename MetricNameT = Aws::String>
291 void SetMetricName(MetricNameT&& value) {
292 m_metricNameHasBeenSet = true;
293 m_metricName = std::forward<MetricNameT>(value);
294 }
295 template <typename MetricNameT = Aws::String>
296 MetricAlarm& WithMetricName(MetricNameT&& value) {
297 SetMetricName(std::forward<MetricNameT>(value));
298 return *this;
299 }
301
303
306 inline const Aws::String& GetNamespace() const { return m_namespace; }
307 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
308 template <typename NamespaceT = Aws::String>
309 void SetNamespace(NamespaceT&& value) {
310 m_namespaceHasBeenSet = true;
311 m_namespace = std::forward<NamespaceT>(value);
312 }
313 template <typename NamespaceT = Aws::String>
314 MetricAlarm& WithNamespace(NamespaceT&& value) {
315 SetNamespace(std::forward<NamespaceT>(value));
316 return *this;
317 }
319
321
325 inline Statistic GetStatistic() const { return m_statistic; }
326 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
327 inline void SetStatistic(Statistic value) {
328 m_statisticHasBeenSet = true;
329 m_statistic = value;
330 }
332 SetStatistic(value);
333 return *this;
334 }
336
338
342 inline const Aws::String& GetExtendedStatistic() const { return m_extendedStatistic; }
343 inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; }
344 template <typename ExtendedStatisticT = Aws::String>
345 void SetExtendedStatistic(ExtendedStatisticT&& value) {
346 m_extendedStatisticHasBeenSet = true;
347 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
348 }
349 template <typename ExtendedStatisticT = Aws::String>
350 MetricAlarm& WithExtendedStatistic(ExtendedStatisticT&& value) {
351 SetExtendedStatistic(std::forward<ExtendedStatisticT>(value));
352 return *this;
353 }
355
357
360 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
361 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
362 template <typename DimensionsT = Aws::Vector<Dimension>>
363 void SetDimensions(DimensionsT&& value) {
364 m_dimensionsHasBeenSet = true;
365 m_dimensions = std::forward<DimensionsT>(value);
366 }
367 template <typename DimensionsT = Aws::Vector<Dimension>>
368 MetricAlarm& WithDimensions(DimensionsT&& value) {
369 SetDimensions(std::forward<DimensionsT>(value));
370 return *this;
371 }
372 template <typename DimensionsT = Dimension>
373 MetricAlarm& AddDimensions(DimensionsT&& value) {
374 m_dimensionsHasBeenSet = true;
375 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
376 return *this;
377 }
379
381
384 inline int64_t GetPeriod() const { return m_period; }
385 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
386 inline void SetPeriod(int64_t value) {
387 m_periodHasBeenSet = true;
388 m_period = value;
389 }
390 inline MetricAlarm& WithPeriod(int64_t value) {
391 SetPeriod(value);
392 return *this;
393 }
395
397
400 inline StandardUnit GetUnit() const { return m_unit; }
401 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
402 inline void SetUnit(StandardUnit value) {
403 m_unitHasBeenSet = true;
404 m_unit = value;
405 }
407 SetUnit(value);
408 return *this;
409 }
411
413
417 inline int64_t GetEvaluationPeriods() const { return m_evaluationPeriods; }
418 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
419 inline void SetEvaluationPeriods(int64_t value) {
420 m_evaluationPeriodsHasBeenSet = true;
421 m_evaluationPeriods = value;
422 }
423 inline MetricAlarm& WithEvaluationPeriods(int64_t value) {
425 return *this;
426 }
428
430
433 inline int64_t GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
434 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
435 inline void SetDatapointsToAlarm(int64_t value) {
436 m_datapointsToAlarmHasBeenSet = true;
437 m_datapointsToAlarm = value;
438 }
439 inline MetricAlarm& WithDatapointsToAlarm(int64_t value) {
441 return *this;
442 }
444
446
449 inline double GetThreshold() const { return m_threshold; }
450 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
451 inline void SetThreshold(double value) {
452 m_thresholdHasBeenSet = true;
453 m_threshold = value;
454 }
455 inline MetricAlarm& WithThreshold(double value) {
456 SetThreshold(value);
457 return *this;
458 }
460
462
466 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
467 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
469 m_comparisonOperatorHasBeenSet = true;
470 m_comparisonOperator = value;
471 }
474 return *this;
475 }
477
479
488 inline const Aws::String& GetTreatMissingData() const { return m_treatMissingData; }
489 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
490 template <typename TreatMissingDataT = Aws::String>
491 void SetTreatMissingData(TreatMissingDataT&& value) {
492 m_treatMissingDataHasBeenSet = true;
493 m_treatMissingData = std::forward<TreatMissingDataT>(value);
494 }
495 template <typename TreatMissingDataT = Aws::String>
496 MetricAlarm& WithTreatMissingData(TreatMissingDataT&& value) {
497 SetTreatMissingData(std::forward<TreatMissingDataT>(value));
498 return *this;
499 }
501
503
510 inline const Aws::String& GetEvaluateLowSampleCountPercentile() const { return m_evaluateLowSampleCountPercentile; }
511 inline bool EvaluateLowSampleCountPercentileHasBeenSet() const { return m_evaluateLowSampleCountPercentileHasBeenSet; }
512 template <typename EvaluateLowSampleCountPercentileT = Aws::String>
513 void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) {
514 m_evaluateLowSampleCountPercentileHasBeenSet = true;
515 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
516 }
517 template <typename EvaluateLowSampleCountPercentileT = Aws::String>
518 MetricAlarm& WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) {
519 SetEvaluateLowSampleCountPercentile(std::forward<EvaluateLowSampleCountPercentileT>(value));
520 return *this;
521 }
523
525
532 inline const Aws::Vector<MetricDataQuery>& GetMetrics() const { return m_metrics; }
533 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
534 template <typename MetricsT = Aws::Vector<MetricDataQuery>>
535 void SetMetrics(MetricsT&& value) {
536 m_metricsHasBeenSet = true;
537 m_metrics = std::forward<MetricsT>(value);
538 }
539 template <typename MetricsT = Aws::Vector<MetricDataQuery>>
540 MetricAlarm& WithMetrics(MetricsT&& value) {
541 SetMetrics(std::forward<MetricsT>(value));
542 return *this;
543 }
544 template <typename MetricsT = MetricDataQuery>
545 MetricAlarm& AddMetrics(MetricsT&& value) {
546 m_metricsHasBeenSet = true;
547 m_metrics.emplace_back(std::forward<MetricsT>(value));
548 return *this;
549 }
551
553
558 inline const Aws::String& GetThresholdMetricId() const { return m_thresholdMetricId; }
559 inline bool ThresholdMetricIdHasBeenSet() const { return m_thresholdMetricIdHasBeenSet; }
560 template <typename ThresholdMetricIdT = Aws::String>
561 void SetThresholdMetricId(ThresholdMetricIdT&& value) {
562 m_thresholdMetricIdHasBeenSet = true;
563 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
564 }
565 template <typename ThresholdMetricIdT = Aws::String>
566 MetricAlarm& WithThresholdMetricId(ThresholdMetricIdT&& value) {
567 SetThresholdMetricId(std::forward<ThresholdMetricIdT>(value));
568 return *this;
569 }
571
573
585 inline EvaluationState GetEvaluationState() const { return m_evaluationState; }
586 inline bool EvaluationStateHasBeenSet() const { return m_evaluationStateHasBeenSet; }
588 m_evaluationStateHasBeenSet = true;
589 m_evaluationState = value;
590 }
592 SetEvaluationState(value);
593 return *this;
594 }
596
598
602 inline const Aws::Utils::DateTime& GetStateTransitionedTimestamp() const { return m_stateTransitionedTimestamp; }
603 inline bool StateTransitionedTimestampHasBeenSet() const { return m_stateTransitionedTimestampHasBeenSet; }
604 template <typename StateTransitionedTimestampT = Aws::Utils::DateTime>
605 void SetStateTransitionedTimestamp(StateTransitionedTimestampT&& value) {
606 m_stateTransitionedTimestampHasBeenSet = true;
607 m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value);
608 }
609 template <typename StateTransitionedTimestampT = Aws::Utils::DateTime>
610 MetricAlarm& WithStateTransitionedTimestamp(StateTransitionedTimestampT&& value) {
611 SetStateTransitionedTimestamp(std::forward<StateTransitionedTimestampT>(value));
612 return *this;
613 }
615
617
624 inline const EvaluationWindow& GetEvaluationWindow() const { return m_evaluationWindow; }
625 inline bool EvaluationWindowHasBeenSet() const { return m_evaluationWindowHasBeenSet; }
626 template <typename EvaluationWindowT = EvaluationWindow>
627 void SetEvaluationWindow(EvaluationWindowT&& value) {
628 m_evaluationWindowHasBeenSet = true;
629 m_evaluationWindow = std::forward<EvaluationWindowT>(value);
630 }
631 template <typename EvaluationWindowT = EvaluationWindow>
632 MetricAlarm& WithEvaluationWindow(EvaluationWindowT&& value) {
633 SetEvaluationWindow(std::forward<EvaluationWindowT>(value));
634 return *this;
635 }
637
639
642 inline const EvaluationCriteria& GetEvaluationCriteria() const { return m_evaluationCriteria; }
643 inline bool EvaluationCriteriaHasBeenSet() const { return m_evaluationCriteriaHasBeenSet; }
644 template <typename EvaluationCriteriaT = EvaluationCriteria>
645 void SetEvaluationCriteria(EvaluationCriteriaT&& value) {
646 m_evaluationCriteriaHasBeenSet = true;
647 m_evaluationCriteria = std::forward<EvaluationCriteriaT>(value);
648 }
649 template <typename EvaluationCriteriaT = EvaluationCriteria>
650 MetricAlarm& WithEvaluationCriteria(EvaluationCriteriaT&& value) {
651 SetEvaluationCriteria(std::forward<EvaluationCriteriaT>(value));
652 return *this;
653 }
655
657
660 inline int64_t GetEvaluationInterval() const { return m_evaluationInterval; }
661 inline bool EvaluationIntervalHasBeenSet() const { return m_evaluationIntervalHasBeenSet; }
662 inline void SetEvaluationInterval(int64_t value) {
663 m_evaluationIntervalHasBeenSet = true;
664 m_evaluationInterval = value;
665 }
666 inline MetricAlarm& WithEvaluationInterval(int64_t value) {
668 return *this;
669 }
671 private:
672 Aws::String m_alarmName;
673
674 Aws::String m_alarmArn;
675
676 Aws::String m_alarmDescription;
677
678 Aws::Utils::DateTime m_alarmConfigurationUpdatedTimestamp{};
679
680 bool m_actionsEnabled{false};
681
682 Aws::Vector<Aws::String> m_oKActions;
683
684 Aws::Vector<Aws::String> m_alarmActions;
685
686 Aws::Vector<Aws::String> m_insufficientDataActions;
687
688 StateValue m_stateValue{StateValue::NOT_SET};
689
690 Aws::String m_stateReason;
691
692 Aws::String m_stateReasonData;
693
694 Aws::Utils::DateTime m_stateUpdatedTimestamp{};
695
696 Aws::String m_metricName;
697
698 Aws::String m_namespace;
699
700 Statistic m_statistic{Statistic::NOT_SET};
701
702 Aws::String m_extendedStatistic;
703
704 Aws::Vector<Dimension> m_dimensions;
705
706 int64_t m_period{0};
707
709
710 int64_t m_evaluationPeriods{0};
711
712 int64_t m_datapointsToAlarm{0};
713
714 double m_threshold{0.0};
715
717
718 Aws::String m_treatMissingData;
719
720 Aws::String m_evaluateLowSampleCountPercentile;
721
723
724 Aws::String m_thresholdMetricId;
725
726 EvaluationState m_evaluationState{EvaluationState::NOT_SET};
727
728 Aws::Utils::DateTime m_stateTransitionedTimestamp{};
729
730 EvaluationWindow m_evaluationWindow;
731
732 EvaluationCriteria m_evaluationCriteria;
733
734 int64_t m_evaluationInterval{0};
735 bool m_alarmNameHasBeenSet = false;
736 bool m_alarmArnHasBeenSet = false;
737 bool m_alarmDescriptionHasBeenSet = false;
738 bool m_alarmConfigurationUpdatedTimestampHasBeenSet = false;
739 bool m_actionsEnabledHasBeenSet = false;
740 bool m_oKActionsHasBeenSet = false;
741 bool m_alarmActionsHasBeenSet = false;
742 bool m_insufficientDataActionsHasBeenSet = false;
743 bool m_stateValueHasBeenSet = false;
744 bool m_stateReasonHasBeenSet = false;
745 bool m_stateReasonDataHasBeenSet = false;
746 bool m_stateUpdatedTimestampHasBeenSet = false;
747 bool m_metricNameHasBeenSet = false;
748 bool m_namespaceHasBeenSet = false;
749 bool m_statisticHasBeenSet = false;
750 bool m_extendedStatisticHasBeenSet = false;
751 bool m_dimensionsHasBeenSet = false;
752 bool m_periodHasBeenSet = false;
753 bool m_unitHasBeenSet = false;
754 bool m_evaluationPeriodsHasBeenSet = false;
755 bool m_datapointsToAlarmHasBeenSet = false;
756 bool m_thresholdHasBeenSet = false;
757 bool m_comparisonOperatorHasBeenSet = false;
758 bool m_treatMissingDataHasBeenSet = false;
759 bool m_evaluateLowSampleCountPercentileHasBeenSet = false;
760 bool m_metricsHasBeenSet = false;
761 bool m_thresholdMetricIdHasBeenSet = false;
762 bool m_evaluationStateHasBeenSet = false;
763 bool m_stateTransitionedTimestampHasBeenSet = false;
764 bool m_evaluationWindowHasBeenSet = false;
765 bool m_evaluationCriteriaHasBeenSet = false;
766 bool m_evaluationIntervalHasBeenSet = false;
767};
768
769} // namespace Model
770} // namespace CloudWatch
771} // namespace Aws
EvaluationState GetEvaluationState() const
MetricAlarm & WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
void SetTreatMissingData(TreatMissingDataT &&value)
const Aws::String & GetStateReasonData() const
void SetAlarmName(AlarmNameT &&value)
Definition MetricAlarm.h:52
void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
void SetNamespace(NamespaceT &&value)
MetricAlarm & WithStateValue(StateValue value)
AWS_CLOUDWATCH_API MetricAlarm & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
MetricAlarm & WithEvaluationPeriods(int64_t value)
void SetAlarmArn(AlarmArnT &&value)
Definition MetricAlarm.h:70
const Aws::Vector< Aws::String > & GetOKActions() const
MetricAlarm & WithDimensions(DimensionsT &&value)
MetricAlarm & WithThreshold(double value)
MetricAlarm & WithOKActions(OKActionsT &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
MetricAlarm & WithComparisonOperator(ComparisonOperator value)
MetricAlarm & WithEvaluationInterval(int64_t value)
MetricAlarm & WithTreatMissingData(TreatMissingDataT &&value)
const Aws::String & GetNamespace() const
const Aws::String & GetMetricName() const
MetricAlarm & WithExtendedStatistic(ExtendedStatisticT &&value)
ComparisonOperator GetComparisonOperator() const
MetricAlarm & WithEvaluationState(EvaluationState value)
void SetDimensions(DimensionsT &&value)
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
MetricAlarm & WithAlarmActions(AlarmActionsT &&value)
void SetExtendedStatistic(ExtendedStatisticT &&value)
MetricAlarm & AddOKActions(OKActionsT &&value)
AWS_CLOUDWATCH_API MetricAlarm(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
MetricAlarm & WithPeriod(int64_t value)
void SetEvaluationWindow(EvaluationWindowT &&value)
MetricAlarm & WithStateReason(StateReasonT &&value)
MetricAlarm & WithAlarmDescription(AlarmDescriptionT &&value)
Definition MetricAlarm.h:93
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
const Aws::String & GetThresholdMetricId() const
void SetEvaluationInterval(int64_t value)
void SetMetrics(MetricsT &&value)
const Aws::String & GetStateReason() const
AWS_CLOUDWATCH_API MetricAlarm()=default
void SetMetricName(MetricNameT &&value)
MetricAlarm & WithMetrics(MetricsT &&value)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
void SetDatapointsToAlarm(int64_t value)
MetricAlarm & WithEvaluationCriteria(EvaluationCriteriaT &&value)
bool AlarmConfigurationUpdatedTimestampHasBeenSet() const
bool EvaluateLowSampleCountPercentileHasBeenSet() const
const Aws::String & GetTreatMissingData() const
MetricAlarm & AddMetrics(MetricsT &&value)
void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
MetricAlarm & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
const EvaluationWindow & GetEvaluationWindow() const
MetricAlarm & WithInsufficientDataActions(InsufficientDataActionsT &&value)
void SetComparisonOperator(ComparisonOperator value)
void SetAlarmDescription(AlarmDescriptionT &&value)
Definition MetricAlarm.h:88
const Aws::Vector< Dimension > & GetDimensions() const
const Aws::String & GetAlarmArn() const
Definition MetricAlarm.h:67
const Aws::Vector< MetricDataQuery > & GetMetrics() const
MetricAlarm & WithDatapointsToAlarm(int64_t value)
void SetStateReasonData(StateReasonDataT &&value)
void SetUnit(StandardUnit value)
MetricAlarm & AddDimensions(DimensionsT &&value)
MetricAlarm & WithAlarmName(AlarmNameT &&value)
Definition MetricAlarm.h:57
const Aws::String & GetExtendedStatistic() const
void SetStateReason(StateReasonT &&value)
void SetEvaluationPeriods(int64_t value)
void SetEvaluationState(EvaluationState value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
void SetStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
MetricAlarm & WithThresholdMetricId(ThresholdMetricIdT &&value)
const Aws::String & GetAlarmDescription() const
Definition MetricAlarm.h:85
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
MetricAlarm & WithActionsEnabled(bool value)
MetricAlarm & WithUnit(StandardUnit value)
MetricAlarm & WithMetricName(MetricNameT &&value)
MetricAlarm & WithStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
MetricAlarm & WithEvaluationWindow(EvaluationWindowT &&value)
MetricAlarm & AddAlarmActions(AlarmActionsT &&value)
void SetOKActions(OKActionsT &&value)
const EvaluationCriteria & GetEvaluationCriteria() const
MetricAlarm & WithStatistic(Statistic value)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
const Aws::String & GetEvaluateLowSampleCountPercentile() const
const Aws::String & GetAlarmName() const
Definition MetricAlarm.h:49
MetricAlarm & WithStateReasonData(StateReasonDataT &&value)
MetricAlarm & WithAlarmArn(AlarmArnT &&value)
Definition MetricAlarm.h:75
void SetStatistic(Statistic value)
void SetThresholdMetricId(ThresholdMetricIdT &&value)
void SetAlarmActions(AlarmActionsT &&value)
void SetEvaluationCriteria(EvaluationCriteriaT &&value)
bool StateTransitionedTimestampHasBeenSet() const
MetricAlarm & WithStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
MetricAlarm & AddInsufficientDataActions(InsufficientDataActionsT &&value)
void SetStateValue(StateValue value)
MetricAlarm & WithNamespace(NamespaceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector