/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a utilization metric of a resource, such as an Amazon EC2
* instance.See Also:
AWS
* API Reference
The name of the utilization metric.
Memory metrics are only * returned for resources that have the unified CloudWatch agent installed on them. * For more information, see Enabling * Memory Utilization with the CloudWatch Agent.
*/ inline const MetricName& GetName() const{ return m_name; } /** *The name of the utilization metric.
Memory metrics are only * returned for resources that have the unified CloudWatch agent installed on them. * For more information, see Enabling * Memory Utilization with the CloudWatch Agent.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the utilization metric.
Memory metrics are only * returned for resources that have the unified CloudWatch agent installed on them. * For more information, see Enabling * Memory Utilization with the CloudWatch Agent.
*/ inline void SetName(const MetricName& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the utilization metric.
Memory metrics are only * returned for resources that have the unified CloudWatch agent installed on them. * For more information, see Enabling * Memory Utilization with the CloudWatch Agent.
*/ inline void SetName(MetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the utilization metric.
Memory metrics are only * returned for resources that have the unified CloudWatch agent installed on them. * For more information, see Enabling * Memory Utilization with the CloudWatch Agent.
*/ inline UtilizationMetric& WithName(const MetricName& value) { SetName(value); return *this;} /** *The name of the utilization metric.
Memory metrics are only * returned for resources that have the unified CloudWatch agent installed on them. * For more information, see Enabling * Memory Utilization with the CloudWatch Agent.
*/ inline UtilizationMetric& WithName(MetricName&& value) { SetName(std::move(value)); return *this;} /** *The statistic of the utilization metric.
*/ inline const MetricStatistic& GetStatistic() const{ return m_statistic; } /** *The statistic of the utilization metric.
*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *The statistic of the utilization metric.
*/ inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *The statistic of the utilization metric.
*/ inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *The statistic of the utilization metric.
*/ inline UtilizationMetric& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;} /** *The statistic of the utilization metric.
*/ inline UtilizationMetric& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;} /** *The value of the utilization metric.
*/ inline double GetValue() const{ return m_value; } /** *The value of the utilization metric.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value of the utilization metric.
*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *The value of the utilization metric.
*/ inline UtilizationMetric& WithValue(double value) { SetValue(value); return *this;} private: MetricName m_name; bool m_nameHasBeenSet; MetricStatistic m_statistic; bool m_statisticHasBeenSet; double m_value; bool m_valueHasBeenSet; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws