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

Describes a projected utilization metric of an Lambda function recommendation * option.

See Also:

AWS * API Reference

*/ class LambdaFunctionMemoryProjectedMetric { public: AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryProjectedMetric(); AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryProjectedMetric(Aws::Utils::Json::JsonView jsonValue); AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryProjectedMetric& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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