AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RecommendedOptionProjectedMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/compute-optimizer/model/ProjectedMetric.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizer
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_COMPUTEOPTIMIZER_API RecommendedOptionProjectedMetric() = default;
47 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetRecommendedInstanceType() const { return m_recommendedInstanceType; }
55 inline bool RecommendedInstanceTypeHasBeenSet() const { return m_recommendedInstanceTypeHasBeenSet; }
56 template<typename RecommendedInstanceTypeT = Aws::String>
57 void SetRecommendedInstanceType(RecommendedInstanceTypeT&& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = std::forward<RecommendedInstanceTypeT>(value); }
58 template<typename RecommendedInstanceTypeT = Aws::String>
59 RecommendedOptionProjectedMetric& WithRecommendedInstanceType(RecommendedInstanceTypeT&& value) { SetRecommendedInstanceType(std::forward<RecommendedInstanceTypeT>(value)); return *this;}
61
63
70 inline int GetRank() const { return m_rank; }
71 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
72 inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; }
73 inline RecommendedOptionProjectedMetric& WithRank(int value) { SetRank(value); return *this;}
75
77
80 inline const Aws::Vector<ProjectedMetric>& GetProjectedMetrics() const { return m_projectedMetrics; }
81 inline bool ProjectedMetricsHasBeenSet() const { return m_projectedMetricsHasBeenSet; }
82 template<typename ProjectedMetricsT = Aws::Vector<ProjectedMetric>>
83 void SetProjectedMetrics(ProjectedMetricsT&& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics = std::forward<ProjectedMetricsT>(value); }
84 template<typename ProjectedMetricsT = Aws::Vector<ProjectedMetric>>
85 RecommendedOptionProjectedMetric& WithProjectedMetrics(ProjectedMetricsT&& value) { SetProjectedMetrics(std::forward<ProjectedMetricsT>(value)); return *this;}
86 template<typename ProjectedMetricsT = ProjectedMetric>
87 RecommendedOptionProjectedMetric& AddProjectedMetrics(ProjectedMetricsT&& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics.emplace_back(std::forward<ProjectedMetricsT>(value)); return *this; }
89 private:
90
91 Aws::String m_recommendedInstanceType;
92 bool m_recommendedInstanceTypeHasBeenSet = false;
93
94 int m_rank{0};
95 bool m_rankHasBeenSet = false;
96
97 Aws::Vector<ProjectedMetric> m_projectedMetrics;
98 bool m_projectedMetricsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ComputeOptimizer
103} // 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