AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaFunctionMemoryProjectedMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/LambdaFunctionMemoryMetricName.h>
9#include <aws/compute-optimizer/model/LambdaFunctionMemoryMetricStatistic.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 LambdaFunctionMemoryProjectedMetric();
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const LambdaFunctionMemoryMetricName& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const LambdaFunctionMemoryMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(LambdaFunctionMemoryMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline LambdaFunctionMemoryProjectedMetric& WithName(LambdaFunctionMemoryMetricName&& value) { SetName(std::move(value)); return *this;}
53
55
58 inline const LambdaFunctionMemoryMetricStatistic& GetStatistic() const{ return m_statistic; }
59 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
60 inline void SetStatistic(const LambdaFunctionMemoryMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
61 inline void SetStatistic(LambdaFunctionMemoryMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
65
67
70 inline double GetValue() const{ return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
73 inline LambdaFunctionMemoryProjectedMetric& WithValue(double value) { SetValue(value); return *this;}
75 private:
76
78 bool m_nameHasBeenSet = false;
79
81 bool m_statisticHasBeenSet = false;
82
83 double m_value;
84 bool m_valueHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ComputeOptimizer
89} // namespace Aws
AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryProjectedMetric(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionMemoryProjectedMetric & WithStatistic(const LambdaFunctionMemoryMetricStatistic &value)
AWS_COMPUTEOPTIMIZER_API LambdaFunctionMemoryProjectedMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionMemoryProjectedMetric & WithName(const LambdaFunctionMemoryMetricName &value)
LambdaFunctionMemoryProjectedMetric & WithStatistic(LambdaFunctionMemoryMetricStatistic &&value)
LambdaFunctionMemoryProjectedMetric & WithName(LambdaFunctionMemoryMetricName &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue