AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMetricAlarmRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Statistic.h>
12#include <aws/monitoring/model/StandardUnit.h>
13#include <aws/monitoring/model/ComparisonOperator.h>
14#include <aws/monitoring/model/Dimension.h>
15#include <aws/monitoring/model/MetricDataQuery.h>
16#include <aws/monitoring/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace CloudWatch
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CLOUDWATCH_API PutMetricAlarmRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutMetricAlarm"; }
38
39 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
52 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
53 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
54 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
55 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
56 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
57 inline PutMetricAlarmRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
58 inline PutMetricAlarmRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
59 inline PutMetricAlarmRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
61
63
66 inline const Aws::String& GetAlarmDescription() const{ return m_alarmDescription; }
67 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
68 inline void SetAlarmDescription(const Aws::String& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = value; }
69 inline void SetAlarmDescription(Aws::String&& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = std::move(value); }
70 inline void SetAlarmDescription(const char* value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription.assign(value); }
71 inline PutMetricAlarmRequest& WithAlarmDescription(const Aws::String& value) { SetAlarmDescription(value); return *this;}
72 inline PutMetricAlarmRequest& WithAlarmDescription(Aws::String&& value) { SetAlarmDescription(std::move(value)); return *this;}
73 inline PutMetricAlarmRequest& WithAlarmDescription(const char* value) { SetAlarmDescription(value); return *this;}
75
77
81 inline bool GetActionsEnabled() const{ return m_actionsEnabled; }
82 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
83 inline void SetActionsEnabled(bool value) { m_actionsEnabledHasBeenSet = true; m_actionsEnabled = value; }
84 inline PutMetricAlarmRequest& WithActionsEnabled(bool value) { SetActionsEnabled(value); return *this;}
86
88
120 inline const Aws::Vector<Aws::String>& GetOKActions() const{ return m_oKActions; }
121 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
122 inline void SetOKActions(const Aws::Vector<Aws::String>& value) { m_oKActionsHasBeenSet = true; m_oKActions = value; }
123 inline void SetOKActions(Aws::Vector<Aws::String>&& value) { m_oKActionsHasBeenSet = true; m_oKActions = std::move(value); }
124 inline PutMetricAlarmRequest& WithOKActions(const Aws::Vector<Aws::String>& value) { SetOKActions(value); return *this;}
125 inline PutMetricAlarmRequest& WithOKActions(Aws::Vector<Aws::String>&& value) { SetOKActions(std::move(value)); return *this;}
126 inline PutMetricAlarmRequest& AddOKActions(const Aws::String& value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(value); return *this; }
127 inline PutMetricAlarmRequest& AddOKActions(Aws::String&& value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(std::move(value)); return *this; }
128 inline PutMetricAlarmRequest& AddOKActions(const char* value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(value); return *this; }
130
132
164 inline const Aws::Vector<Aws::String>& GetAlarmActions() const{ return m_alarmActions; }
165 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
166 inline void SetAlarmActions(const Aws::Vector<Aws::String>& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = value; }
167 inline void SetAlarmActions(Aws::Vector<Aws::String>&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::move(value); }
169 inline PutMetricAlarmRequest& WithAlarmActions(Aws::Vector<Aws::String>&& value) { SetAlarmActions(std::move(value)); return *this;}
170 inline PutMetricAlarmRequest& AddAlarmActions(const Aws::String& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
171 inline PutMetricAlarmRequest& AddAlarmActions(Aws::String&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(std::move(value)); return *this; }
172 inline PutMetricAlarmRequest& AddAlarmActions(const char* value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
174
176
209 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const{ return m_insufficientDataActions; }
210 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
211 inline void SetInsufficientDataActions(const Aws::Vector<Aws::String>& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = value; }
212 inline void SetInsufficientDataActions(Aws::Vector<Aws::String>&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = std::move(value); }
215 inline PutMetricAlarmRequest& AddInsufficientDataActions(const Aws::String& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(value); return *this; }
216 inline PutMetricAlarmRequest& AddInsufficientDataActions(Aws::String&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(std::move(value)); return *this; }
217 inline PutMetricAlarmRequest& AddInsufficientDataActions(const char* value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(value); return *this; }
219
221
231 inline const Aws::String& GetMetricName() const{ return m_metricName; }
232 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
233 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
234 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
235 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
236 inline PutMetricAlarmRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
237 inline PutMetricAlarmRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
238 inline PutMetricAlarmRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
240
242
246 inline const Aws::String& GetNamespace() const{ return m_namespace; }
247 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
248 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
249 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
250 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
251 inline PutMetricAlarmRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
252 inline PutMetricAlarmRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
253 inline PutMetricAlarmRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
255
257
264 inline const Statistic& GetStatistic() const{ return m_statistic; }
265 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
266 inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
267 inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
268 inline PutMetricAlarmRequest& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
269 inline PutMetricAlarmRequest& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
271
273
292 inline const Aws::String& GetExtendedStatistic() const{ return m_extendedStatistic; }
293 inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; }
294 inline void SetExtendedStatistic(const Aws::String& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = value; }
295 inline void SetExtendedStatistic(Aws::String&& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = std::move(value); }
296 inline void SetExtendedStatistic(const char* value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic.assign(value); }
298 inline PutMetricAlarmRequest& WithExtendedStatistic(Aws::String&& value) { SetExtendedStatistic(std::move(value)); return *this;}
299 inline PutMetricAlarmRequest& WithExtendedStatistic(const char* value) { SetExtendedStatistic(value); return *this;}
301
303
306 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
307 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
308 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
309 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
310 inline PutMetricAlarmRequest& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
311 inline PutMetricAlarmRequest& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
312 inline PutMetricAlarmRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
313 inline PutMetricAlarmRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
315
317
337 inline int GetPeriod() const{ return m_period; }
338 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
339 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
340 inline PutMetricAlarmRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
342
344
362 inline const StandardUnit& GetUnit() const{ return m_unit; }
363 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
364 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
365 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
366 inline PutMetricAlarmRequest& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
367 inline PutMetricAlarmRequest& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
369
371
379 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
380 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
381 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
382 inline PutMetricAlarmRequest& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
384
386
393 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
394 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
395 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
396 inline PutMetricAlarmRequest& WithDatapointsToAlarm(int value) { SetDatapointsToAlarm(value); return *this;}
398
400
405 inline double GetThreshold() const{ return m_threshold; }
406 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
407 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
408 inline PutMetricAlarmRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
410
412
419 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
420 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
421 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
422 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
426
428
441 inline const Aws::String& GetTreatMissingData() const{ return m_treatMissingData; }
442 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
443 inline void SetTreatMissingData(const Aws::String& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
444 inline void SetTreatMissingData(Aws::String&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
445 inline void SetTreatMissingData(const char* value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData.assign(value); }
446 inline PutMetricAlarmRequest& WithTreatMissingData(const Aws::String& value) { SetTreatMissingData(value); return *this;}
447 inline PutMetricAlarmRequest& WithTreatMissingData(Aws::String&& value) { SetTreatMissingData(std::move(value)); return *this;}
448 inline PutMetricAlarmRequest& WithTreatMissingData(const char* value) { SetTreatMissingData(value); return *this;}
450
452
463 inline const Aws::String& GetEvaluateLowSampleCountPercentile() const{ return m_evaluateLowSampleCountPercentile; }
464 inline bool EvaluateLowSampleCountPercentileHasBeenSet() const { return m_evaluateLowSampleCountPercentileHasBeenSet; }
465 inline void SetEvaluateLowSampleCountPercentile(const Aws::String& value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile = value; }
466 inline void SetEvaluateLowSampleCountPercentile(Aws::String&& value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile = std::move(value); }
467 inline void SetEvaluateLowSampleCountPercentile(const char* value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile.assign(value); }
472
474
492 inline const Aws::Vector<MetricDataQuery>& GetMetrics() const{ return m_metrics; }
493 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
494 inline void SetMetrics(const Aws::Vector<MetricDataQuery>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
495 inline void SetMetrics(Aws::Vector<MetricDataQuery>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
496 inline PutMetricAlarmRequest& WithMetrics(const Aws::Vector<MetricDataQuery>& value) { SetMetrics(value); return *this;}
497 inline PutMetricAlarmRequest& WithMetrics(Aws::Vector<MetricDataQuery>&& value) { SetMetrics(std::move(value)); return *this;}
498 inline PutMetricAlarmRequest& AddMetrics(const MetricDataQuery& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
499 inline PutMetricAlarmRequest& AddMetrics(MetricDataQuery&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
501
503
516 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
517 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
518 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
519 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
520 inline PutMetricAlarmRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
521 inline PutMetricAlarmRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
522 inline PutMetricAlarmRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
523 inline PutMetricAlarmRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
525
527
534 inline const Aws::String& GetThresholdMetricId() const{ return m_thresholdMetricId; }
535 inline bool ThresholdMetricIdHasBeenSet() const { return m_thresholdMetricIdHasBeenSet; }
536 inline void SetThresholdMetricId(const Aws::String& value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId = value; }
537 inline void SetThresholdMetricId(Aws::String&& value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId = std::move(value); }
538 inline void SetThresholdMetricId(const char* value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId.assign(value); }
540 inline PutMetricAlarmRequest& WithThresholdMetricId(Aws::String&& value) { SetThresholdMetricId(std::move(value)); return *this;}
541 inline PutMetricAlarmRequest& WithThresholdMetricId(const char* value) { SetThresholdMetricId(value); return *this;}
543 private:
544
545 Aws::String m_alarmName;
546 bool m_alarmNameHasBeenSet = false;
547
548 Aws::String m_alarmDescription;
549 bool m_alarmDescriptionHasBeenSet = false;
550
551 bool m_actionsEnabled;
552 bool m_actionsEnabledHasBeenSet = false;
553
554 Aws::Vector<Aws::String> m_oKActions;
555 bool m_oKActionsHasBeenSet = false;
556
557 Aws::Vector<Aws::String> m_alarmActions;
558 bool m_alarmActionsHasBeenSet = false;
559
560 Aws::Vector<Aws::String> m_insufficientDataActions;
561 bool m_insufficientDataActionsHasBeenSet = false;
562
563 Aws::String m_metricName;
564 bool m_metricNameHasBeenSet = false;
565
566 Aws::String m_namespace;
567 bool m_namespaceHasBeenSet = false;
568
569 Statistic m_statistic;
570 bool m_statisticHasBeenSet = false;
571
572 Aws::String m_extendedStatistic;
573 bool m_extendedStatisticHasBeenSet = false;
574
575 Aws::Vector<Dimension> m_dimensions;
576 bool m_dimensionsHasBeenSet = false;
577
578 int m_period;
579 bool m_periodHasBeenSet = false;
580
581 StandardUnit m_unit;
582 bool m_unitHasBeenSet = false;
583
584 int m_evaluationPeriods;
585 bool m_evaluationPeriodsHasBeenSet = false;
586
587 int m_datapointsToAlarm;
588 bool m_datapointsToAlarmHasBeenSet = false;
589
590 double m_threshold;
591 bool m_thresholdHasBeenSet = false;
592
593 ComparisonOperator m_comparisonOperator;
594 bool m_comparisonOperatorHasBeenSet = false;
595
596 Aws::String m_treatMissingData;
597 bool m_treatMissingDataHasBeenSet = false;
598
599 Aws::String m_evaluateLowSampleCountPercentile;
600 bool m_evaluateLowSampleCountPercentileHasBeenSet = false;
601
603 bool m_metricsHasBeenSet = false;
604
605 Aws::Vector<Tag> m_tags;
606 bool m_tagsHasBeenSet = false;
607
608 Aws::String m_thresholdMetricId;
609 bool m_thresholdMetricIdHasBeenSet = false;
610 };
611
612} // namespace Model
613} // namespace CloudWatch
614} // namespace Aws
PutMetricAlarmRequest & WithUnit(StandardUnit &&value)
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(Aws::String &&value)
PutMetricAlarmRequest & WithDimensions(const Aws::Vector< Dimension > &value)
PutMetricAlarmRequest & WithMetrics(Aws::Vector< MetricDataQuery > &&value)
void SetMetrics(const Aws::Vector< MetricDataQuery > &value)
PutMetricAlarmRequest & WithStatistic(Statistic &&value)
PutMetricAlarmRequest & AddDimensions(Dimension &&value)
void SetTags(const Aws::Vector< Tag > &value)
PutMetricAlarmRequest & WithExtendedStatistic(const Aws::String &value)
PutMetricAlarmRequest & WithAlarmDescription(const Aws::String &value)
PutMetricAlarmRequest & WithTreatMissingData(const Aws::String &value)
PutMetricAlarmRequest & AddInsufficientDataActions(const Aws::String &value)
PutMetricAlarmRequest & AddMetrics(MetricDataQuery &&value)
PutMetricAlarmRequest & WithInsufficientDataActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithOKActions(Aws::Vector< Aws::String > &&value)
PutMetricAlarmRequest & AddAlarmActions(Aws::String &&value)
PutMetricAlarmRequest & AddInsufficientDataActions(const char *value)
PutMetricAlarmRequest & WithInsufficientDataActions(Aws::Vector< Aws::String > &&value)
PutMetricAlarmRequest & WithThreshold(double value)
PutMetricAlarmRequest & WithEvaluationPeriods(int value)
PutMetricAlarmRequest & WithDatapointsToAlarm(int value)
PutMetricAlarmRequest & AddTags(const Tag &value)
PutMetricAlarmRequest & WithNamespace(const Aws::String &value)
PutMetricAlarmRequest & WithThresholdMetricId(const char *value)
void SetInsufficientDataActions(Aws::Vector< Aws::String > &&value)
void SetOKActions(Aws::Vector< Aws::String > &&value)
PutMetricAlarmRequest & WithTags(const Aws::Vector< Tag > &value)
PutMetricAlarmRequest & WithMetrics(const Aws::Vector< MetricDataQuery > &value)
void SetEvaluateLowSampleCountPercentile(const Aws::String &value)
PutMetricAlarmRequest & WithTreatMissingData(Aws::String &&value)
PutMetricAlarmRequest & AddTags(Tag &&value)
PutMetricAlarmRequest & AddAlarmActions(const Aws::String &value)
void SetDimensions(Aws::Vector< Dimension > &&value)
const Aws::Vector< Dimension > & GetDimensions() const
PutMetricAlarmRequest & WithUnit(const StandardUnit &value)
PutMetricAlarmRequest & WithThresholdMetricId(Aws::String &&value)
void SetAlarmActions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< MetricDataQuery > & GetMetrics() const
const Aws::Vector< Aws::String > & GetAlarmActions() const
PutMetricAlarmRequest & WithTags(Aws::Vector< Tag > &&value)
PutMetricAlarmRequest & WithActionsEnabled(bool value)
PutMetricAlarmRequest & AddInsufficientDataActions(Aws::String &&value)
const Aws::String & GetEvaluateLowSampleCountPercentile() const
PutMetricAlarmRequest & WithExtendedStatistic(const char *value)
PutMetricAlarmRequest & WithPeriod(int value)
void SetComparisonOperator(ComparisonOperator &&value)
PutMetricAlarmRequest & AddOKActions(const char *value)
const Aws::Vector< Aws::String > & GetOKActions() const
void SetInsufficientDataActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithTreatMissingData(const char *value)
PutMetricAlarmRequest & WithExtendedStatistic(Aws::String &&value)
PutMetricAlarmRequest & WithDimensions(Aws::Vector< Dimension > &&value)
PutMetricAlarmRequest & WithNamespace(const char *value)
PutMetricAlarmRequest & AddDimensions(const Dimension &value)
PutMetricAlarmRequest & WithMetricName(const Aws::String &value)
PutMetricAlarmRequest & WithOKActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithStatistic(const Statistic &value)
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(const char *value)
PutMetricAlarmRequest & WithAlarmDescription(const char *value)
PutMetricAlarmRequest & WithAlarmName(const char *value)
PutMetricAlarmRequest & WithComparisonOperator(ComparisonOperator &&value)
PutMetricAlarmRequest & WithAlarmName(Aws::String &&value)
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(const Aws::String &value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
void SetMetrics(Aws::Vector< MetricDataQuery > &&value)
PutMetricAlarmRequest & WithNamespace(Aws::String &&value)
PutMetricAlarmRequest & WithAlarmActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithAlarmName(const Aws::String &value)
PutMetricAlarmRequest & WithComparisonOperator(const ComparisonOperator &value)
void SetOKActions(const Aws::Vector< Aws::String > &value)
void SetAlarmActions(const Aws::Vector< Aws::String > &value)
const ComparisonOperator & GetComparisonOperator() const
PutMetricAlarmRequest & WithAlarmActions(Aws::Vector< Aws::String > &&value)
void SetDimensions(const Aws::Vector< Dimension > &value)
PutMetricAlarmRequest & WithThresholdMetricId(const Aws::String &value)
PutMetricAlarmRequest & AddOKActions(const Aws::String &value)
PutMetricAlarmRequest & WithMetricName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetComparisonOperator(const ComparisonOperator &value)
PutMetricAlarmRequest & AddMetrics(const MetricDataQuery &value)
PutMetricAlarmRequest & WithAlarmDescription(Aws::String &&value)
PutMetricAlarmRequest & AddAlarmActions(const char *value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutMetricAlarmRequest & AddOKActions(Aws::String &&value)
PutMetricAlarmRequest & WithMetricName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector