AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric() = default;
34 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline LambdaFunctionMetricName GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(LambdaFunctionMetricName value) {
46 m_nameHasBeenSet = true;
47 m_name = value;
48 }
50 SetName(value);
51 return *this;
52 }
54
56
71 inline LambdaFunctionMetricStatistic GetStatistic() const { return m_statistic; }
72 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
74 m_statisticHasBeenSet = true;
75 m_statistic = value;
76 }
78 SetStatistic(value);
79 return *this;
80 }
82
84
87 inline double GetValue() const { return m_value; }
88 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
89 inline void SetValue(double value) {
90 m_valueHasBeenSet = true;
91 m_value = value;
92 }
94 SetValue(value);
95 return *this;
96 }
98 private:
100
102
103 double m_value{0.0};
104 bool m_nameHasBeenSet = false;
105 bool m_statisticHasBeenSet = false;
106 bool m_valueHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ComputeOptimizer
111} // 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