AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaFunctionUtilizationMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/LambdaFunctionMetricName.h>
9#include <aws/compute-optimizer/model/LambdaFunctionMetricStatistic.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric() = default;
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline LambdaFunctionMetricName GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(LambdaFunctionMetricName value) { m_nameHasBeenSet = true; m_name = value; }
54
56
71 inline LambdaFunctionMetricStatistic GetStatistic() const { return m_statistic; }
72 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
73 inline void SetStatistic(LambdaFunctionMetricStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
76
78
81 inline double GetValue() const { return m_value; }
82 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
83 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
84 inline LambdaFunctionUtilizationMetric& WithValue(double value) { SetValue(value); return *this;}
86 private:
87
89 bool m_nameHasBeenSet = false;
90
92 bool m_statisticHasBeenSet = false;
93
94 double m_value{0.0};
95 bool m_valueHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ComputeOptimizer
100} // namespace Aws
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric()=default
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionUtilizationMetric & WithStatistic(LambdaFunctionMetricStatistic value)
LambdaFunctionUtilizationMetric & WithName(LambdaFunctionMetricName value)
Aws::Utils::Json::JsonValue JsonValue