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>
30namespace ComputeOptimizer
57 inline void SetFunctionArn(
const char* value) { m_functionArnHasBeenSet =
true; m_functionArn.assign(value); }
71 inline void SetFunctionVersion(
const char* value) { m_functionVersionHasBeenSet =
true; m_functionVersion.assign(value); }
85 inline void SetAccountId(
const char* value) { m_accountIdHasBeenSet =
true; m_accountId.assign(value); }
97 inline void SetCurrentMemorySize(
int value) { m_currentMemorySizeHasBeenSet =
true; m_currentMemorySize = value; }
108 inline void SetNumberOfInvocations(
long long value) { m_numberOfInvocationsHasBeenSet =
true; m_numberOfInvocations = value; }
134 inline void SetLookbackPeriodInDays(
double value) { m_lookbackPeriodInDaysHasBeenSet =
true; m_lookbackPeriodInDays = value; }
276 bool m_functionArnHasBeenSet =
false;
279 bool m_functionVersionHasBeenSet =
false;
282 bool m_accountIdHasBeenSet =
false;
284 int m_currentMemorySize;
285 bool m_currentMemorySizeHasBeenSet =
false;
287 long long m_numberOfInvocations;
288 bool m_numberOfInvocationsHasBeenSet =
false;
291 bool m_utilizationMetricsHasBeenSet =
false;
293 double m_lookbackPeriodInDays;
294 bool m_lookbackPeriodInDaysHasBeenSet =
false;
297 bool m_lastRefreshTimestampHasBeenSet =
false;
300 bool m_findingHasBeenSet =
false;
303 bool m_findingReasonCodesHasBeenSet =
false;
306 bool m_memorySizeRecommendationOptionsHasBeenSet =
false;
309 bool m_currentPerformanceRiskHasBeenSet =
false;
312 bool m_effectiveRecommendationPreferencesHasBeenSet =
false;
315 bool m_tagsHasBeenSet =
false;
LambdaFunctionRecommendation & WithLastRefreshTimestamp(const Aws::Utils::DateTime &value)
const LambdaFunctionRecommendationFinding & GetFinding() const
LambdaFunctionRecommendation & WithMemorySizeRecommendationOptions(Aws::Vector< LambdaFunctionMemoryRecommendationOption > &&value)
LambdaFunctionRecommendation & WithCurrentMemorySize(int value)
const CurrentPerformanceRisk & GetCurrentPerformanceRisk() const
void SetFunctionArn(const Aws::String &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 SetNumberOfInvocations(long long value)
void SetAccountId(const char *value)
long long GetNumberOfInvocations() const
void SetFunctionArn(const char *value)
void SetEffectiveRecommendationPreferences(LambdaEffectiveRecommendationPreferences &&value)
LambdaFunctionRecommendation & AddTags(const Tag &value)
bool FunctionArnHasBeenSet() const
bool UtilizationMetricsHasBeenSet() const
bool CurrentMemorySizeHasBeenSet() const
void SetCurrentMemorySize(int value)
LambdaFunctionRecommendation & WithUtilizationMetrics(const Aws::Vector< LambdaFunctionUtilizationMetric > &value)
LambdaFunctionRecommendation & WithTags(Aws::Vector< Tag > &&value)
const Aws::Utils::DateTime & GetLastRefreshTimestamp() const
void SetFunctionVersion(const char *value)
bool FindingHasBeenSet() const
void SetLastRefreshTimestamp(Aws::Utils::DateTime &&value)
LambdaFunctionRecommendation & AddUtilizationMetrics(const LambdaFunctionUtilizationMetric &value)
LambdaFunctionRecommendation & WithFunctionArn(const Aws::String &value)
bool NumberOfInvocationsHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
bool FunctionVersionHasBeenSet() const
double GetLookbackPeriodInDays() const
LambdaFunctionRecommendation & WithFunctionArn(Aws::String &&value)
const Aws::Vector< LambdaFunctionMemoryRecommendationOption > & GetMemorySizeRecommendationOptions() const
bool LookbackPeriodInDaysHasBeenSet() const
void SetUtilizationMetrics(const Aws::Vector< LambdaFunctionUtilizationMetric > &value)
const Aws::String & GetFunctionArn() const
void SetCurrentPerformanceRisk(CurrentPerformanceRisk &&value)
bool FindingReasonCodesHasBeenSet() const
void SetAccountId(const Aws::String &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)
const Aws::String & GetFunctionVersion() const
void SetFindingReasonCodes(const Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > &value)
void SetFunctionVersion(const Aws::String &value)
bool CurrentPerformanceRiskHasBeenSet() const
LambdaFunctionRecommendation & AddUtilizationMetrics(LambdaFunctionUtilizationMetric &&value)
bool AccountIdHasBeenSet() const
LambdaFunctionRecommendation & AddFindingReasonCodes(const LambdaFunctionRecommendationFindingReasonCode &value)
void SetEffectiveRecommendationPreferences(const LambdaEffectiveRecommendationPreferences &value)
void SetMemorySizeRecommendationOptions(Aws::Vector< LambdaFunctionMemoryRecommendationOption > &&value)
LambdaFunctionRecommendation & WithAccountId(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionRecommendation()
LambdaFunctionRecommendation & WithUtilizationMetrics(Aws::Vector< LambdaFunctionUtilizationMetric > &&value)
LambdaFunctionRecommendation & WithAccountId(Aws::String &&value)
int GetCurrentMemorySize() const
const Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > & GetFindingReasonCodes() const
bool MemorySizeRecommendationOptionsHasBeenSet() const
void SetLastRefreshTimestamp(const Aws::Utils::DateTime &value)
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)
bool LastRefreshTimestampHasBeenSet() const
void SetUtilizationMetrics(Aws::Vector< LambdaFunctionUtilizationMetric > &&value)
void SetFunctionArn(Aws::String &&value)
LambdaFunctionRecommendation & AddMemorySizeRecommendationOptions(const LambdaFunctionMemoryRecommendationOption &value)
LambdaFunctionRecommendation & WithFunctionVersion(Aws::String &&value)
const Aws::Vector< LambdaFunctionUtilizationMetric > & GetUtilizationMetrics() const
void SetFunctionVersion(Aws::String &&value)
const LambdaEffectiveRecommendationPreferences & GetEffectiveRecommendationPreferences() const
LambdaFunctionRecommendation & WithFindingReasonCodes(Aws::Vector< LambdaFunctionRecommendationFindingReasonCode > &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetLookbackPeriodInDays(double value)
LambdaFunctionRecommendation & WithFinding(LambdaFunctionRecommendationFinding &&value)
const Aws::String & GetAccountId() const
bool TagsHasBeenSet() const
LambdaFunctionRecommendation & WithLastRefreshTimestamp(Aws::Utils::DateTime &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionRecommendation & WithCurrentPerformanceRisk(CurrentPerformanceRisk &&value)
const Aws::Vector< Tag > & GetTags() const
void SetCurrentPerformanceRisk(const CurrentPerformanceRisk &value)
LambdaFunctionRecommendation & WithNumberOfInvocations(long long value)
void SetFinding(LambdaFunctionRecommendationFinding &&value)
void SetAccountId(Aws::String &&value)
LambdaFunctionRecommendation & WithFunctionVersion(const char *value)
LambdaFunctionRecommendation & AddTags(Tag &&value)
LambdaFunctionRecommendation & WithEffectiveRecommendationPreferences(LambdaEffectiveRecommendationPreferences &&value)
bool EffectiveRecommendationPreferencesHasBeenSet() const
AWS_COMPUTEOPTIMIZER_API LambdaFunctionRecommendation(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionRecommendationFindingReasonCode
LambdaFunctionRecommendationFinding
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue