AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaFunctionRecommendation.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/compute-optimizer/model/LambdaFunctionRecommendationFinding.h>
12#include <aws/compute-optimizer/model/CurrentPerformanceRisk.h>
13#include <aws/compute-optimizer/model/LambdaEffectiveRecommendationPreferences.h>
14#include <aws/compute-optimizer/model/LambdaFunctionUtilizationMetric.h>
15#include <aws/compute-optimizer/model/LambdaFunctionRecommendationFindingReasonCode.h>
16#include <aws/compute-optimizer/model/LambdaFunctionMemoryRecommendationOption.h>
17#include <aws/compute-optimizer/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace ComputeOptimizer
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_COMPUTEOPTIMIZER_API LambdaFunctionRecommendation();
44 AWS_COMPUTEOPTIMIZER_API LambdaFunctionRecommendation(Aws::Utils::Json::JsonView jsonValue);
46 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
54 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
55 inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
56 inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
57 inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
58 inline LambdaFunctionRecommendation& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
59 inline LambdaFunctionRecommendation& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
60 inline LambdaFunctionRecommendation& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
62
64
67 inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
68 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
69 inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
70 inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
71 inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
73 inline LambdaFunctionRecommendation& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
74 inline LambdaFunctionRecommendation& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
76
78
81 inline const Aws::String& GetAccountId() const{ return m_accountId; }
82 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
83 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
84 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
85 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
86 inline LambdaFunctionRecommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
87 inline LambdaFunctionRecommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
88 inline LambdaFunctionRecommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
90
92
95 inline int GetCurrentMemorySize() const{ return m_currentMemorySize; }
96 inline bool CurrentMemorySizeHasBeenSet() const { return m_currentMemorySizeHasBeenSet; }
97 inline void SetCurrentMemorySize(int value) { m_currentMemorySizeHasBeenSet = true; m_currentMemorySize = value; }
100
102
106 inline long long GetNumberOfInvocations() const{ return m_numberOfInvocations; }
107 inline bool NumberOfInvocationsHasBeenSet() const { return m_numberOfInvocationsHasBeenSet; }
108 inline void SetNumberOfInvocations(long long value) { m_numberOfInvocationsHasBeenSet = true; m_numberOfInvocations = value; }
109 inline LambdaFunctionRecommendation& WithNumberOfInvocations(long long value) { SetNumberOfInvocations(value); return *this;}
111
113
117 inline const Aws::Vector<LambdaFunctionUtilizationMetric>& GetUtilizationMetrics() const{ return m_utilizationMetrics; }
118 inline bool UtilizationMetricsHasBeenSet() const { return m_utilizationMetricsHasBeenSet; }
119 inline void SetUtilizationMetrics(const Aws::Vector<LambdaFunctionUtilizationMetric>& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics = value; }
120 inline void SetUtilizationMetrics(Aws::Vector<LambdaFunctionUtilizationMetric>&& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics = std::move(value); }
123 inline LambdaFunctionRecommendation& AddUtilizationMetrics(const LambdaFunctionUtilizationMetric& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics.push_back(value); return *this; }
124 inline LambdaFunctionRecommendation& AddUtilizationMetrics(LambdaFunctionUtilizationMetric&& value) { m_utilizationMetricsHasBeenSet = true; m_utilizationMetrics.push_back(std::move(value)); return *this; }
126
128
132 inline double GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; }
133 inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
134 inline void SetLookbackPeriodInDays(double value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
137
139
142 inline const Aws::Utils::DateTime& GetLastRefreshTimestamp() const{ return m_lastRefreshTimestamp; }
143 inline bool LastRefreshTimestampHasBeenSet() const { return m_lastRefreshTimestampHasBeenSet; }
144 inline void SetLastRefreshTimestamp(const Aws::Utils::DateTime& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = value; }
145 inline void SetLastRefreshTimestamp(Aws::Utils::DateTime&& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = std::move(value); }
149
151
173 inline const LambdaFunctionRecommendationFinding& GetFinding() const{ return m_finding; }
174 inline bool FindingHasBeenSet() const { return m_findingHasBeenSet; }
175 inline void SetFinding(const LambdaFunctionRecommendationFinding& value) { m_findingHasBeenSet = true; m_finding = value; }
176 inline void SetFinding(LambdaFunctionRecommendationFinding&& value) { m_findingHasBeenSet = true; m_finding = std::move(value); }
180
182
208 inline const Aws::Vector<LambdaFunctionRecommendationFindingReasonCode>& GetFindingReasonCodes() const{ return m_findingReasonCodes; }
209 inline bool FindingReasonCodesHasBeenSet() const { return m_findingReasonCodesHasBeenSet; }
210 inline void SetFindingReasonCodes(const Aws::Vector<LambdaFunctionRecommendationFindingReasonCode>& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes = value; }
211 inline void SetFindingReasonCodes(Aws::Vector<LambdaFunctionRecommendationFindingReasonCode>&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes = std::move(value); }
214 inline LambdaFunctionRecommendation& AddFindingReasonCodes(const LambdaFunctionRecommendationFindingReasonCode& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(value); return *this; }
215 inline LambdaFunctionRecommendation& AddFindingReasonCodes(LambdaFunctionRecommendationFindingReasonCode&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(std::move(value)); return *this; }
217
219
223 inline const Aws::Vector<LambdaFunctionMemoryRecommendationOption>& GetMemorySizeRecommendationOptions() const{ return m_memorySizeRecommendationOptions; }
224 inline bool MemorySizeRecommendationOptionsHasBeenSet() const { return m_memorySizeRecommendationOptionsHasBeenSet; }
225 inline void SetMemorySizeRecommendationOptions(const Aws::Vector<LambdaFunctionMemoryRecommendationOption>& value) { m_memorySizeRecommendationOptionsHasBeenSet = true; m_memorySizeRecommendationOptions = value; }
226 inline void SetMemorySizeRecommendationOptions(Aws::Vector<LambdaFunctionMemoryRecommendationOption>&& value) { m_memorySizeRecommendationOptionsHasBeenSet = true; m_memorySizeRecommendationOptions = std::move(value); }
229 inline LambdaFunctionRecommendation& AddMemorySizeRecommendationOptions(const LambdaFunctionMemoryRecommendationOption& value) { m_memorySizeRecommendationOptionsHasBeenSet = true; m_memorySizeRecommendationOptions.push_back(value); return *this; }
230 inline LambdaFunctionRecommendation& AddMemorySizeRecommendationOptions(LambdaFunctionMemoryRecommendationOption&& value) { m_memorySizeRecommendationOptionsHasBeenSet = true; m_memorySizeRecommendationOptions.push_back(std::move(value)); return *this; }
232
234
239 inline const CurrentPerformanceRisk& GetCurrentPerformanceRisk() const{ return m_currentPerformanceRisk; }
240 inline bool CurrentPerformanceRiskHasBeenSet() const { return m_currentPerformanceRiskHasBeenSet; }
241 inline void SetCurrentPerformanceRisk(const CurrentPerformanceRisk& value) { m_currentPerformanceRiskHasBeenSet = true; m_currentPerformanceRisk = value; }
242 inline void SetCurrentPerformanceRisk(CurrentPerformanceRisk&& value) { m_currentPerformanceRiskHasBeenSet = true; m_currentPerformanceRisk = std::move(value); }
246
248
252 inline const LambdaEffectiveRecommendationPreferences& GetEffectiveRecommendationPreferences() const{ return m_effectiveRecommendationPreferences; }
253 inline bool EffectiveRecommendationPreferencesHasBeenSet() const { return m_effectiveRecommendationPreferencesHasBeenSet; }
254 inline void SetEffectiveRecommendationPreferences(const LambdaEffectiveRecommendationPreferences& value) { m_effectiveRecommendationPreferencesHasBeenSet = true; m_effectiveRecommendationPreferences = value; }
255 inline void SetEffectiveRecommendationPreferences(LambdaEffectiveRecommendationPreferences&& value) { m_effectiveRecommendationPreferencesHasBeenSet = true; m_effectiveRecommendationPreferences = std::move(value); }
259
261
264 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
265 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
266 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
267 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
268 inline LambdaFunctionRecommendation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
269 inline LambdaFunctionRecommendation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
270 inline LambdaFunctionRecommendation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
271 inline LambdaFunctionRecommendation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
273 private:
274
275 Aws::String m_functionArn;
276 bool m_functionArnHasBeenSet = false;
277
278 Aws::String m_functionVersion;
279 bool m_functionVersionHasBeenSet = false;
280
281 Aws::String m_accountId;
282 bool m_accountIdHasBeenSet = false;
283
284 int m_currentMemorySize;
285 bool m_currentMemorySizeHasBeenSet = false;
286
287 long long m_numberOfInvocations;
288 bool m_numberOfInvocationsHasBeenSet = false;
289
291 bool m_utilizationMetricsHasBeenSet = false;
292
293 double m_lookbackPeriodInDays;
294 bool m_lookbackPeriodInDaysHasBeenSet = false;
295
296 Aws::Utils::DateTime m_lastRefreshTimestamp;
297 bool m_lastRefreshTimestampHasBeenSet = false;
298
300 bool m_findingHasBeenSet = false;
301
303 bool m_findingReasonCodesHasBeenSet = false;
304
305 Aws::Vector<LambdaFunctionMemoryRecommendationOption> m_memorySizeRecommendationOptions;
306 bool m_memorySizeRecommendationOptionsHasBeenSet = false;
307
308 CurrentPerformanceRisk m_currentPerformanceRisk;
309 bool m_currentPerformanceRiskHasBeenSet = false;
310
311 LambdaEffectiveRecommendationPreferences m_effectiveRecommendationPreferences;
312 bool m_effectiveRecommendationPreferencesHasBeenSet = false;
313
314 Aws::Vector<Tag> m_tags;
315 bool m_tagsHasBeenSet = false;
316 };
317
318} // namespace Model
319} // namespace ComputeOptimizer
320} // namespace Aws
LambdaFunctionRecommendation & WithLastRefreshTimestamp(const Aws::Utils::DateTime &value)
const LambdaFunctionRecommendationFinding & GetFinding() const
LambdaFunctionRecommendation & WithMemorySizeRecommendationOptions(Aws::Vector< LambdaFunctionMemoryRecommendationOption > &&value)
LambdaFunctionRecommendation & WithEffectiveRecommendationPreferences(const LambdaEffectiveRecommendationPreferences &value)
LambdaFunctionRecommendation & WithFunctionArn(const char *value)
LambdaFunctionRecommendation & WithCurrentPerformanceRisk(const CurrentPerformanceRisk &value)
void SetFinding(const LambdaFunctionRecommendationFinding &value)
LambdaFunctionRecommendation & AddFindingReasonCodes(LambdaFunctionRecommendationFindingReasonCode &&value)
void SetEffectiveRecommendationPreferences(LambdaEffectiveRecommendationPreferences &&value)
LambdaFunctionRecommendation & WithUtilizationMetrics(const Aws::Vector< LambdaFunctionUtilizationMetric > &value)
LambdaFunctionRecommendation & WithTags(Aws::Vector< Tag > &&value)
LambdaFunctionRecommendation & AddUtilizationMetrics(const LambdaFunctionUtilizationMetric &value)
LambdaFunctionRecommendation & WithFunctionArn(const Aws::String &value)
LambdaFunctionRecommendation & WithFunctionArn(Aws::String &&value)
const Aws::Vector< LambdaFunctionMemoryRecommendationOption > & GetMemorySizeRecommendationOptions() const
void SetUtilizationMetrics(const Aws::Vector< LambdaFunctionUtilizationMetric > &value)
LambdaFunctionRecommendation & WithMemorySizeRecommendationOptions(const Aws::Vector< LambdaFunctionMemoryRecommendationOption > &value)
void SetFindingReasonCodes(Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > &&value)
LambdaFunctionRecommendation & WithAccountId(const char *value)
LambdaFunctionRecommendation & WithLookbackPeriodInDays(double value)
LambdaFunctionRecommendation & WithFinding(const LambdaFunctionRecommendationFinding &value)
void SetFindingReasonCodes(const Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > &value)
LambdaFunctionRecommendation & AddUtilizationMetrics(LambdaFunctionUtilizationMetric &&value)
LambdaFunctionRecommendation & AddFindingReasonCodes(const LambdaFunctionRecommendationFindingReasonCode &value)
void SetEffectiveRecommendationPreferences(const LambdaEffectiveRecommendationPreferences &value)
void SetMemorySizeRecommendationOptions(Aws::Vector< LambdaFunctionMemoryRecommendationOption > &&value)
LambdaFunctionRecommendation & WithAccountId(const Aws::String &value)
LambdaFunctionRecommendation & WithUtilizationMetrics(Aws::Vector< LambdaFunctionUtilizationMetric > &&value)
LambdaFunctionRecommendation & WithAccountId(Aws::String &&value)
const Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > & GetFindingReasonCodes() const
LambdaFunctionRecommendation & WithFunctionVersion(const Aws::String &value)
LambdaFunctionRecommendation & WithFindingReasonCodes(const Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > &value)
LambdaFunctionRecommendation & WithTags(const Aws::Vector< Tag > &value)
void SetMemorySizeRecommendationOptions(const Aws::Vector< LambdaFunctionMemoryRecommendationOption > &value)
LambdaFunctionRecommendation & AddMemorySizeRecommendationOptions(LambdaFunctionMemoryRecommendationOption &&value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUtilizationMetrics(Aws::Vector< LambdaFunctionUtilizationMetric > &&value)
LambdaFunctionRecommendation & AddMemorySizeRecommendationOptions(const LambdaFunctionMemoryRecommendationOption &value)
LambdaFunctionRecommendation & WithFunctionVersion(Aws::String &&value)
const Aws::Vector< LambdaFunctionUtilizationMetric > & GetUtilizationMetrics() const
const LambdaEffectiveRecommendationPreferences & GetEffectiveRecommendationPreferences() const
LambdaFunctionRecommendation & WithFindingReasonCodes(Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > &&value)
LambdaFunctionRecommendation & WithFinding(LambdaFunctionRecommendationFinding &&value)
LambdaFunctionRecommendation & WithLastRefreshTimestamp(Aws::Utils::DateTime &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionRecommendation & WithCurrentPerformanceRisk(CurrentPerformanceRisk &&value)
LambdaFunctionRecommendation & WithNumberOfInvocations(long long value)
void SetFinding(LambdaFunctionRecommendationFinding &&value)
LambdaFunctionRecommendation & WithFunctionVersion(const char *value)
LambdaFunctionRecommendation & WithEffectiveRecommendationPreferences(LambdaEffectiveRecommendationPreferences &&value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionRecommendation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue