/**
* 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, period, 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 CloudWatch metric to return, including the metric name, namespace, and * dimensions. To get the exact metric name, namespace, and dimensions, inspect the * Metric * object that is returned by a call to ListMetrics.
*/ inline const TargetTrackingMetric& GetMetric() const{ return m_metric; } /** *The CloudWatch metric to return, including the metric name, namespace, and * dimensions. To get the exact metric name, namespace, and dimensions, inspect the * Metric * object that is returned by a call to ListMetrics.
*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *The CloudWatch metric to return, including the metric name, namespace, and * dimensions. To get the exact metric name, namespace, and dimensions, inspect the * Metric * object that is returned by a call to ListMetrics.
*/ inline void SetMetric(const TargetTrackingMetric& value) { m_metricHasBeenSet = true; m_metric = value; } /** *The CloudWatch metric to return, including the metric name, namespace, and * dimensions. To get the exact metric name, namespace, and dimensions, inspect the * Metric * object that is returned by a call to ListMetrics.
*/ inline void SetMetric(TargetTrackingMetric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *The CloudWatch metric to return, including the metric name, namespace, and * dimensions. To get the exact metric name, namespace, and dimensions, inspect the * Metric * object that is returned by a call to ListMetrics.
*/ inline TargetTrackingMetricStat& WithMetric(const TargetTrackingMetric& value) { SetMetric(value); return *this;} /** *The CloudWatch metric to return, including the metric name, namespace, and * dimensions. To get the exact metric name, namespace, and dimensions, inspect the * Metric * object that is returned by a call to ListMetrics.
*/ inline TargetTrackingMetricStat& WithMetric(TargetTrackingMetric&& 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: TargetTrackingMetric 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 ApplicationAutoScaling } // namespace Aws