AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaFunctionMemoryRecommendationOption.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/compute-optimizer/model/SavingsOpportunity.h>
10#include <aws/compute-optimizer/model/LambdaSavingsOpportunityAfterDiscounts.h>
11#include <aws/compute-optimizer/model/LambdaFunctionMemoryProjectedMetric.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryRecommendationOption();
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline int GetRank() const{ return m_rank; }
50 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
51 inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; }
52 inline LambdaFunctionMemoryRecommendationOption& WithRank(int value) { SetRank(value); return *this;}
54
56
59 inline int GetMemorySize() const{ return m_memorySize; }
60 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
61 inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
62 inline LambdaFunctionMemoryRecommendationOption& WithMemorySize(int value) { SetMemorySize(value); return *this;}
64
66
70 inline const Aws::Vector<LambdaFunctionMemoryProjectedMetric>& GetProjectedUtilizationMetrics() const{ return m_projectedUtilizationMetrics; }
71 inline bool ProjectedUtilizationMetricsHasBeenSet() const { return m_projectedUtilizationMetricsHasBeenSet; }
72 inline void SetProjectedUtilizationMetrics(const Aws::Vector<LambdaFunctionMemoryProjectedMetric>& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics = value; }
73 inline void SetProjectedUtilizationMetrics(Aws::Vector<LambdaFunctionMemoryProjectedMetric>&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics = std::move(value); }
76 inline LambdaFunctionMemoryRecommendationOption& AddProjectedUtilizationMetrics(const LambdaFunctionMemoryProjectedMetric& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(value); return *this; }
77 inline LambdaFunctionMemoryRecommendationOption& AddProjectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric&& value) { m_projectedUtilizationMetricsHasBeenSet = true; m_projectedUtilizationMetrics.push_back(std::move(value)); return *this; }
79
81
86 inline const SavingsOpportunity& GetSavingsOpportunity() const{ return m_savingsOpportunity; }
87 inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; }
88 inline void SetSavingsOpportunity(const SavingsOpportunity& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = value; }
89 inline void SetSavingsOpportunity(SavingsOpportunity&& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = std::move(value); }
93
95
100 inline const LambdaSavingsOpportunityAfterDiscounts& GetSavingsOpportunityAfterDiscounts() const{ return m_savingsOpportunityAfterDiscounts; }
101 inline bool SavingsOpportunityAfterDiscountsHasBeenSet() const { return m_savingsOpportunityAfterDiscountsHasBeenSet; }
102 inline void SetSavingsOpportunityAfterDiscounts(const LambdaSavingsOpportunityAfterDiscounts& value) { m_savingsOpportunityAfterDiscountsHasBeenSet = true; m_savingsOpportunityAfterDiscounts = value; }
103 inline void SetSavingsOpportunityAfterDiscounts(LambdaSavingsOpportunityAfterDiscounts&& value) { m_savingsOpportunityAfterDiscountsHasBeenSet = true; m_savingsOpportunityAfterDiscounts = std::move(value); }
107 private:
108
109 int m_rank;
110 bool m_rankHasBeenSet = false;
111
112 int m_memorySize;
113 bool m_memorySizeHasBeenSet = false;
114
115 Aws::Vector<LambdaFunctionMemoryProjectedMetric> m_projectedUtilizationMetrics;
116 bool m_projectedUtilizationMetricsHasBeenSet = false;
117
118 SavingsOpportunity m_savingsOpportunity;
119 bool m_savingsOpportunityHasBeenSet = false;
120
121 LambdaSavingsOpportunityAfterDiscounts m_savingsOpportunityAfterDiscounts;
122 bool m_savingsOpportunityAfterDiscountsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ComputeOptimizer
127} // namespace Aws
AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryRecommendationOption(Aws::Utils::Json::JsonView jsonValue)
void SetProjectedUtilizationMetrics(const Aws::Vector< LambdaFunctionMemoryProjectedMetric > &value)
LambdaFunctionMemoryRecommendationOption & AddProjectedUtilizationMetrics(const LambdaFunctionMemoryProjectedMetric &value)
LambdaFunctionMemoryRecommendationOption & WithSavingsOpportunity(SavingsOpportunity &&value)
LambdaFunctionMemoryRecommendationOption & WithSavingsOpportunityAfterDiscounts(const LambdaSavingsOpportunityAfterDiscounts &value)
void SetProjectedUtilizationMetrics(Aws::Vector< LambdaFunctionMemoryProjectedMetric > &&value)
LambdaFunctionMemoryRecommendationOption & AddProjectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric &&value)
LambdaFunctionMemoryRecommendationOption & WithSavingsOpportunityAfterDiscounts(LambdaSavingsOpportunityAfterDiscounts &&value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryRecommendationOption & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionMemoryRecommendationOption & WithProjectedUtilizationMetrics(Aws::Vector< LambdaFunctionMemoryProjectedMetric > &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< LambdaFunctionMemoryProjectedMetric > & GetProjectedUtilizationMetrics() const
LambdaFunctionMemoryRecommendationOption & WithProjectedUtilizationMetrics(const Aws::Vector< LambdaFunctionMemoryProjectedMetric > &value)
void SetSavingsOpportunityAfterDiscounts(const LambdaSavingsOpportunityAfterDiscounts &value)
LambdaFunctionMemoryRecommendationOption & WithSavingsOpportunity(const SavingsOpportunity &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue