/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a recommendation option for an Lambda function.See
* Also:
AWS
* API Reference
The rank of the function recommendation option.
The top recommendation
* option is ranked as 1
.
The rank of the function recommendation option.
The top recommendation
* option is ranked as 1
.
The rank of the function recommendation option.
The top recommendation
* option is ranked as 1
.
The rank of the function recommendation option.
The top recommendation
* option is ranked as 1
.
The memory size, in MB, of the function recommendation option.
*/ inline int GetMemorySize() const{ return m_memorySize; } /** *The memory size, in MB, of the function recommendation option.
*/ inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; } /** *The memory size, in MB, of the function recommendation option.
*/ inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; } /** *The memory size, in MB, of the function recommendation option.
*/ inline LambdaFunctionMemoryRecommendationOption& WithMemorySize(int value) { SetMemorySize(value); return *this;} /** *An array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline const Aws::VectorAn array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline bool ProjectedUtilizationMetricsHasBeenSet() const { return m_projectedUtilizationMetricsHasBeenSet; } /** *An array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline void SetProjectedUtilizationMetrics(const Aws::VectorAn array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline void SetProjectedUtilizationMetrics(Aws::VectorAn array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline LambdaFunctionMemoryRecommendationOption& WithProjectedUtilizationMetrics(const Aws::VectorAn array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline LambdaFunctionMemoryRecommendationOption& WithProjectedUtilizationMetrics(Aws::VectorAn array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline LambdaFunctionMemoryRecommendationOption& AddProjectedUtilizationMetrics(const LambdaFunctionMemoryProjectedMetric& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(value); return *this; } /** *An array of objects that describe the projected utilization metrics of the * function recommendation option.
*/ inline LambdaFunctionMemoryRecommendationOption& AddProjectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(std::move(value)); return *this; } /** *An object that describes the savings opportunity for the Lambda function * recommendation option. Savings opportunity includes the estimated monthly * savings amount and percentage.
*/ inline const SavingsOpportunity& GetSavingsOpportunity() const{ return m_savingsOpportunity; } /** *An object that describes the savings opportunity for the Lambda function * recommendation option. Savings opportunity includes the estimated monthly * savings amount and percentage.
*/ inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; } /** *An object that describes the savings opportunity for the Lambda function * recommendation option. Savings opportunity includes the estimated monthly * savings amount and percentage.
*/ inline void SetSavingsOpportunity(const SavingsOpportunity& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = value; } /** *An object that describes the savings opportunity for the Lambda function * recommendation option. Savings opportunity includes the estimated monthly * savings amount and percentage.
*/ inline void SetSavingsOpportunity(SavingsOpportunity&& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = std::move(value); } /** *An object that describes the savings opportunity for the Lambda function * recommendation option. Savings opportunity includes the estimated monthly * savings amount and percentage.
*/ inline LambdaFunctionMemoryRecommendationOption& WithSavingsOpportunity(const SavingsOpportunity& value) { SetSavingsOpportunity(value); return *this;} /** *An object that describes the savings opportunity for the Lambda function * recommendation option. Savings opportunity includes the estimated monthly * savings amount and percentage.
*/ inline LambdaFunctionMemoryRecommendationOption& WithSavingsOpportunity(SavingsOpportunity&& value) { SetSavingsOpportunity(std::move(value)); return *this;} private: int m_rank; bool m_rankHasBeenSet = false; int m_memorySize; bool m_memorySizeHasBeenSet = false; Aws::Vector