AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricAlarm.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/monitoring/model/StateValue.h>
13#include <aws/monitoring/model/Statistic.h>
14#include <aws/monitoring/model/StandardUnit.h>
15#include <aws/monitoring/model/ComparisonOperator.h>
16#include <aws/monitoring/model/EvaluationState.h>
17#include <aws/monitoring/model/Dimension.h>
18#include <aws/monitoring/model/MetricDataQuery.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Xml
26{
27 class XmlNode;
28} // namespace Xml
29} // namespace Utils
30namespace CloudWatch
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_CLOUDWATCH_API MetricAlarm();
44 AWS_CLOUDWATCH_API MetricAlarm(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_CLOUDWATCH_API MetricAlarm& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
56 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
57 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
58 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
59 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
60 inline MetricAlarm& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
61 inline MetricAlarm& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
62 inline MetricAlarm& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
64
66
69 inline const Aws::String& GetAlarmArn() const{ return m_alarmArn; }
70 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
71 inline void SetAlarmArn(const Aws::String& value) { m_alarmArnHasBeenSet = true; m_alarmArn = value; }
72 inline void SetAlarmArn(Aws::String&& value) { m_alarmArnHasBeenSet = true; m_alarmArn = std::move(value); }
73 inline void SetAlarmArn(const char* value) { m_alarmArnHasBeenSet = true; m_alarmArn.assign(value); }
74 inline MetricAlarm& WithAlarmArn(const Aws::String& value) { SetAlarmArn(value); return *this;}
75 inline MetricAlarm& WithAlarmArn(Aws::String&& value) { SetAlarmArn(std::move(value)); return *this;}
76 inline MetricAlarm& WithAlarmArn(const char* value) { SetAlarmArn(value); return *this;}
78
80
83 inline const Aws::String& GetAlarmDescription() const{ return m_alarmDescription; }
84 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
85 inline void SetAlarmDescription(const Aws::String& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = value; }
86 inline void SetAlarmDescription(Aws::String&& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = std::move(value); }
87 inline void SetAlarmDescription(const char* value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription.assign(value); }
88 inline MetricAlarm& WithAlarmDescription(const Aws::String& value) { SetAlarmDescription(value); return *this;}
89 inline MetricAlarm& WithAlarmDescription(Aws::String&& value) { SetAlarmDescription(std::move(value)); return *this;}
90 inline MetricAlarm& WithAlarmDescription(const char* value) { SetAlarmDescription(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetAlarmConfigurationUpdatedTimestamp() const{ return m_alarmConfigurationUpdatedTimestamp; }
98 inline bool AlarmConfigurationUpdatedTimestampHasBeenSet() const { return m_alarmConfigurationUpdatedTimestampHasBeenSet; }
99 inline void SetAlarmConfigurationUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_alarmConfigurationUpdatedTimestampHasBeenSet = true; m_alarmConfigurationUpdatedTimestamp = value; }
100 inline void SetAlarmConfigurationUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_alarmConfigurationUpdatedTimestampHasBeenSet = true; m_alarmConfigurationUpdatedTimestamp = std::move(value); }
104
106
110 inline bool GetActionsEnabled() const{ return m_actionsEnabled; }
111 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
112 inline void SetActionsEnabled(bool value) { m_actionsEnabledHasBeenSet = true; m_actionsEnabled = value; }
113 inline MetricAlarm& WithActionsEnabled(bool value) { SetActionsEnabled(value); return *this;}
115
117
122 inline const Aws::Vector<Aws::String>& GetOKActions() const{ return m_oKActions; }
123 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
124 inline void SetOKActions(const Aws::Vector<Aws::String>& value) { m_oKActionsHasBeenSet = true; m_oKActions = value; }
125 inline void SetOKActions(Aws::Vector<Aws::String>&& value) { m_oKActionsHasBeenSet = true; m_oKActions = std::move(value); }
126 inline MetricAlarm& WithOKActions(const Aws::Vector<Aws::String>& value) { SetOKActions(value); return *this;}
127 inline MetricAlarm& WithOKActions(Aws::Vector<Aws::String>&& value) { SetOKActions(std::move(value)); return *this;}
128 inline MetricAlarm& AddOKActions(const Aws::String& value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(value); return *this; }
129 inline MetricAlarm& AddOKActions(Aws::String&& value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(std::move(value)); return *this; }
130 inline MetricAlarm& AddOKActions(const char* value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(value); return *this; }
132
134
139 inline const Aws::Vector<Aws::String>& GetAlarmActions() const{ return m_alarmActions; }
140 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
141 inline void SetAlarmActions(const Aws::Vector<Aws::String>& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = value; }
142 inline void SetAlarmActions(Aws::Vector<Aws::String>&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::move(value); }
143 inline MetricAlarm& WithAlarmActions(const Aws::Vector<Aws::String>& value) { SetAlarmActions(value); return *this;}
144 inline MetricAlarm& WithAlarmActions(Aws::Vector<Aws::String>&& value) { SetAlarmActions(std::move(value)); return *this;}
145 inline MetricAlarm& AddAlarmActions(const Aws::String& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
146 inline MetricAlarm& AddAlarmActions(Aws::String&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(std::move(value)); return *this; }
147 inline MetricAlarm& AddAlarmActions(const char* value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
149
151
156 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const{ return m_insufficientDataActions; }
157 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
158 inline void SetInsufficientDataActions(const Aws::Vector<Aws::String>& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = value; }
159 inline void SetInsufficientDataActions(Aws::Vector<Aws::String>&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = std::move(value); }
162 inline MetricAlarm& AddInsufficientDataActions(const Aws::String& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(value); return *this; }
163 inline MetricAlarm& AddInsufficientDataActions(Aws::String&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(std::move(value)); return *this; }
164 inline MetricAlarm& AddInsufficientDataActions(const char* value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(value); return *this; }
166
168
171 inline const StateValue& GetStateValue() const{ return m_stateValue; }
172 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
173 inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
174 inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::move(value); }
175 inline MetricAlarm& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
176 inline MetricAlarm& WithStateValue(StateValue&& value) { SetStateValue(std::move(value)); return *this;}
178
180
183 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
184 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
185 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
186 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
187 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
188 inline MetricAlarm& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
189 inline MetricAlarm& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
190 inline MetricAlarm& WithStateReason(const char* value) { SetStateReason(value); return *this;}
192
194
197 inline const Aws::String& GetStateReasonData() const{ return m_stateReasonData; }
198 inline bool StateReasonDataHasBeenSet() const { return m_stateReasonDataHasBeenSet; }
199 inline void SetStateReasonData(const Aws::String& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = value; }
200 inline void SetStateReasonData(Aws::String&& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = std::move(value); }
201 inline void SetStateReasonData(const char* value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData.assign(value); }
202 inline MetricAlarm& WithStateReasonData(const Aws::String& value) { SetStateReasonData(value); return *this;}
203 inline MetricAlarm& WithStateReasonData(Aws::String&& value) { SetStateReasonData(std::move(value)); return *this;}
204 inline MetricAlarm& WithStateReasonData(const char* value) { SetStateReasonData(value); return *this;}
206
208
212 inline const Aws::Utils::DateTime& GetStateUpdatedTimestamp() const{ return m_stateUpdatedTimestamp; }
213 inline bool StateUpdatedTimestampHasBeenSet() const { return m_stateUpdatedTimestampHasBeenSet; }
214 inline void SetStateUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_stateUpdatedTimestampHasBeenSet = true; m_stateUpdatedTimestamp = value; }
215 inline void SetStateUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_stateUpdatedTimestampHasBeenSet = true; m_stateUpdatedTimestamp = std::move(value); }
217 inline MetricAlarm& WithStateUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetStateUpdatedTimestamp(std::move(value)); return *this;}
219
221
225 inline const Aws::String& GetMetricName() const{ return m_metricName; }
226 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
227 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
228 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
229 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
230 inline MetricAlarm& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
231 inline MetricAlarm& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
232 inline MetricAlarm& WithMetricName(const char* value) { SetMetricName(value); return *this;}
234
236
239 inline const Aws::String& GetNamespace() const{ return m_namespace; }
240 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
241 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
242 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
243 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
244 inline MetricAlarm& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
245 inline MetricAlarm& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
246 inline MetricAlarm& WithNamespace(const char* value) { SetNamespace(value); return *this;}
248
250
254 inline const Statistic& GetStatistic() const{ return m_statistic; }
255 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
256 inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
257 inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
258 inline MetricAlarm& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
259 inline MetricAlarm& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
261
263
267 inline const Aws::String& GetExtendedStatistic() const{ return m_extendedStatistic; }
268 inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; }
269 inline void SetExtendedStatistic(const Aws::String& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = value; }
270 inline void SetExtendedStatistic(Aws::String&& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = std::move(value); }
271 inline void SetExtendedStatistic(const char* value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic.assign(value); }
272 inline MetricAlarm& WithExtendedStatistic(const Aws::String& value) { SetExtendedStatistic(value); return *this;}
273 inline MetricAlarm& WithExtendedStatistic(Aws::String&& value) { SetExtendedStatistic(std::move(value)); return *this;}
274 inline MetricAlarm& WithExtendedStatistic(const char* value) { SetExtendedStatistic(value); return *this;}
276
278
281 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
282 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
283 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
284 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
285 inline MetricAlarm& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
286 inline MetricAlarm& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
287 inline MetricAlarm& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
288 inline MetricAlarm& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
290
292
295 inline int GetPeriod() const{ return m_period; }
296 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
297 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
298 inline MetricAlarm& WithPeriod(int value) { SetPeriod(value); return *this;}
300
302
305 inline const StandardUnit& GetUnit() const{ return m_unit; }
306 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
307 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
308 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
309 inline MetricAlarm& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
310 inline MetricAlarm& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
312
314
318 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
319 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
320 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
321 inline MetricAlarm& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
323
325
328 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
329 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
330 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
331 inline MetricAlarm& WithDatapointsToAlarm(int value) { SetDatapointsToAlarm(value); return *this;}
333
335
338 inline double GetThreshold() const{ return m_threshold; }
339 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
340 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
341 inline MetricAlarm& WithThreshold(double value) { SetThreshold(value); return *this;}
343
345
349 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
350 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
351 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
352 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
353 inline MetricAlarm& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
354 inline MetricAlarm& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
356
358
366 inline const Aws::String& GetTreatMissingData() const{ return m_treatMissingData; }
367 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
368 inline void SetTreatMissingData(const Aws::String& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
369 inline void SetTreatMissingData(Aws::String&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
370 inline void SetTreatMissingData(const char* value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData.assign(value); }
371 inline MetricAlarm& WithTreatMissingData(const Aws::String& value) { SetTreatMissingData(value); return *this;}
372 inline MetricAlarm& WithTreatMissingData(Aws::String&& value) { SetTreatMissingData(std::move(value)); return *this;}
373 inline MetricAlarm& WithTreatMissingData(const char* value) { SetTreatMissingData(value); return *this;}
375
377
384 inline const Aws::String& GetEvaluateLowSampleCountPercentile() const{ return m_evaluateLowSampleCountPercentile; }
385 inline bool EvaluateLowSampleCountPercentileHasBeenSet() const { return m_evaluateLowSampleCountPercentileHasBeenSet; }
386 inline void SetEvaluateLowSampleCountPercentile(const Aws::String& value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile = value; }
387 inline void SetEvaluateLowSampleCountPercentile(Aws::String&& value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile = std::move(value); }
388 inline void SetEvaluateLowSampleCountPercentile(const char* value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile.assign(value); }
393
395
402 inline const Aws::Vector<MetricDataQuery>& GetMetrics() const{ return m_metrics; }
403 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
404 inline void SetMetrics(const Aws::Vector<MetricDataQuery>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
405 inline void SetMetrics(Aws::Vector<MetricDataQuery>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
406 inline MetricAlarm& WithMetrics(const Aws::Vector<MetricDataQuery>& value) { SetMetrics(value); return *this;}
407 inline MetricAlarm& WithMetrics(Aws::Vector<MetricDataQuery>&& value) { SetMetrics(std::move(value)); return *this;}
408 inline MetricAlarm& AddMetrics(const MetricDataQuery& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
409 inline MetricAlarm& AddMetrics(MetricDataQuery&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
411
413
418 inline const Aws::String& GetThresholdMetricId() const{ return m_thresholdMetricId; }
419 inline bool ThresholdMetricIdHasBeenSet() const { return m_thresholdMetricIdHasBeenSet; }
420 inline void SetThresholdMetricId(const Aws::String& value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId = value; }
421 inline void SetThresholdMetricId(Aws::String&& value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId = std::move(value); }
422 inline void SetThresholdMetricId(const char* value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId.assign(value); }
423 inline MetricAlarm& WithThresholdMetricId(const Aws::String& value) { SetThresholdMetricId(value); return *this;}
424 inline MetricAlarm& WithThresholdMetricId(Aws::String&& value) { SetThresholdMetricId(std::move(value)); return *this;}
425 inline MetricAlarm& WithThresholdMetricId(const char* value) { SetThresholdMetricId(value); return *this;}
427
429
436 inline const EvaluationState& GetEvaluationState() const{ return m_evaluationState; }
437 inline bool EvaluationStateHasBeenSet() const { return m_evaluationStateHasBeenSet; }
438 inline void SetEvaluationState(const EvaluationState& value) { m_evaluationStateHasBeenSet = true; m_evaluationState = value; }
439 inline void SetEvaluationState(EvaluationState&& value) { m_evaluationStateHasBeenSet = true; m_evaluationState = std::move(value); }
440 inline MetricAlarm& WithEvaluationState(const EvaluationState& value) { SetEvaluationState(value); return *this;}
441 inline MetricAlarm& WithEvaluationState(EvaluationState&& value) { SetEvaluationState(std::move(value)); return *this;}
443
445
449 inline const Aws::Utils::DateTime& GetStateTransitionedTimestamp() const{ return m_stateTransitionedTimestamp; }
450 inline bool StateTransitionedTimestampHasBeenSet() const { return m_stateTransitionedTimestampHasBeenSet; }
451 inline void SetStateTransitionedTimestamp(const Aws::Utils::DateTime& value) { m_stateTransitionedTimestampHasBeenSet = true; m_stateTransitionedTimestamp = value; }
452 inline void SetStateTransitionedTimestamp(Aws::Utils::DateTime&& value) { m_stateTransitionedTimestampHasBeenSet = true; m_stateTransitionedTimestamp = std::move(value); }
456 private:
457
458 Aws::String m_alarmName;
459 bool m_alarmNameHasBeenSet = false;
460
461 Aws::String m_alarmArn;
462 bool m_alarmArnHasBeenSet = false;
463
464 Aws::String m_alarmDescription;
465 bool m_alarmDescriptionHasBeenSet = false;
466
467 Aws::Utils::DateTime m_alarmConfigurationUpdatedTimestamp;
468 bool m_alarmConfigurationUpdatedTimestampHasBeenSet = false;
469
470 bool m_actionsEnabled;
471 bool m_actionsEnabledHasBeenSet = false;
472
473 Aws::Vector<Aws::String> m_oKActions;
474 bool m_oKActionsHasBeenSet = false;
475
476 Aws::Vector<Aws::String> m_alarmActions;
477 bool m_alarmActionsHasBeenSet = false;
478
479 Aws::Vector<Aws::String> m_insufficientDataActions;
480 bool m_insufficientDataActionsHasBeenSet = false;
481
482 StateValue m_stateValue;
483 bool m_stateValueHasBeenSet = false;
484
485 Aws::String m_stateReason;
486 bool m_stateReasonHasBeenSet = false;
487
488 Aws::String m_stateReasonData;
489 bool m_stateReasonDataHasBeenSet = false;
490
491 Aws::Utils::DateTime m_stateUpdatedTimestamp;
492 bool m_stateUpdatedTimestampHasBeenSet = false;
493
494 Aws::String m_metricName;
495 bool m_metricNameHasBeenSet = false;
496
497 Aws::String m_namespace;
498 bool m_namespaceHasBeenSet = false;
499
500 Statistic m_statistic;
501 bool m_statisticHasBeenSet = false;
502
503 Aws::String m_extendedStatistic;
504 bool m_extendedStatisticHasBeenSet = false;
505
506 Aws::Vector<Dimension> m_dimensions;
507 bool m_dimensionsHasBeenSet = false;
508
509 int m_period;
510 bool m_periodHasBeenSet = false;
511
512 StandardUnit m_unit;
513 bool m_unitHasBeenSet = false;
514
515 int m_evaluationPeriods;
516 bool m_evaluationPeriodsHasBeenSet = false;
517
518 int m_datapointsToAlarm;
519 bool m_datapointsToAlarmHasBeenSet = false;
520
521 double m_threshold;
522 bool m_thresholdHasBeenSet = false;
523
524 ComparisonOperator m_comparisonOperator;
525 bool m_comparisonOperatorHasBeenSet = false;
526
527 Aws::String m_treatMissingData;
528 bool m_treatMissingDataHasBeenSet = false;
529
530 Aws::String m_evaluateLowSampleCountPercentile;
531 bool m_evaluateLowSampleCountPercentileHasBeenSet = false;
532
534 bool m_metricsHasBeenSet = false;
535
536 Aws::String m_thresholdMetricId;
537 bool m_thresholdMetricIdHasBeenSet = false;
538
539 EvaluationState m_evaluationState;
540 bool m_evaluationStateHasBeenSet = false;
541
542 Aws::Utils::DateTime m_stateTransitionedTimestamp;
543 bool m_stateTransitionedTimestampHasBeenSet = false;
544 };
545
546} // namespace Model
547} // namespace CloudWatch
548} // namespace Aws
void SetStateValue(StateValue &&value)
AWS_CLOUDWATCH_API MetricAlarm(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStateReason(Aws::String &&value)
void SetStateReason(const Aws::String &value)
MetricAlarm & WithMetricName(const Aws::String &value)
MetricAlarm & WithEvaluateLowSampleCountPercentile(const Aws::String &value)
MetricAlarm & WithEvaluateLowSampleCountPercentile(Aws::String &&value)
MetricAlarm & AddMetrics(MetricDataQuery &&value)
void SetMetrics(const Aws::Vector< MetricDataQuery > &value)
void SetAlarmConfigurationUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition MetricAlarm.h:99
void SetStateReason(const char *value)
AWS_CLOUDWATCH_API MetricAlarm & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStateReasonData() const
void SetUnit(const StandardUnit &value)
void SetNamespace(const Aws::String &value)
MetricAlarm & AddDimensions(const Dimension &value)
void SetDimensions(const Aws::Vector< Dimension > &value)
MetricAlarm & WithNamespace(const char *value)
const Aws::Vector< Aws::String > & GetOKActions() const
const Statistic & GetStatistic() const
void SetStateReasonData(Aws::String &&value)
void SetStateValue(const StateValue &value)
MetricAlarm & WithEvaluationState(EvaluationState &&value)
MetricAlarm & WithThreshold(double value)
MetricAlarm & WithThresholdMetricId(const Aws::String &value)
MetricAlarm & WithComparisonOperator(ComparisonOperator &&value)
MetricAlarm & AddOKActions(const char *value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
const Aws::String & GetNamespace() const
void SetExtendedStatistic(const char *value)
const EvaluationState & GetEvaluationState() const
MetricAlarm & WithAlarmDescription(const char *value)
Definition MetricAlarm.h:90
const ComparisonOperator & GetComparisonOperator() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetMetricName() const
void SetStatistic(const Statistic &value)
void SetAlarmArn(const char *value)
Definition MetricAlarm.h:73
MetricAlarm & AddOKActions(const Aws::String &value)
void SetStateUpdatedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & WithStateTransitionedTimestamp(Aws::Utils::DateTime &&value)
void SetNamespace(Aws::String &&value)
void SetDimensions(Aws::Vector< Dimension > &&value)
const StateValue & GetStateValue() const
void SetUnit(StandardUnit &&value)
MetricAlarm & WithAlarmArn(Aws::String &&value)
Definition MetricAlarm.h:75
void SetAlarmDescription(Aws::String &&value)
Definition MetricAlarm.h:86
MetricAlarm & WithAlarmArn(const char *value)
Definition MetricAlarm.h:76
void SetComparisonOperator(ComparisonOperator &&value)
void SetThresholdMetricId(const Aws::String &value)
MetricAlarm & AddInsufficientDataActions(const Aws::String &value)
MetricAlarm & WithStateReasonData(const char *value)
void SetNamespace(const char *value)
MetricAlarm & WithThresholdMetricId(Aws::String &&value)
MetricAlarm & WithDimensions(Aws::Vector< Dimension > &&value)
MetricAlarm & AddInsufficientDataActions(Aws::String &&value)
MetricAlarm & WithEvaluateLowSampleCountPercentile(const char *value)
MetricAlarm & WithInsufficientDataActions(const Aws::Vector< Aws::String > &value)
void SetEvaluateLowSampleCountPercentile(const Aws::String &value)
void SetStateTransitionedTimestamp(const Aws::Utils::DateTime &value)
const Aws::String & GetThresholdMetricId() const
void SetMetrics(Aws::Vector< MetricDataQuery > &&value)
void SetAlarmActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & AddMetrics(const MetricDataQuery &value)
void SetInsufficientDataActions(Aws::Vector< Aws::String > &&value)
void SetEvaluationState(EvaluationState &&value)
void SetTreatMissingData(const Aws::String &value)
const Aws::String & GetStateReason() const
MetricAlarm & WithAlarmName(Aws::String &&value)
Definition MetricAlarm.h:61
void SetTreatMissingData(const char *value)
MetricAlarm & WithEvaluationPeriods(int value)
MetricAlarm & WithOKActions(const Aws::Vector< Aws::String > &value)
void SetStateUpdatedTimestamp(const Aws::Utils::DateTime &value)
MetricAlarm & WithUnit(const StandardUnit &value)
void SetAlarmName(Aws::String &&value)
Definition MetricAlarm.h:58
void SetExtendedStatistic(const Aws::String &value)
MetricAlarm & WithThresholdMetricId(const char *value)
MetricAlarm & WithComparisonOperator(const ComparisonOperator &value)
void SetAlarmActions(const Aws::Vector< Aws::String > &value)
MetricAlarm & WithAlarmDescription(const Aws::String &value)
Definition MetricAlarm.h:88
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
MetricAlarm & WithDatapointsToAlarm(int value)
void SetEvaluateLowSampleCountPercentile(const char *value)
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
Definition MetricAlarm.h:97
void SetStatistic(Statistic &&value)
bool AlarmConfigurationUpdatedTimestampHasBeenSet() const
Definition MetricAlarm.h:98
MetricAlarm & WithExtendedStatistic(Aws::String &&value)
bool EvaluateLowSampleCountPercentileHasBeenSet() const
const Aws::String & GetTreatMissingData() const
void SetAlarmDescription(const char *value)
Definition MetricAlarm.h:87
MetricAlarm & AddOKActions(Aws::String &&value)
void SetMetricName(const char *value)
void SetAlarmName(const char *value)
Definition MetricAlarm.h:59
MetricAlarm & WithStateUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetComparisonOperator(const ComparisonOperator &value)
MetricAlarm & WithAlarmActions(const Aws::Vector< Aws::String > &value)
MetricAlarm & WithExtendedStatistic(const char *value)
void SetStateReasonData(const char *value)
void SetAlarmName(const Aws::String &value)
Definition MetricAlarm.h:57
MetricAlarm & WithPeriod(int value)
MetricAlarm & WithNamespace(Aws::String &&value)
MetricAlarm & AddAlarmActions(const char *value)
MetricAlarm & WithEvaluationState(const EvaluationState &value)
MetricAlarm & WithStatistic(Statistic &&value)
const StandardUnit & GetUnit() const
void SetOKActions(const Aws::Vector< Aws::String > &value)
void SetAlarmArn(const Aws::String &value)
Definition MetricAlarm.h:71
MetricAlarm & WithAlarmConfigurationUpdatedTimestamp(const Aws::Utils::DateTime &value)
MetricAlarm & WithMetricName(Aws::String &&value)
void SetEvaluateLowSampleCountPercentile(Aws::String &&value)
MetricAlarm & WithOKActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithTreatMissingData(const Aws::String &value)
MetricAlarm & WithMetrics(const Aws::Vector< MetricDataQuery > &value)
const Aws::Vector< Dimension > & GetDimensions() const
const Aws::String & GetAlarmArn() const
Definition MetricAlarm.h:69
const Aws::Vector< MetricDataQuery > & GetMetrics() const
MetricAlarm & WithStateReasonData(Aws::String &&value)
void SetThresholdMetricId(const char *value)
MetricAlarm & WithStateReason(const char *value)
void SetEvaluationState(const EvaluationState &value)
void SetExtendedStatistic(Aws::String &&value)
MetricAlarm & WithAlarmArn(const Aws::String &value)
Definition MetricAlarm.h:74
const Aws::String & GetExtendedStatistic() const
MetricAlarm & WithAlarmActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithTreatMissingData(Aws::String &&value)
MetricAlarm & WithAlarmName(const Aws::String &value)
Definition MetricAlarm.h:60
MetricAlarm & WithMetricName(const char *value)
MetricAlarm & WithStateValue(const StateValue &value)
AWS_CLOUDWATCH_API MetricAlarm()
MetricAlarm & WithStateTransitionedTimestamp(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
void SetTreatMissingData(Aws::String &&value)
MetricAlarm & WithTreatMissingData(const char *value)
void SetThresholdMetricId(Aws::String &&value)
MetricAlarm & AddAlarmActions(const Aws::String &value)
void SetStateReasonData(const Aws::String &value)
MetricAlarm & AddDimensions(Dimension &&value)
const Aws::String & GetAlarmDescription() const
Definition MetricAlarm.h:83
MetricAlarm & WithDimensions(const Aws::Vector< Dimension > &value)
MetricAlarm & WithActionsEnabled(bool value)
void SetAlarmConfigurationUpdatedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & AddAlarmActions(Aws::String &&value)
MetricAlarm & WithAlarmDescription(Aws::String &&value)
Definition MetricAlarm.h:89
void SetInsufficientDataActions(const Aws::Vector< Aws::String > &value)
MetricAlarm & WithStatistic(const Statistic &value)
void SetStateTransitionedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & WithAlarmConfigurationUpdatedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & WithAlarmName(const char *value)
Definition MetricAlarm.h:62
void SetAlarmArn(Aws::String &&value)
Definition MetricAlarm.h:72
void SetMetricName(const Aws::String &value)
MetricAlarm & AddInsufficientDataActions(const char *value)
MetricAlarm & WithInsufficientDataActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithUnit(StandardUnit &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricAlarm & WithStateUpdatedTimestamp(const Aws::Utils::DateTime &value)
MetricAlarm & WithNamespace(const Aws::String &value)
void SetAlarmDescription(const Aws::String &value)
Definition MetricAlarm.h:85
MetricAlarm & WithMetrics(Aws::Vector< MetricDataQuery > &&value)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
const Aws::String & GetEvaluateLowSampleCountPercentile() const
const Aws::String & GetAlarmName() const
Definition MetricAlarm.h:55
void SetOKActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithStateReasonData(const Aws::String &value)
MetricAlarm & WithExtendedStatistic(const Aws::String &value)
MetricAlarm & WithStateValue(StateValue &&value)
void SetMetricName(Aws::String &&value)
MetricAlarm & WithStateReason(const Aws::String &value)
MetricAlarm & WithStateReason(Aws::String &&value)
bool StateTransitionedTimestampHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream