/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a projected utilization metric of an Lambda function recommendation
* option.See Also:
AWS
* API Reference
The name of the projected utilization metric.
*/ inline const LambdaFunctionMemoryMetricName& GetName() const{ return m_name; } /** *The name of the projected utilization metric.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the projected utilization metric.
*/ inline void SetName(const LambdaFunctionMemoryMetricName& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the projected utilization metric.
*/ inline void SetName(LambdaFunctionMemoryMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the projected utilization metric.
*/ inline LambdaFunctionMemoryProjectedMetric& WithName(const LambdaFunctionMemoryMetricName& value) { SetName(value); return *this;} /** *The name of the projected utilization metric.
*/ inline LambdaFunctionMemoryProjectedMetric& WithName(LambdaFunctionMemoryMetricName&& value) { SetName(std::move(value)); return *this;} /** *The statistic of the projected utilization metric.
*/ inline const LambdaFunctionMemoryMetricStatistic& GetStatistic() const{ return m_statistic; } /** *The statistic of the projected utilization metric.
*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *The statistic of the projected utilization metric.
*/ inline void SetStatistic(const LambdaFunctionMemoryMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *The statistic of the projected utilization metric.
*/ inline void SetStatistic(LambdaFunctionMemoryMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *The statistic of the projected utilization metric.
*/ inline LambdaFunctionMemoryProjectedMetric& WithStatistic(const LambdaFunctionMemoryMetricStatistic& value) { SetStatistic(value); return *this;} /** *The statistic of the projected utilization metric.
*/ inline LambdaFunctionMemoryProjectedMetric& WithStatistic(LambdaFunctionMemoryMetricStatistic&& value) { SetStatistic(std::move(value)); return *this;} /** *The values of the projected utilization metrics.
*/ inline double GetValue() const{ return m_value; } /** *The values of the projected utilization metrics.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The values of the projected utilization metrics.
*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *The values of the projected utilization metrics.
*/ inline LambdaFunctionMemoryProjectedMetric& WithValue(double value) { SetValue(value); return *this;} private: LambdaFunctionMemoryMetricName m_name; bool m_nameHasBeenSet = false; LambdaFunctionMemoryMetricStatistic m_statistic; bool m_statisticHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws