AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UtilizationPreference.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/CustomizableMetricName.h>
9#include <aws/compute-optimizer/model/CustomizableMetricParameters.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
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API UtilizationPreference();
39 AWS_COMPUTEOPTIMIZER_API UtilizationPreference(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPUTEOPTIMIZER_API UtilizationPreference& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const CustomizableMetricName& GetMetricName() const{ return m_metricName; }
49 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
50 inline void SetMetricName(const CustomizableMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
51 inline void SetMetricName(CustomizableMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
52 inline UtilizationPreference& WithMetricName(const CustomizableMetricName& value) { SetMetricName(value); return *this;}
53 inline UtilizationPreference& WithMetricName(CustomizableMetricName&& value) { SetMetricName(std::move(value)); return *this;}
55
57
61 inline const CustomizableMetricParameters& GetMetricParameters() const{ return m_metricParameters; }
62 inline bool MetricParametersHasBeenSet() const { return m_metricParametersHasBeenSet; }
63 inline void SetMetricParameters(const CustomizableMetricParameters& value) { m_metricParametersHasBeenSet = true; m_metricParameters = value; }
64 inline void SetMetricParameters(CustomizableMetricParameters&& value) { m_metricParametersHasBeenSet = true; m_metricParameters = std::move(value); }
68 private:
69
70 CustomizableMetricName m_metricName;
71 bool m_metricNameHasBeenSet = false;
72
73 CustomizableMetricParameters m_metricParameters;
74 bool m_metricParametersHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ComputeOptimizer
79} // namespace Aws
UtilizationPreference & WithMetricParameters(const CustomizableMetricParameters &value)
const CustomizableMetricParameters & GetMetricParameters() const
UtilizationPreference & WithMetricParameters(CustomizableMetricParameters &&value)
AWS_COMPUTEOPTIMIZER_API UtilizationPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetricParameters(const CustomizableMetricParameters &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricParameters(CustomizableMetricParameters &&value)
const CustomizableMetricName & GetMetricName() const
AWS_COMPUTEOPTIMIZER_API UtilizationPreference(Aws::Utils::Json::JsonView jsonValue)
UtilizationPreference & WithMetricName(CustomizableMetricName &&value)
void SetMetricName(const CustomizableMetricName &value)
UtilizationPreference & WithMetricName(const CustomizableMetricName &value)
Aws::Utils::Json::JsonValue JsonValue