AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RecommendedOptionProjectedMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ProjectedMetric.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ComputeOptimizer {
22namespace Model {
23
38 public:
39 AWS_COMPUTEOPTIMIZER_API RecommendedOptionProjectedMetric() = default;
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetRecommendedInstanceType() const { return m_recommendedInstanceType; }
49 inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; }
50 template <typename RecommendedInstanceTypeT = Aws::String>
51 void SetRecommendedInstanceType(RecommendedInstanceTypeT&& value) {
52 m_recommendedInstanceTypeHasBeenSet = true;
53 m_recommendedInstanceType = std::forward<RecommendedInstanceTypeT>(value);
54 }
55 template <typename RecommendedInstanceTypeT = Aws::String>
57 SetRecommendedInstanceType(std::forward<RecommendedInstanceTypeT>(value));
58 return *this;
59 }
61
63
70 inline int GetRank() const { return m_rank; }
71 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
72 inline void SetRank(int value) {
73 m_rankHasBeenSet = true;
74 m_rank = value;
75 }
77 SetRank(value);
78 return *this;
79 }
81
83
86 inline const Aws::Vector<ProjectedMetric>& GetProjectedMetrics() const { return m_projectedMetrics; }
87 inline bool ProjectedMetricsHasBeenSet() const { return m_projectedMetricsHasBeenSet; }
88 template <typename ProjectedMetricsT = Aws::Vector<ProjectedMetric>>
89 void SetProjectedMetrics(ProjectedMetricsT&& value) {
90 m_projectedMetricsHasBeenSet = true;
91 m_projectedMetrics = std::forward<ProjectedMetricsT>(value);
92 }
93 template <typename ProjectedMetricsT = Aws::Vector<ProjectedMetric>>
95 SetProjectedMetrics(std::forward<ProjectedMetricsT>(value));
96 return *this;
97 }
98 template <typename ProjectedMetricsT = ProjectedMetric>
100 m_projectedMetricsHasBeenSet = true;
101 m_projectedMetrics.emplace_back(std::forward<ProjectedMetricsT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_recommendedInstanceType;
107
108 int m_rank{0};
109
110 Aws::Vector<ProjectedMetric> m_projectedMetrics;
111 bool m_recommendedInstanceTypeHasBeenSet = false;
112 bool m_rankHasBeenSet = false;
113 bool m_projectedMetricsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ComputeOptimizer
118} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue