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>
26namespace ComputeOptimizer {
47 template <
typename SummariesT = Aws::Vector<Summary>>
49 m_summariesHasBeenSet =
true;
50 m_summaries = std::forward<SummariesT>(value);
52 template <
typename SummariesT = Aws::Vector<Summary>>
57 template <
typename SummariesT = Summary>
59 m_summariesHasBeenSet =
true;
60 m_summaries.emplace_back(std::forward<SummariesT>(value));
71 template <
typename IdleSummariesT = Aws::Vector<IdleSummary>>
73 m_idleSummariesHasBeenSet =
true;
74 m_idleSummaries = std::forward<IdleSummariesT>(value);
76 template <
typename IdleSummariesT = Aws::Vector<IdleSummary>>
81 template <
typename IdleSummariesT = IdleSummary>
83 m_idleSummariesHasBeenSet =
true;
84 m_idleSummaries.emplace_back(std::forward<IdleSummariesT>(value));
96 m_recommendationResourceTypeHasBeenSet =
true;
97 m_recommendationResourceType = value;
111 template <
typename AccountIdT = Aws::String>
113 m_accountIdHasBeenSet =
true;
114 m_accountId = std::forward<AccountIdT>(value);
116 template <
typename AccountIdT = Aws::String>
131 template <
typename SavingsOpportunityT = SavingsOpportunity>
133 m_savingsOpportunityHasBeenSet =
true;
134 m_savingsOpportunity = std::forward<SavingsOpportunityT>(value);
136 template <
typename SavingsOpportunityT = SavingsOpportunity>
147 template <
typename IdleSavingsOpportunityT = SavingsOpportunity>
149 m_idleSavingsOpportunityHasBeenSet =
true;
150 m_idleSavingsOpportunity = std::forward<IdleSavingsOpportunityT>(value);
152 template <
typename IdleSavingsOpportunityT = SavingsOpportunity>
163 template <
typename AggregatedSavingsOpportunityT = SavingsOpportunity>
165 m_aggregatedSavingsOpportunityHasBeenSet =
true;
166 m_aggregatedSavingsOpportunity = std::forward<AggregatedSavingsOpportunityT>(value);
168 template <
typename AggregatedSavingsOpportunityT = SavingsOpportunity>
182 template <
typename CurrentPerformanceRiskRatingsT = CurrentPerformanceRiskRatings>
184 m_currentPerformanceRiskRatingsHasBeenSet =
true;
185 m_currentPerformanceRiskRatings = std::forward<CurrentPerformanceRiskRatingsT>(value);
187 template <
typename CurrentPerformanceRiskRatingsT = CurrentPerformanceRiskRatings>
203 template <
typename InferredWorkloadSavingsT = Aws::Vector<InferredWorkloadSaving>>
205 m_inferredWorkloadSavingsHasBeenSet =
true;
206 m_inferredWorkloadSavings = std::forward<InferredWorkloadSavingsT>(value);
208 template <
typename InferredWorkloadSavingsT = Aws::Vector<InferredWorkloadSaving>>
213 template <
typename InferredWorkloadSavingsT = InferredWorkloadSaving>
215 m_inferredWorkloadSavingsHasBeenSet =
true;
216 m_inferredWorkloadSavings.emplace_back(std::forward<InferredWorkloadSavingsT>(value));
229 SavingsOpportunity m_savingsOpportunity;
231 SavingsOpportunity m_idleSavingsOpportunity;
233 SavingsOpportunity m_aggregatedSavingsOpportunity;
235 CurrentPerformanceRiskRatings m_currentPerformanceRiskRatings;
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;
RecommendationSummary & WithAggregatedSavingsOpportunity(AggregatedSavingsOpportunityT &&value)
const SavingsOpportunity & GetSavingsOpportunity() const
bool AggregatedSavingsOpportunityHasBeenSet() const
bool SavingsOpportunityHasBeenSet() const
bool SummariesHasBeenSet() const
const SavingsOpportunity & GetAggregatedSavingsOpportunity() const
void SetAccountId(AccountIdT &&value)
const Aws::Vector< InferredWorkloadSaving > & GetInferredWorkloadSavings() const
RecommendationSummary & WithInferredWorkloadSavings(InferredWorkloadSavingsT &&value)
const Aws::String & GetAccountId() const
const Aws::Vector< Summary > & GetSummaries() const
void SetInferredWorkloadSavings(InferredWorkloadSavingsT &&value)
void SetRecommendationResourceType(RecommendationSourceType value)
bool RecommendationResourceTypeHasBeenSet() const
bool IdleSavingsOpportunityHasBeenSet() const
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)
void SetSummaries(SummariesT &&value)
RecommendationSummary & AddIdleSummaries(IdleSummariesT &&value)
RecommendationSummary & WithSavingsOpportunity(SavingsOpportunityT &&value)
bool InferredWorkloadSavingsHasBeenSet() const
RecommendationSummary & WithSummaries(SummariesT &&value)
RecommendationSummary & WithRecommendationResourceType(RecommendationSourceType value)
bool CurrentPerformanceRiskRatingsHasBeenSet() const
const SavingsOpportunity & GetIdleSavingsOpportunity() const
AWS_COMPUTEOPTIMIZER_API RecommendationSummary()=default
bool IdleSummariesHasBeenSet() const
RecommendationSummary & AddInferredWorkloadSavings(InferredWorkloadSavingsT &&value)
RecommendationSummary & WithAccountId(AccountIdT &&value)
const Aws::Vector< IdleSummary > & GetIdleSummaries() const
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSavingsOpportunity(SavingsOpportunityT &&value)
AWS_COMPUTEOPTIMIZER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
bool AccountIdHasBeenSet() const
void SetAggregatedSavingsOpportunity(AggregatedSavingsOpportunityT &&value)
void SetIdleSummaries(IdleSummariesT &&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