AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CustomizableMetricParameters.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/CustomizableMetricHeadroom.h>
9#include <aws/compute-optimizer/model/CustomizableMetricThreshold.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 CustomizableMetricParameters() = default;
32 AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline CustomizableMetricThreshold GetThreshold() const { return m_threshold; }
42 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
44 m_thresholdHasBeenSet = true;
45 m_threshold = value;
46 }
48 SetThreshold(value);
49 return *this;
50 }
52
54
61 inline CustomizableMetricHeadroom GetHeadroom() const { return m_headroom; }
62 inline bool HeadroomHasBeenSet() const { return m_headroomHasBeenSet; }
64 m_headroomHasBeenSet = true;
65 m_headroom = value;
66 }
68 SetHeadroom(value);
69 return *this;
70 }
72 private:
74
76 bool m_thresholdHasBeenSet = false;
77 bool m_headroomHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ComputeOptimizer
82} // namespace Aws
AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API CustomizableMetricParameters()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
CustomizableMetricParameters & WithThreshold(CustomizableMetricThreshold value)
CustomizableMetricParameters & WithHeadroom(CustomizableMetricHeadroom value)
Aws::Utils::Json::JsonValue JsonValue