/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that contains information about the CloudWatch alarm that * Amazon Route 53 is monitoring for this health check.

See Also:

* AWS * API Reference

*/ class CloudWatchAlarmConfiguration { public: AWS_ROUTE53_API CloudWatchAlarmConfiguration(); AWS_ROUTE53_API CloudWatchAlarmConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API CloudWatchAlarmConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

For the metric that the CloudWatch alarm is associated with, the number of * periods that the metric is compared to the threshold.

*/ inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; } /** *

For the metric that the CloudWatch alarm is associated with, the number of * periods that the metric is compared to the threshold.

*/ inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the number of * periods that the metric is compared to the threshold.

*/ inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; } /** *

For the metric that the CloudWatch alarm is associated with, the number of * periods that the metric is compared to the threshold.

*/ inline CloudWatchAlarmConfiguration& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the value the * metric is compared with.

*/ inline double GetThreshold() const{ return m_threshold; } /** *

For the metric that the CloudWatch alarm is associated with, the value the * metric is compared with.

*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the value the * metric is compared with.

*/ inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; } /** *

For the metric that the CloudWatch alarm is associated with, the value the * metric is compared with.

*/ inline CloudWatchAlarmConfiguration& WithThreshold(double value) { SetThreshold(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the arithmetic * operation that is used for the comparison.

*/ inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; } /** *

For the metric that the CloudWatch alarm is associated with, the arithmetic * operation that is used for the comparison.

*/ inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the arithmetic * operation that is used for the comparison.

*/ inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; } /** *

For the metric that the CloudWatch alarm is associated with, the arithmetic * operation that is used for the comparison.

*/ inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); } /** *

For the metric that the CloudWatch alarm is associated with, the arithmetic * operation that is used for the comparison.

*/ inline CloudWatchAlarmConfiguration& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the arithmetic * operation that is used for the comparison.

*/ inline CloudWatchAlarmConfiguration& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the duration of * one evaluation period in seconds.

*/ inline int GetPeriod() const{ return m_period; } /** *

For the metric that the CloudWatch alarm is associated with, the duration of * one evaluation period in seconds.

*/ inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the duration of * one evaluation period in seconds.

*/ inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; } /** *

For the metric that the CloudWatch alarm is associated with, the duration of * one evaluation period in seconds.

*/ inline CloudWatchAlarmConfiguration& WithPeriod(int value) { SetPeriod(value); return *this;} /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline CloudWatchAlarmConfiguration& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline CloudWatchAlarmConfiguration& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the CloudWatch metric that the alarm is associated with.

*/ inline CloudWatchAlarmConfiguration& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace of the metric that the alarm is associated with. For more * information, see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the statistic * that is applied to the metric.

*/ inline const Statistic& GetStatistic() const{ return m_statistic; } /** *

For the metric that the CloudWatch alarm is associated with, the statistic * that is applied to the metric.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, the statistic * that is applied to the metric.

*/ inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

For the metric that the CloudWatch alarm is associated with, the statistic * that is applied to the metric.

*/ inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

For the metric that the CloudWatch alarm is associated with, the statistic * that is applied to the metric.

*/ inline CloudWatchAlarmConfiguration& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, the statistic * that is applied to the metric.

*/ inline CloudWatchAlarmConfiguration& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline const Aws::Vector& GetDimensions() const{ return m_dimensions; } /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline void SetDimensions(const Aws::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline void SetDimensions(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& WithDimensions(const Aws::Vector& value) { SetDimensions(value); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(value)); return *this;} /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *

For the metric that the CloudWatch alarm is associated with, a complex type * that contains information about the dimensions for the metric. For information, * see Amazon * CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon * CloudWatch User Guide.

*/ inline CloudWatchAlarmConfiguration& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } private: int m_evaluationPeriods; bool m_evaluationPeriodsHasBeenSet = false; double m_threshold; bool m_thresholdHasBeenSet = false; ComparisonOperator m_comparisonOperator; bool m_comparisonOperatorHasBeenSet = false; int m_period; bool m_periodHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Statistic m_statistic; bool m_statisticHasBeenSet = false; Aws::Vector m_dimensions; bool m_dimensionsHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws