AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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 <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric() = default;
32 AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric()=default
LambdaFunctionUtilizationMetric & WithStatistic(LambdaFunctionMetricStatistic value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
LambdaFunctionUtilizationMetric & WithName(LambdaFunctionMetricName value)