AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RecommendationSummary.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/CurrentPerformanceRiskRatings.h>
9#include <aws/compute-optimizer/model/IdleSummary.h>
10#include <aws/compute-optimizer/model/InferredWorkloadSaving.h>
11#include <aws/compute-optimizer/model/RecommendationSourceType.h>
12#include <aws/compute-optimizer/model/SavingsOpportunity.h>
13#include <aws/compute-optimizer/model/Summary.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ComputeOptimizer {
27namespace Model {
28
35 public:
36 AWS_COMPUTEOPTIMIZER_API RecommendationSummary() = default;
37 AWS_COMPUTEOPTIMIZER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API RecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::Vector<Summary>& GetSummaries() const { return m_summaries; }
46 inline bool SummariesHasBeenSet() const { return m_summariesHasBeenSet; }
47 template <typename SummariesT = Aws::Vector<Summary>>
48 void SetSummaries(SummariesT&& value) {
49 m_summariesHasBeenSet = true;
50 m_summaries = std::forward<SummariesT>(value);
51 }
52 template <typename SummariesT = Aws::Vector<Summary>>
53 RecommendationSummary& WithSummaries(SummariesT&& value) {
54 SetSummaries(std::forward<SummariesT>(value));
55 return *this;
56 }
57 template <typename SummariesT = Summary>
58 RecommendationSummary& AddSummaries(SummariesT&& value) {
59 m_summariesHasBeenSet = true;
60 m_summaries.emplace_back(std::forward<SummariesT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Vector<IdleSummary>& GetIdleSummaries() const { return m_idleSummaries; }
70 inline bool IdleSummariesHasBeenSet() const { return m_idleSummariesHasBeenSet; }
71 template <typename IdleSummariesT = Aws::Vector<IdleSummary>>
72 void SetIdleSummaries(IdleSummariesT&& value) {
73 m_idleSummariesHasBeenSet = true;
74 m_idleSummaries = std::forward<IdleSummariesT>(value);
75 }
76 template <typename IdleSummariesT = Aws::Vector<IdleSummary>>
77 RecommendationSummary& WithIdleSummaries(IdleSummariesT&& value) {
78 SetIdleSummaries(std::forward<IdleSummariesT>(value));
79 return *this;
80 }
81 template <typename IdleSummariesT = IdleSummary>
82 RecommendationSummary& AddIdleSummaries(IdleSummariesT&& value) {
83 m_idleSummariesHasBeenSet = true;
84 m_idleSummaries.emplace_back(std::forward<IdleSummariesT>(value));
85 return *this;
86 }
88
90
93 inline RecommendationSourceType GetRecommendationResourceType() const { return m_recommendationResourceType; }
94 inline bool RecommendationResourceTypeHasBeenSet() const { return m_recommendationResourceTypeHasBeenSet; }
96 m_recommendationResourceTypeHasBeenSet = true;
97 m_recommendationResourceType = value;
98 }
101 return *this;
102 }
104
106
109 inline const Aws::String& GetAccountId() const { return m_accountId; }
110 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
111 template <typename AccountIdT = Aws::String>
112 void SetAccountId(AccountIdT&& value) {
113 m_accountIdHasBeenSet = true;
114 m_accountId = std::forward<AccountIdT>(value);
115 }
116 template <typename AccountIdT = Aws::String>
118 SetAccountId(std::forward<AccountIdT>(value));
119 return *this;
120 }
122
124
129 inline const SavingsOpportunity& GetSavingsOpportunity() const { return m_savingsOpportunity; }
130 inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; }
131 template <typename SavingsOpportunityT = SavingsOpportunity>
132 void SetSavingsOpportunity(SavingsOpportunityT&& value) {
133 m_savingsOpportunityHasBeenSet = true;
134 m_savingsOpportunity = std::forward<SavingsOpportunityT>(value);
135 }
136 template <typename SavingsOpportunityT = SavingsOpportunity>
137 RecommendationSummary& WithSavingsOpportunity(SavingsOpportunityT&& value) {
138 SetSavingsOpportunity(std::forward<SavingsOpportunityT>(value));
139 return *this;
140 }
142
144
145 inline const SavingsOpportunity& GetIdleSavingsOpportunity() const { return m_idleSavingsOpportunity; }
146 inline bool IdleSavingsOpportunityHasBeenSet() const { return m_idleSavingsOpportunityHasBeenSet; }
147 template <typename IdleSavingsOpportunityT = SavingsOpportunity>
148 void SetIdleSavingsOpportunity(IdleSavingsOpportunityT&& value) {
149 m_idleSavingsOpportunityHasBeenSet = true;
150 m_idleSavingsOpportunity = std::forward<IdleSavingsOpportunityT>(value);
151 }
152 template <typename IdleSavingsOpportunityT = SavingsOpportunity>
153 RecommendationSummary& WithIdleSavingsOpportunity(IdleSavingsOpportunityT&& value) {
154 SetIdleSavingsOpportunity(std::forward<IdleSavingsOpportunityT>(value));
155 return *this;
156 }
158
160
161 inline const SavingsOpportunity& GetAggregatedSavingsOpportunity() const { return m_aggregatedSavingsOpportunity; }
162 inline bool AggregatedSavingsOpportunityHasBeenSet() const { return m_aggregatedSavingsOpportunityHasBeenSet; }
163 template <typename AggregatedSavingsOpportunityT = SavingsOpportunity>
164 void SetAggregatedSavingsOpportunity(AggregatedSavingsOpportunityT&& value) {
165 m_aggregatedSavingsOpportunityHasBeenSet = true;
166 m_aggregatedSavingsOpportunity = std::forward<AggregatedSavingsOpportunityT>(value);
167 }
168 template <typename AggregatedSavingsOpportunityT = SavingsOpportunity>
169 RecommendationSummary& WithAggregatedSavingsOpportunity(AggregatedSavingsOpportunityT&& value) {
170 SetAggregatedSavingsOpportunity(std::forward<AggregatedSavingsOpportunityT>(value));
171 return *this;
172 }
174
176
180 inline const CurrentPerformanceRiskRatings& GetCurrentPerformanceRiskRatings() const { return m_currentPerformanceRiskRatings; }
181 inline bool CurrentPerformanceRiskRatingsHasBeenSet() const { return m_currentPerformanceRiskRatingsHasBeenSet; }
182 template <typename CurrentPerformanceRiskRatingsT = CurrentPerformanceRiskRatings>
183 void SetCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatingsT&& value) {
184 m_currentPerformanceRiskRatingsHasBeenSet = true;
185 m_currentPerformanceRiskRatings = std::forward<CurrentPerformanceRiskRatingsT>(value);
186 }
187 template <typename CurrentPerformanceRiskRatingsT = CurrentPerformanceRiskRatings>
188 RecommendationSummary& WithCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatingsT&& value) {
189 SetCurrentPerformanceRiskRatings(std::forward<CurrentPerformanceRiskRatingsT>(value));
190 return *this;
191 }
193
195
201 inline const Aws::Vector<InferredWorkloadSaving>& GetInferredWorkloadSavings() const { return m_inferredWorkloadSavings; }
202 inline bool InferredWorkloadSavingsHasBeenSet() const { return m_inferredWorkloadSavingsHasBeenSet; }
203 template <typename InferredWorkloadSavingsT = Aws::Vector<InferredWorkloadSaving>>
204 void SetInferredWorkloadSavings(InferredWorkloadSavingsT&& value) {
205 m_inferredWorkloadSavingsHasBeenSet = true;
206 m_inferredWorkloadSavings = std::forward<InferredWorkloadSavingsT>(value);
207 }
208 template <typename InferredWorkloadSavingsT = Aws::Vector<InferredWorkloadSaving>>
209 RecommendationSummary& WithInferredWorkloadSavings(InferredWorkloadSavingsT&& value) {
210 SetInferredWorkloadSavings(std::forward<InferredWorkloadSavingsT>(value));
211 return *this;
212 }
213 template <typename InferredWorkloadSavingsT = InferredWorkloadSaving>
214 RecommendationSummary& AddInferredWorkloadSavings(InferredWorkloadSavingsT&& value) {
215 m_inferredWorkloadSavingsHasBeenSet = true;
216 m_inferredWorkloadSavings.emplace_back(std::forward<InferredWorkloadSavingsT>(value));
217 return *this;
218 }
220 private:
221 Aws::Vector<Summary> m_summaries;
222
223 Aws::Vector<IdleSummary> m_idleSummaries;
224
226
227 Aws::String m_accountId;
228
229 SavingsOpportunity m_savingsOpportunity;
230
231 SavingsOpportunity m_idleSavingsOpportunity;
232
233 SavingsOpportunity m_aggregatedSavingsOpportunity;
234
235 CurrentPerformanceRiskRatings m_currentPerformanceRiskRatings;
236
237 Aws::Vector<InferredWorkloadSaving> m_inferredWorkloadSavings;
238 bool m_summariesHasBeenSet = false;
239 bool m_idleSummariesHasBeenSet = false;
240 bool m_recommendationResourceTypeHasBeenSet = false;
241 bool m_accountIdHasBeenSet = false;
242 bool m_savingsOpportunityHasBeenSet = false;
243 bool m_idleSavingsOpportunityHasBeenSet = false;
244 bool m_aggregatedSavingsOpportunityHasBeenSet = false;
245 bool m_currentPerformanceRiskRatingsHasBeenSet = false;
246 bool m_inferredWorkloadSavingsHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace ComputeOptimizer
251} // namespace Aws
RecommendationSummary & WithAggregatedSavingsOpportunity(AggregatedSavingsOpportunityT &&value)
const SavingsOpportunity & GetAggregatedSavingsOpportunity() const
const Aws::Vector< InferredWorkloadSaving > & GetInferredWorkloadSavings() const
RecommendationSummary & WithInferredWorkloadSavings(InferredWorkloadSavingsT &&value)
const Aws::Vector< Summary > & GetSummaries() const
void SetInferredWorkloadSavings(InferredWorkloadSavingsT &&value)
void SetRecommendationResourceType(RecommendationSourceType value)
RecommendationSummary & WithIdleSummaries(IdleSummariesT &&value)
void SetIdleSavingsOpportunity(IdleSavingsOpportunityT &&value)
const CurrentPerformanceRiskRatings & GetCurrentPerformanceRiskRatings() const
AWS_COMPUTEOPTIMIZER_API RecommendationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationSourceType GetRecommendationResourceType() const
RecommendationSummary & WithCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatingsT &&value)
RecommendationSummary & AddIdleSummaries(IdleSummariesT &&value)
RecommendationSummary & WithSavingsOpportunity(SavingsOpportunityT &&value)
RecommendationSummary & WithSummaries(SummariesT &&value)
RecommendationSummary & WithRecommendationResourceType(RecommendationSourceType value)
const SavingsOpportunity & GetIdleSavingsOpportunity() const
AWS_COMPUTEOPTIMIZER_API RecommendationSummary()=default
RecommendationSummary & AddInferredWorkloadSavings(InferredWorkloadSavingsT &&value)
RecommendationSummary & WithAccountId(AccountIdT &&value)
const Aws::Vector< IdleSummary > & GetIdleSummaries() const
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
void SetAggregatedSavingsOpportunity(AggregatedSavingsOpportunityT &&value)
void SetCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatingsT &&value)
RecommendationSummary & AddSummaries(SummariesT &&value)
RecommendationSummary & WithIdleSavingsOpportunity(IdleSavingsOpportunityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue