/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure defines the CloudWatch metric to return, along with the
* statistic and unit. For more information about the CloudWatch terminology
* below, see Amazon
* CloudWatch concepts in the Amazon CloudWatch User
* Guide.See Also:
AWS
* API Reference
The metric to use.
*/ inline const Metric& GetMetric() const{ return m_metric; } /** *The metric to use.
*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *The metric to use.
*/ inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; } /** *The metric to use.
*/ inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *The metric to use.
*/ inline TargetTrackingMetricStat& WithMetric(const Metric& value) { SetMetric(value); return *this;} /** *The metric to use.
*/ inline TargetTrackingMetricStat& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;} /** *The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The statistic to return. It can include any CloudWatch statistic or extended * statistic. For a list of valid values, see the table in Statistics * in the Amazon CloudWatch User Guide.
The most commonly used metric
* for scaling is Average
.
The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; } /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline TargetTrackingMetricStat& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline TargetTrackingMetricStat& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *The unit to use for the returned data points. For a complete list of the * units that CloudWatch supports, see the MetricDatum * data type in the Amazon CloudWatch API Reference.
*/ inline TargetTrackingMetricStat& WithUnit(const char* value) { SetUnit(value); return *this;} private: Metric m_metric; bool m_metricHasBeenSet = false; Aws::String m_stat; bool m_statHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws