AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const LambdaFunctionMetricName& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const LambdaFunctionMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(LambdaFunctionMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline LambdaFunctionUtilizationMetric& WithName(const LambdaFunctionMetricName& value) { SetName(value); return *this;}
54 inline LambdaFunctionUtilizationMetric& WithName(LambdaFunctionMetricName&& value) { SetName(std::move(value)); return *this;}
56
58
73 inline const LambdaFunctionMetricStatistic& GetStatistic() const{ return m_statistic; }
74 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
75 inline void SetStatistic(const LambdaFunctionMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
76 inline void SetStatistic(LambdaFunctionMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
80
82
85 inline double GetValue() const{ return m_value; }
86 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
87 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
88 inline LambdaFunctionUtilizationMetric& WithValue(double value) { SetValue(value); return *this;}
90 private:
91
93 bool m_nameHasBeenSet = false;
94
96 bool m_statisticHasBeenSet = false;
97
98 double m_value;
99 bool m_valueHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ComputeOptimizer
104} // namespace Aws
LambdaFunctionUtilizationMetric & WithName(LambdaFunctionMetricName &&value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionUtilizationMetric & WithStatistic(const LambdaFunctionMetricStatistic &value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionUtilizationMetric(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionUtilizationMetric & WithName(const LambdaFunctionMetricName &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionUtilizationMetric & WithStatistic(LambdaFunctionMetricStatistic &&value)
Aws::Utils::Json::JsonValue JsonValue