AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SavingsPlansPurchaseRecommendationDetail.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/SavingsPlansDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendationDetail() = default;
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const SavingsPlansDetails& GetSavingsPlansDetails() const { return m_savingsPlansDetails; }
46 inline bool SavingsPlansDetailsHasBeenSet() const { return m_savingsPlansDetailsHasBeenSet; }
47 template<typename SavingsPlansDetailsT = SavingsPlansDetails>
48 void SetSavingsPlansDetails(SavingsPlansDetailsT&& value) { m_savingsPlansDetailsHasBeenSet = true; m_savingsPlansDetails = std::forward<SavingsPlansDetailsT>(value); }
49 template<typename SavingsPlansDetailsT = SavingsPlansDetails>
50 SavingsPlansPurchaseRecommendationDetail& WithSavingsPlansDetails(SavingsPlansDetailsT&& value) { SetSavingsPlansDetails(std::forward<SavingsPlansDetailsT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAccountId() const { return m_accountId; }
58 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
59 template<typename AccountIdT = Aws::String>
60 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
61 template<typename AccountIdT = Aws::String>
62 SavingsPlansPurchaseRecommendationDetail& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
64
66
70 inline const Aws::String& GetUpfrontCost() const { return m_upfrontCost; }
71 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
72 template<typename UpfrontCostT = Aws::String>
73 void SetUpfrontCost(UpfrontCostT&& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = std::forward<UpfrontCostT>(value); }
74 template<typename UpfrontCostT = Aws::String>
75 SavingsPlansPurchaseRecommendationDetail& WithUpfrontCost(UpfrontCostT&& value) { SetUpfrontCost(std::forward<UpfrontCostT>(value)); return *this;}
77
79
84 inline const Aws::String& GetEstimatedROI() const { return m_estimatedROI; }
85 inline bool EstimatedROIHasBeenSet() const { return m_estimatedROIHasBeenSet; }
86 template<typename EstimatedROIT = Aws::String>
87 void SetEstimatedROI(EstimatedROIT&& value) { m_estimatedROIHasBeenSet = true; m_estimatedROI = std::forward<EstimatedROIT>(value); }
88 template<typename EstimatedROIT = Aws::String>
89 SavingsPlansPurchaseRecommendationDetail& WithEstimatedROI(EstimatedROIT&& value) { SetEstimatedROI(std::forward<EstimatedROIT>(value)); return *this;}
91
93
97 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
98 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
99 template<typename CurrencyCodeT = Aws::String>
100 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
101 template<typename CurrencyCodeT = Aws::String>
102 SavingsPlansPurchaseRecommendationDetail& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
104
106
110 inline const Aws::String& GetEstimatedSPCost() const { return m_estimatedSPCost; }
111 inline bool EstimatedSPCostHasBeenSet() const { return m_estimatedSPCostHasBeenSet; }
112 template<typename EstimatedSPCostT = Aws::String>
113 void SetEstimatedSPCost(EstimatedSPCostT&& value) { m_estimatedSPCostHasBeenSet = true; m_estimatedSPCost = std::forward<EstimatedSPCostT>(value); }
114 template<typename EstimatedSPCostT = Aws::String>
115 SavingsPlansPurchaseRecommendationDetail& WithEstimatedSPCost(EstimatedSPCostT&& value) { SetEstimatedSPCost(std::forward<EstimatedSPCostT>(value)); return *this;}
117
119
123 inline const Aws::String& GetEstimatedOnDemandCost() const { return m_estimatedOnDemandCost; }
124 inline bool EstimatedOnDemandCostHasBeenSet() const { return m_estimatedOnDemandCostHasBeenSet; }
125 template<typename EstimatedOnDemandCostT = Aws::String>
126 void SetEstimatedOnDemandCost(EstimatedOnDemandCostT&& value) { m_estimatedOnDemandCostHasBeenSet = true; m_estimatedOnDemandCost = std::forward<EstimatedOnDemandCostT>(value); }
127 template<typename EstimatedOnDemandCostT = Aws::String>
128 SavingsPlansPurchaseRecommendationDetail& WithEstimatedOnDemandCost(EstimatedOnDemandCostT&& value) { SetEstimatedOnDemandCost(std::forward<EstimatedOnDemandCostT>(value)); return *this;}
130
132
137 inline const Aws::String& GetEstimatedOnDemandCostWithCurrentCommitment() const { return m_estimatedOnDemandCostWithCurrentCommitment; }
138 inline bool EstimatedOnDemandCostWithCurrentCommitmentHasBeenSet() const { return m_estimatedOnDemandCostWithCurrentCommitmentHasBeenSet; }
139 template<typename EstimatedOnDemandCostWithCurrentCommitmentT = Aws::String>
140 void SetEstimatedOnDemandCostWithCurrentCommitment(EstimatedOnDemandCostWithCurrentCommitmentT&& value) { m_estimatedOnDemandCostWithCurrentCommitmentHasBeenSet = true; m_estimatedOnDemandCostWithCurrentCommitment = std::forward<EstimatedOnDemandCostWithCurrentCommitmentT>(value); }
141 template<typename EstimatedOnDemandCostWithCurrentCommitmentT = Aws::String>
142 SavingsPlansPurchaseRecommendationDetail& WithEstimatedOnDemandCostWithCurrentCommitment(EstimatedOnDemandCostWithCurrentCommitmentT&& value) { SetEstimatedOnDemandCostWithCurrentCommitment(std::forward<EstimatedOnDemandCostWithCurrentCommitmentT>(value)); return *this;}
144
146
150 inline const Aws::String& GetEstimatedSavingsAmount() const { return m_estimatedSavingsAmount; }
151 inline bool EstimatedSavingsAmountHasBeenSet() const { return m_estimatedSavingsAmountHasBeenSet; }
152 template<typename EstimatedSavingsAmountT = Aws::String>
153 void SetEstimatedSavingsAmount(EstimatedSavingsAmountT&& value) { m_estimatedSavingsAmountHasBeenSet = true; m_estimatedSavingsAmount = std::forward<EstimatedSavingsAmountT>(value); }
154 template<typename EstimatedSavingsAmountT = Aws::String>
155 SavingsPlansPurchaseRecommendationDetail& WithEstimatedSavingsAmount(EstimatedSavingsAmountT&& value) { SetEstimatedSavingsAmount(std::forward<EstimatedSavingsAmountT>(value)); return *this;}
157
159
163 inline const Aws::String& GetEstimatedSavingsPercentage() const { return m_estimatedSavingsPercentage; }
164 inline bool EstimatedSavingsPercentageHasBeenSet() const { return m_estimatedSavingsPercentageHasBeenSet; }
165 template<typename EstimatedSavingsPercentageT = Aws::String>
166 void SetEstimatedSavingsPercentage(EstimatedSavingsPercentageT&& value) { m_estimatedSavingsPercentageHasBeenSet = true; m_estimatedSavingsPercentage = std::forward<EstimatedSavingsPercentageT>(value); }
167 template<typename EstimatedSavingsPercentageT = Aws::String>
168 SavingsPlansPurchaseRecommendationDetail& WithEstimatedSavingsPercentage(EstimatedSavingsPercentageT&& value) { SetEstimatedSavingsPercentage(std::forward<EstimatedSavingsPercentageT>(value)); return *this;}
170
172
176 inline const Aws::String& GetHourlyCommitmentToPurchase() const { return m_hourlyCommitmentToPurchase; }
177 inline bool HourlyCommitmentToPurchaseHasBeenSet() const { return m_hourlyCommitmentToPurchaseHasBeenSet; }
178 template<typename HourlyCommitmentToPurchaseT = Aws::String>
179 void SetHourlyCommitmentToPurchase(HourlyCommitmentToPurchaseT&& value) { m_hourlyCommitmentToPurchaseHasBeenSet = true; m_hourlyCommitmentToPurchase = std::forward<HourlyCommitmentToPurchaseT>(value); }
180 template<typename HourlyCommitmentToPurchaseT = Aws::String>
181 SavingsPlansPurchaseRecommendationDetail& WithHourlyCommitmentToPurchase(HourlyCommitmentToPurchaseT&& value) { SetHourlyCommitmentToPurchase(std::forward<HourlyCommitmentToPurchaseT>(value)); return *this;}
183
185
188 inline const Aws::String& GetEstimatedAverageUtilization() const { return m_estimatedAverageUtilization; }
189 inline bool EstimatedAverageUtilizationHasBeenSet() const { return m_estimatedAverageUtilizationHasBeenSet; }
190 template<typename EstimatedAverageUtilizationT = Aws::String>
191 void SetEstimatedAverageUtilization(EstimatedAverageUtilizationT&& value) { m_estimatedAverageUtilizationHasBeenSet = true; m_estimatedAverageUtilization = std::forward<EstimatedAverageUtilizationT>(value); }
192 template<typename EstimatedAverageUtilizationT = Aws::String>
193 SavingsPlansPurchaseRecommendationDetail& WithEstimatedAverageUtilization(EstimatedAverageUtilizationT&& value) { SetEstimatedAverageUtilization(std::forward<EstimatedAverageUtilizationT>(value)); return *this;}
195
197
201 inline const Aws::String& GetEstimatedMonthlySavingsAmount() const { return m_estimatedMonthlySavingsAmount; }
202 inline bool EstimatedMonthlySavingsAmountHasBeenSet() const { return m_estimatedMonthlySavingsAmountHasBeenSet; }
203 template<typename EstimatedMonthlySavingsAmountT = Aws::String>
204 void SetEstimatedMonthlySavingsAmount(EstimatedMonthlySavingsAmountT&& value) { m_estimatedMonthlySavingsAmountHasBeenSet = true; m_estimatedMonthlySavingsAmount = std::forward<EstimatedMonthlySavingsAmountT>(value); }
205 template<typename EstimatedMonthlySavingsAmountT = Aws::String>
206 SavingsPlansPurchaseRecommendationDetail& WithEstimatedMonthlySavingsAmount(EstimatedMonthlySavingsAmountT&& value) { SetEstimatedMonthlySavingsAmount(std::forward<EstimatedMonthlySavingsAmountT>(value)); return *this;}
208
210
214 inline const Aws::String& GetCurrentMinimumHourlyOnDemandSpend() const { return m_currentMinimumHourlyOnDemandSpend; }
215 inline bool CurrentMinimumHourlyOnDemandSpendHasBeenSet() const { return m_currentMinimumHourlyOnDemandSpendHasBeenSet; }
216 template<typename CurrentMinimumHourlyOnDemandSpendT = Aws::String>
217 void SetCurrentMinimumHourlyOnDemandSpend(CurrentMinimumHourlyOnDemandSpendT&& value) { m_currentMinimumHourlyOnDemandSpendHasBeenSet = true; m_currentMinimumHourlyOnDemandSpend = std::forward<CurrentMinimumHourlyOnDemandSpendT>(value); }
218 template<typename CurrentMinimumHourlyOnDemandSpendT = Aws::String>
219 SavingsPlansPurchaseRecommendationDetail& WithCurrentMinimumHourlyOnDemandSpend(CurrentMinimumHourlyOnDemandSpendT&& value) { SetCurrentMinimumHourlyOnDemandSpend(std::forward<CurrentMinimumHourlyOnDemandSpendT>(value)); return *this;}
221
223
227 inline const Aws::String& GetCurrentMaximumHourlyOnDemandSpend() const { return m_currentMaximumHourlyOnDemandSpend; }
228 inline bool CurrentMaximumHourlyOnDemandSpendHasBeenSet() const { return m_currentMaximumHourlyOnDemandSpendHasBeenSet; }
229 template<typename CurrentMaximumHourlyOnDemandSpendT = Aws::String>
230 void SetCurrentMaximumHourlyOnDemandSpend(CurrentMaximumHourlyOnDemandSpendT&& value) { m_currentMaximumHourlyOnDemandSpendHasBeenSet = true; m_currentMaximumHourlyOnDemandSpend = std::forward<CurrentMaximumHourlyOnDemandSpendT>(value); }
231 template<typename CurrentMaximumHourlyOnDemandSpendT = Aws::String>
232 SavingsPlansPurchaseRecommendationDetail& WithCurrentMaximumHourlyOnDemandSpend(CurrentMaximumHourlyOnDemandSpendT&& value) { SetCurrentMaximumHourlyOnDemandSpend(std::forward<CurrentMaximumHourlyOnDemandSpendT>(value)); return *this;}
234
236
240 inline const Aws::String& GetCurrentAverageHourlyOnDemandSpend() const { return m_currentAverageHourlyOnDemandSpend; }
241 inline bool CurrentAverageHourlyOnDemandSpendHasBeenSet() const { return m_currentAverageHourlyOnDemandSpendHasBeenSet; }
242 template<typename CurrentAverageHourlyOnDemandSpendT = Aws::String>
243 void SetCurrentAverageHourlyOnDemandSpend(CurrentAverageHourlyOnDemandSpendT&& value) { m_currentAverageHourlyOnDemandSpendHasBeenSet = true; m_currentAverageHourlyOnDemandSpend = std::forward<CurrentAverageHourlyOnDemandSpendT>(value); }
244 template<typename CurrentAverageHourlyOnDemandSpendT = Aws::String>
245 SavingsPlansPurchaseRecommendationDetail& WithCurrentAverageHourlyOnDemandSpend(CurrentAverageHourlyOnDemandSpendT&& value) { SetCurrentAverageHourlyOnDemandSpend(std::forward<CurrentAverageHourlyOnDemandSpendT>(value)); return *this;}
247
249
253 inline const Aws::String& GetRecommendationDetailId() const { return m_recommendationDetailId; }
254 inline bool RecommendationDetailIdHasBeenSet() const { return m_recommendationDetailIdHasBeenSet; }
255 template<typename RecommendationDetailIdT = Aws::String>
256 void SetRecommendationDetailId(RecommendationDetailIdT&& value) { m_recommendationDetailIdHasBeenSet = true; m_recommendationDetailId = std::forward<RecommendationDetailIdT>(value); }
257 template<typename RecommendationDetailIdT = Aws::String>
258 SavingsPlansPurchaseRecommendationDetail& WithRecommendationDetailId(RecommendationDetailIdT&& value) { SetRecommendationDetailId(std::forward<RecommendationDetailIdT>(value)); return *this;}
260 private:
261
262 SavingsPlansDetails m_savingsPlansDetails;
263 bool m_savingsPlansDetailsHasBeenSet = false;
264
265 Aws::String m_accountId;
266 bool m_accountIdHasBeenSet = false;
267
268 Aws::String m_upfrontCost;
269 bool m_upfrontCostHasBeenSet = false;
270
271 Aws::String m_estimatedROI;
272 bool m_estimatedROIHasBeenSet = false;
273
274 Aws::String m_currencyCode;
275 bool m_currencyCodeHasBeenSet = false;
276
277 Aws::String m_estimatedSPCost;
278 bool m_estimatedSPCostHasBeenSet = false;
279
280 Aws::String m_estimatedOnDemandCost;
281 bool m_estimatedOnDemandCostHasBeenSet = false;
282
283 Aws::String m_estimatedOnDemandCostWithCurrentCommitment;
284 bool m_estimatedOnDemandCostWithCurrentCommitmentHasBeenSet = false;
285
286 Aws::String m_estimatedSavingsAmount;
287 bool m_estimatedSavingsAmountHasBeenSet = false;
288
289 Aws::String m_estimatedSavingsPercentage;
290 bool m_estimatedSavingsPercentageHasBeenSet = false;
291
292 Aws::String m_hourlyCommitmentToPurchase;
293 bool m_hourlyCommitmentToPurchaseHasBeenSet = false;
294
295 Aws::String m_estimatedAverageUtilization;
296 bool m_estimatedAverageUtilizationHasBeenSet = false;
297
298 Aws::String m_estimatedMonthlySavingsAmount;
299 bool m_estimatedMonthlySavingsAmountHasBeenSet = false;
300
301 Aws::String m_currentMinimumHourlyOnDemandSpend;
302 bool m_currentMinimumHourlyOnDemandSpendHasBeenSet = false;
303
304 Aws::String m_currentMaximumHourlyOnDemandSpend;
305 bool m_currentMaximumHourlyOnDemandSpendHasBeenSet = false;
306
307 Aws::String m_currentAverageHourlyOnDemandSpend;
308 bool m_currentAverageHourlyOnDemandSpendHasBeenSet = false;
309
310 Aws::String m_recommendationDetailId;
311 bool m_recommendationDetailIdHasBeenSet = false;
312 };
313
314} // namespace Model
315} // namespace CostExplorer
316} // namespace Aws
SavingsPlansPurchaseRecommendationDetail & WithCurrentAverageHourlyOnDemandSpend(CurrentAverageHourlyOnDemandSpendT &&value)
void SetEstimatedOnDemandCostWithCurrentCommitment(EstimatedOnDemandCostWithCurrentCommitmentT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedOnDemandCostWithCurrentCommitment(EstimatedOnDemandCostWithCurrentCommitmentT &&value)
SavingsPlansPurchaseRecommendationDetail & WithSavingsPlansDetails(SavingsPlansDetailsT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedAverageUtilization(EstimatedAverageUtilizationT &&value)
AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendationDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansPurchaseRecommendationDetail & WithUpfrontCost(UpfrontCostT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedSavingsAmount(EstimatedSavingsAmountT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedOnDemandCost(EstimatedOnDemandCostT &&value)
SavingsPlansPurchaseRecommendationDetail & WithCurrentMinimumHourlyOnDemandSpend(CurrentMinimumHourlyOnDemandSpendT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedROI(EstimatedROIT &&value)
SavingsPlansPurchaseRecommendationDetail & WithRecommendationDetailId(RecommendationDetailIdT &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansPurchaseRecommendationDetail & WithEstimatedSavingsPercentage(EstimatedSavingsPercentageT &&value)
SavingsPlansPurchaseRecommendationDetail & WithCurrentMaximumHourlyOnDemandSpend(CurrentMaximumHourlyOnDemandSpendT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedSPCost(EstimatedSPCostT &&value)
SavingsPlansPurchaseRecommendationDetail & WithEstimatedMonthlySavingsAmount(EstimatedMonthlySavingsAmountT &&value)
SavingsPlansPurchaseRecommendationDetail & WithHourlyCommitmentToPurchase(HourlyCommitmentToPurchaseT &&value)
SavingsPlansPurchaseRecommendationDetail & WithCurrencyCode(CurrencyCodeT &&value)
SavingsPlansPurchaseRecommendationDetail & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue