AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomizableMetricParameters.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/CustomizableMetricThreshold.h>
9#include <aws/compute-optimizer/model/CustomizableMetricHeadroom.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 CustomizableMetricParameters();
37 AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const CustomizableMetricThreshold& GetThreshold() const{ return m_threshold; }
48 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
49 inline void SetThreshold(const CustomizableMetricThreshold& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
50 inline void SetThreshold(CustomizableMetricThreshold&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
52 inline CustomizableMetricParameters& WithThreshold(CustomizableMetricThreshold&& value) { SetThreshold(std::move(value)); return *this;}
54
56
63 inline const CustomizableMetricHeadroom& GetHeadroom() const{ return m_headroom; }
64 inline bool HeadroomHasBeenSet() const { return m_headroomHasBeenSet; }
65 inline void SetHeadroom(const CustomizableMetricHeadroom& value) { m_headroomHasBeenSet = true; m_headroom = value; }
66 inline void SetHeadroom(CustomizableMetricHeadroom&& value) { m_headroomHasBeenSet = true; m_headroom = std::move(value); }
68 inline CustomizableMetricParameters& WithHeadroom(CustomizableMetricHeadroom&& value) { SetHeadroom(std::move(value)); return *this;}
70 private:
71
73 bool m_thresholdHasBeenSet = false;
74
76 bool m_headroomHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ComputeOptimizer
81} // namespace Aws
AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters(Aws::Utils::Json::JsonView jsonValue)
CustomizableMetricParameters & WithThreshold(const CustomizableMetricThreshold &value)
CustomizableMetricParameters & WithHeadroom(CustomizableMetricHeadroom &&value)
AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThreshold(const CustomizableMetricThreshold &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
CustomizableMetricParameters & WithHeadroom(const CustomizableMetricHeadroom &value)
CustomizableMetricParameters & WithThreshold(CustomizableMetricThreshold &&value)
Aws::Utils::Json::JsonValue JsonValue