AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationSummary.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/compute-optimizer/model/RecommendationSourceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/compute-optimizer/model/SavingsOpportunity.h>
12#include <aws/compute-optimizer/model/CurrentPerformanceRiskRatings.h>
13#include <aws/compute-optimizer/model/Summary.h>
14#include <aws/compute-optimizer/model/InferredWorkloadSaving.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ComputeOptimizer
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_COMPUTEOPTIMIZER_API RecommendationSummary();
41 AWS_COMPUTEOPTIMIZER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API RecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<Summary>& GetSummaries() const{ return m_summaries; }
51 inline bool SummariesHasBeenSet() const { return m_summariesHasBeenSet; }
52 inline void SetSummaries(const Aws::Vector<Summary>& value) { m_summariesHasBeenSet = true; m_summaries = value; }
53 inline void SetSummaries(Aws::Vector<Summary>&& value) { m_summariesHasBeenSet = true; m_summaries = std::move(value); }
54 inline RecommendationSummary& WithSummaries(const Aws::Vector<Summary>& value) { SetSummaries(value); return *this;}
55 inline RecommendationSummary& WithSummaries(Aws::Vector<Summary>&& value) { SetSummaries(std::move(value)); return *this;}
56 inline RecommendationSummary& AddSummaries(const Summary& value) { m_summariesHasBeenSet = true; m_summaries.push_back(value); return *this; }
57 inline RecommendationSummary& AddSummaries(Summary&& value) { m_summariesHasBeenSet = true; m_summaries.push_back(std::move(value)); return *this; }
59
61
64 inline const RecommendationSourceType& GetRecommendationResourceType() const{ return m_recommendationResourceType; }
65 inline bool RecommendationResourceTypeHasBeenSet() const { return m_recommendationResourceTypeHasBeenSet; }
66 inline void SetRecommendationResourceType(const RecommendationSourceType& value) { m_recommendationResourceTypeHasBeenSet = true; m_recommendationResourceType = value; }
67 inline void SetRecommendationResourceType(RecommendationSourceType&& value) { m_recommendationResourceTypeHasBeenSet = true; m_recommendationResourceType = std::move(value); }
71
73
76 inline const Aws::String& GetAccountId() const{ return m_accountId; }
77 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
78 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
79 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
80 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
81 inline RecommendationSummary& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
82 inline RecommendationSummary& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
83 inline RecommendationSummary& WithAccountId(const char* value) { SetAccountId(value); return *this;}
85
87
92 inline const SavingsOpportunity& GetSavingsOpportunity() const{ return m_savingsOpportunity; }
93 inline bool SavingsOpportunityHasBeenSet() const { return m_savingsOpportunityHasBeenSet; }
94 inline void SetSavingsOpportunity(const SavingsOpportunity& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = value; }
95 inline void SetSavingsOpportunity(SavingsOpportunity&& value) { m_savingsOpportunityHasBeenSet = true; m_savingsOpportunity = std::move(value); }
97 inline RecommendationSummary& WithSavingsOpportunity(SavingsOpportunity&& value) { SetSavingsOpportunity(std::move(value)); return *this;}
99
101
105 inline const CurrentPerformanceRiskRatings& GetCurrentPerformanceRiskRatings() const{ return m_currentPerformanceRiskRatings; }
106 inline bool CurrentPerformanceRiskRatingsHasBeenSet() const { return m_currentPerformanceRiskRatingsHasBeenSet; }
107 inline void SetCurrentPerformanceRiskRatings(const CurrentPerformanceRiskRatings& value) { m_currentPerformanceRiskRatingsHasBeenSet = true; m_currentPerformanceRiskRatings = value; }
108 inline void SetCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatings&& value) { m_currentPerformanceRiskRatingsHasBeenSet = true; m_currentPerformanceRiskRatings = std::move(value); }
112
114
120 inline const Aws::Vector<InferredWorkloadSaving>& GetInferredWorkloadSavings() const{ return m_inferredWorkloadSavings; }
121 inline bool InferredWorkloadSavingsHasBeenSet() const { return m_inferredWorkloadSavingsHasBeenSet; }
122 inline void SetInferredWorkloadSavings(const Aws::Vector<InferredWorkloadSaving>& value) { m_inferredWorkloadSavingsHasBeenSet = true; m_inferredWorkloadSavings = value; }
123 inline void SetInferredWorkloadSavings(Aws::Vector<InferredWorkloadSaving>&& value) { m_inferredWorkloadSavingsHasBeenSet = true; m_inferredWorkloadSavings = std::move(value); }
126 inline RecommendationSummary& AddInferredWorkloadSavings(const InferredWorkloadSaving& value) { m_inferredWorkloadSavingsHasBeenSet = true; m_inferredWorkloadSavings.push_back(value); return *this; }
127 inline RecommendationSummary& AddInferredWorkloadSavings(InferredWorkloadSaving&& value) { m_inferredWorkloadSavingsHasBeenSet = true; m_inferredWorkloadSavings.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::Vector<Summary> m_summaries;
132 bool m_summariesHasBeenSet = false;
133
134 RecommendationSourceType m_recommendationResourceType;
135 bool m_recommendationResourceTypeHasBeenSet = false;
136
137 Aws::String m_accountId;
138 bool m_accountIdHasBeenSet = false;
139
140 SavingsOpportunity m_savingsOpportunity;
141 bool m_savingsOpportunityHasBeenSet = false;
142
143 CurrentPerformanceRiskRatings m_currentPerformanceRiskRatings;
144 bool m_currentPerformanceRiskRatingsHasBeenSet = false;
145
146 Aws::Vector<InferredWorkloadSaving> m_inferredWorkloadSavings;
147 bool m_inferredWorkloadSavingsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace ComputeOptimizer
152} // namespace Aws
const SavingsOpportunity & GetSavingsOpportunity() const
void SetSummaries(const Aws::Vector< Summary > &value)
RecommendationSummary & WithInferredWorkloadSavings(const Aws::Vector< InferredWorkloadSaving > &value)
RecommendationSummary & WithAccountId(Aws::String &&value)
const Aws::Vector< InferredWorkloadSaving > & GetInferredWorkloadSavings() const
RecommendationSummary & AddInferredWorkloadSavings(const InferredWorkloadSaving &value)
void SetRecommendationResourceType(const RecommendationSourceType &value)
RecommendationSummary & AddSummaries(Summary &&value)
void SetCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatings &&value)
const Aws::Vector< Summary > & GetSummaries() const
void SetCurrentPerformanceRiskRatings(const CurrentPerformanceRiskRatings &value)
const CurrentPerformanceRiskRatings & GetCurrentPerformanceRiskRatings() const
RecommendationSummary & AddSummaries(const Summary &value)
AWS_COMPUTEOPTIMIZER_API RecommendationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationSummary & WithCurrentPerformanceRiskRatings(CurrentPerformanceRiskRatings &&value)
void SetSavingsOpportunity(const SavingsOpportunity &value)
RecommendationSummary & WithAccountId(const Aws::String &value)
void SetInferredWorkloadSavings(const Aws::Vector< InferredWorkloadSaving > &value)
void SetInferredWorkloadSavings(Aws::Vector< InferredWorkloadSaving > &&value)
RecommendationSummary & WithRecommendationResourceType(const RecommendationSourceType &value)
RecommendationSummary & WithSavingsOpportunity(const SavingsOpportunity &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationSummary & WithInferredWorkloadSavings(Aws::Vector< InferredWorkloadSaving > &&value)
RecommendationSummary & WithSummaries(Aws::Vector< Summary > &&value)
RecommendationSummary & WithSavingsOpportunity(SavingsOpportunity &&value)
RecommendationSummary & WithCurrentPerformanceRiskRatings(const CurrentPerformanceRiskRatings &value)
AWS_COMPUTEOPTIMIZER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
RecommendationSummary & WithSummaries(const Aws::Vector< Summary > &value)
RecommendationSummary & AddInferredWorkloadSavings(InferredWorkloadSaving &&value)
void SetRecommendationResourceType(RecommendationSourceType &&value)
RecommendationSummary & WithAccountId(const char *value)
RecommendationSummary & WithRecommendationResourceType(RecommendationSourceType &&value)
const RecommendationSourceType & GetRecommendationResourceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue