AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecommendedInstanceType(const Aws::String& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = value; }
57 inline void SetRecommendedInstanceType(Aws::String&& value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType = std::move(value); }
58 inline void SetRecommendedInstanceType(const char* value) { m_recommendedInstanceTypeHasBeenSet = true; m_recommendedInstanceType.assign(value); }
63
65
72 inline int GetRank() const{ return m_rank; }
73 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
74 inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; }
75 inline RecommendedOptionProjectedMetric& WithRank(int value) { SetRank(value); return *this;}
77
79
82 inline const Aws::Vector<ProjectedMetric>& GetProjectedMetrics() const{ return m_projectedMetrics; }
83 inline bool ProjectedMetricsHasBeenSet() const { return m_projectedMetricsHasBeenSet; }
84 inline void SetProjectedMetrics(const Aws::Vector<ProjectedMetric>& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics = value; }
85 inline void SetProjectedMetrics(Aws::Vector<ProjectedMetric>&& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics = std::move(value); }
88 inline RecommendedOptionProjectedMetric& AddProjectedMetrics(const ProjectedMetric& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics.push_back(value); return *this; }
89 inline RecommendedOptionProjectedMetric& AddProjectedMetrics(ProjectedMetric&& value) { m_projectedMetricsHasBeenSet = true; m_projectedMetrics.push_back(std::move(value)); return *this; }
91 private:
92
93 Aws::String m_recommendedInstanceType;
94 bool m_recommendedInstanceTypeHasBeenSet = false;
95
96 int m_rank;
97 bool m_rankHasBeenSet = false;
98
99 Aws::Vector<ProjectedMetric> m_projectedMetrics;
100 bool m_projectedMetricsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ComputeOptimizer
105} // 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