AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostExplorer {
21namespace Model {
22
29 public:
30 AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendationDetail() = default;
33 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const SavingsPlansDetails& GetSavingsPlansDetails() const { return m_savingsPlansDetails; }
40 inline bool SavingsPlansDetailsHasBeenSet() const { return m_savingsPlansDetailsHasBeenSet; }
41 template <typename SavingsPlansDetailsT = SavingsPlansDetails>
42 void SetSavingsPlansDetails(SavingsPlansDetailsT&& value) {
43 m_savingsPlansDetailsHasBeenSet = true;
44 m_savingsPlansDetails = std::forward<SavingsPlansDetailsT>(value);
45 }
46 template <typename SavingsPlansDetailsT = SavingsPlansDetails>
48 SetSavingsPlansDetails(std::forward<SavingsPlansDetailsT>(value));
49 return *this;
50 }
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) {
61 m_accountIdHasBeenSet = true;
62 m_accountId = std::forward<AccountIdT>(value);
63 }
64 template <typename AccountIdT = Aws::String>
66 SetAccountId(std::forward<AccountIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetUpfrontCost() const { return m_upfrontCost; }
77 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
78 template <typename UpfrontCostT = Aws::String>
79 void SetUpfrontCost(UpfrontCostT&& value) {
80 m_upfrontCostHasBeenSet = true;
81 m_upfrontCost = std::forward<UpfrontCostT>(value);
82 }
83 template <typename UpfrontCostT = Aws::String>
85 SetUpfrontCost(std::forward<UpfrontCostT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetEstimatedROI() const { return m_estimatedROI; }
97 inline bool EstimatedROIHasBeenSet() const { return m_estimatedROIHasBeenSet; }
98 template <typename EstimatedROIT = Aws::String>
99 void SetEstimatedROI(EstimatedROIT&& value) {
100 m_estimatedROIHasBeenSet = true;
101 m_estimatedROI = std::forward<EstimatedROIT>(value);
102 }
103 template <typename EstimatedROIT = Aws::String>
105 SetEstimatedROI(std::forward<EstimatedROIT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
116 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
117 template <typename CurrencyCodeT = Aws::String>
118 void SetCurrencyCode(CurrencyCodeT&& value) {
119 m_currencyCodeHasBeenSet = true;
120 m_currencyCode = std::forward<CurrencyCodeT>(value);
121 }
122 template <typename CurrencyCodeT = Aws::String>
124 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetEstimatedSPCost() const { return m_estimatedSPCost; }
135 inline bool EstimatedSPCostHasBeenSet() const { return m_estimatedSPCostHasBeenSet; }
136 template <typename EstimatedSPCostT = Aws::String>
137 void SetEstimatedSPCost(EstimatedSPCostT&& value) {
138 m_estimatedSPCostHasBeenSet = true;
139 m_estimatedSPCost = std::forward<EstimatedSPCostT>(value);
140 }
141 template <typename EstimatedSPCostT = Aws::String>
143 SetEstimatedSPCost(std::forward<EstimatedSPCostT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetEstimatedOnDemandCost() const { return m_estimatedOnDemandCost; }
154 inline bool EstimatedOnDemandCostHasBeenSet() const { return m_estimatedOnDemandCostHasBeenSet; }
155 template <typename EstimatedOnDemandCostT = Aws::String>
156 void SetEstimatedOnDemandCost(EstimatedOnDemandCostT&& value) {
157 m_estimatedOnDemandCostHasBeenSet = true;
158 m_estimatedOnDemandCost = std::forward<EstimatedOnDemandCostT>(value);
159 }
160 template <typename EstimatedOnDemandCostT = Aws::String>
162 SetEstimatedOnDemandCost(std::forward<EstimatedOnDemandCostT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetEstimatedOnDemandCostWithCurrentCommitment() const { return m_estimatedOnDemandCostWithCurrentCommitment; }
175 return m_estimatedOnDemandCostWithCurrentCommitmentHasBeenSet;
176 }
177 template <typename EstimatedOnDemandCostWithCurrentCommitmentT = Aws::String>
178 void SetEstimatedOnDemandCostWithCurrentCommitment(EstimatedOnDemandCostWithCurrentCommitmentT&& value) {
179 m_estimatedOnDemandCostWithCurrentCommitmentHasBeenSet = true;
180 m_estimatedOnDemandCostWithCurrentCommitment = std::forward<EstimatedOnDemandCostWithCurrentCommitmentT>(value);
181 }
182 template <typename EstimatedOnDemandCostWithCurrentCommitmentT = Aws::String>
184 EstimatedOnDemandCostWithCurrentCommitmentT&& value) {
185 SetEstimatedOnDemandCostWithCurrentCommitment(std::forward<EstimatedOnDemandCostWithCurrentCommitmentT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetEstimatedSavingsAmount() const { return m_estimatedSavingsAmount; }
196 inline bool EstimatedSavingsAmountHasBeenSet() const { return m_estimatedSavingsAmountHasBeenSet; }
197 template <typename EstimatedSavingsAmountT = Aws::String>
198 void SetEstimatedSavingsAmount(EstimatedSavingsAmountT&& value) {
199 m_estimatedSavingsAmountHasBeenSet = true;
200 m_estimatedSavingsAmount = std::forward<EstimatedSavingsAmountT>(value);
201 }
202 template <typename EstimatedSavingsAmountT = Aws::String>
204 SetEstimatedSavingsAmount(std::forward<EstimatedSavingsAmountT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetEstimatedSavingsPercentage() const { return m_estimatedSavingsPercentage; }
215 inline bool EstimatedSavingsPercentageHasBeenSet() const { return m_estimatedSavingsPercentageHasBeenSet; }
216 template <typename EstimatedSavingsPercentageT = Aws::String>
217 void SetEstimatedSavingsPercentage(EstimatedSavingsPercentageT&& value) {
218 m_estimatedSavingsPercentageHasBeenSet = true;
219 m_estimatedSavingsPercentage = std::forward<EstimatedSavingsPercentageT>(value);
220 }
221 template <typename EstimatedSavingsPercentageT = Aws::String>
223 SetEstimatedSavingsPercentage(std::forward<EstimatedSavingsPercentageT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::String& GetHourlyCommitmentToPurchase() const { return m_hourlyCommitmentToPurchase; }
234 inline bool HourlyCommitmentToPurchaseHasBeenSet() const { return m_hourlyCommitmentToPurchaseHasBeenSet; }
235 template <typename HourlyCommitmentToPurchaseT = Aws::String>
236 void SetHourlyCommitmentToPurchase(HourlyCommitmentToPurchaseT&& value) {
237 m_hourlyCommitmentToPurchaseHasBeenSet = true;
238 m_hourlyCommitmentToPurchase = std::forward<HourlyCommitmentToPurchaseT>(value);
239 }
240 template <typename HourlyCommitmentToPurchaseT = Aws::String>
242 SetHourlyCommitmentToPurchase(std::forward<HourlyCommitmentToPurchaseT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::String& GetEstimatedAverageUtilization() const { return m_estimatedAverageUtilization; }
252 inline bool EstimatedAverageUtilizationHasBeenSet() const { return m_estimatedAverageUtilizationHasBeenSet; }
253 template <typename EstimatedAverageUtilizationT = Aws::String>
254 void SetEstimatedAverageUtilization(EstimatedAverageUtilizationT&& value) {
255 m_estimatedAverageUtilizationHasBeenSet = true;
256 m_estimatedAverageUtilization = std::forward<EstimatedAverageUtilizationT>(value);
257 }
258 template <typename EstimatedAverageUtilizationT = Aws::String>
260 SetEstimatedAverageUtilization(std::forward<EstimatedAverageUtilizationT>(value));
261 return *this;
262 }
264
266
270 inline const Aws::String& GetEstimatedMonthlySavingsAmount() const { return m_estimatedMonthlySavingsAmount; }
271 inline bool EstimatedMonthlySavingsAmountHasBeenSet() const { return m_estimatedMonthlySavingsAmountHasBeenSet; }
272 template <typename EstimatedMonthlySavingsAmountT = Aws::String>
273 void SetEstimatedMonthlySavingsAmount(EstimatedMonthlySavingsAmountT&& value) {
274 m_estimatedMonthlySavingsAmountHasBeenSet = true;
275 m_estimatedMonthlySavingsAmount = std::forward<EstimatedMonthlySavingsAmountT>(value);
276 }
277 template <typename EstimatedMonthlySavingsAmountT = Aws::String>
279 SetEstimatedMonthlySavingsAmount(std::forward<EstimatedMonthlySavingsAmountT>(value));
280 return *this;
281 }
283
285
289 inline const Aws::String& GetCurrentMinimumHourlyOnDemandSpend() const { return m_currentMinimumHourlyOnDemandSpend; }
290 inline bool CurrentMinimumHourlyOnDemandSpendHasBeenSet() const { return m_currentMinimumHourlyOnDemandSpendHasBeenSet; }
291 template <typename CurrentMinimumHourlyOnDemandSpendT = Aws::String>
292 void SetCurrentMinimumHourlyOnDemandSpend(CurrentMinimumHourlyOnDemandSpendT&& value) {
293 m_currentMinimumHourlyOnDemandSpendHasBeenSet = true;
294 m_currentMinimumHourlyOnDemandSpend = std::forward<CurrentMinimumHourlyOnDemandSpendT>(value);
295 }
296 template <typename CurrentMinimumHourlyOnDemandSpendT = Aws::String>
298 SetCurrentMinimumHourlyOnDemandSpend(std::forward<CurrentMinimumHourlyOnDemandSpendT>(value));
299 return *this;
300 }
302
304
308 inline const Aws::String& GetCurrentMaximumHourlyOnDemandSpend() const { return m_currentMaximumHourlyOnDemandSpend; }
309 inline bool CurrentMaximumHourlyOnDemandSpendHasBeenSet() const { return m_currentMaximumHourlyOnDemandSpendHasBeenSet; }
310 template <typename CurrentMaximumHourlyOnDemandSpendT = Aws::String>
311 void SetCurrentMaximumHourlyOnDemandSpend(CurrentMaximumHourlyOnDemandSpendT&& value) {
312 m_currentMaximumHourlyOnDemandSpendHasBeenSet = true;
313 m_currentMaximumHourlyOnDemandSpend = std::forward<CurrentMaximumHourlyOnDemandSpendT>(value);
314 }
315 template <typename CurrentMaximumHourlyOnDemandSpendT = Aws::String>
317 SetCurrentMaximumHourlyOnDemandSpend(std::forward<CurrentMaximumHourlyOnDemandSpendT>(value));
318 return *this;
319 }
321
323
327 inline const Aws::String& GetCurrentAverageHourlyOnDemandSpend() const { return m_currentAverageHourlyOnDemandSpend; }
328 inline bool CurrentAverageHourlyOnDemandSpendHasBeenSet() const { return m_currentAverageHourlyOnDemandSpendHasBeenSet; }
329 template <typename CurrentAverageHourlyOnDemandSpendT = Aws::String>
330 void SetCurrentAverageHourlyOnDemandSpend(CurrentAverageHourlyOnDemandSpendT&& value) {
331 m_currentAverageHourlyOnDemandSpendHasBeenSet = true;
332 m_currentAverageHourlyOnDemandSpend = std::forward<CurrentAverageHourlyOnDemandSpendT>(value);
333 }
334 template <typename CurrentAverageHourlyOnDemandSpendT = Aws::String>
336 SetCurrentAverageHourlyOnDemandSpend(std::forward<CurrentAverageHourlyOnDemandSpendT>(value));
337 return *this;
338 }
340
342
346 inline const Aws::String& GetRecommendationDetailId() const { return m_recommendationDetailId; }
347 inline bool RecommendationDetailIdHasBeenSet() const { return m_recommendationDetailIdHasBeenSet; }
348 template <typename RecommendationDetailIdT = Aws::String>
349 void SetRecommendationDetailId(RecommendationDetailIdT&& value) {
350 m_recommendationDetailIdHasBeenSet = true;
351 m_recommendationDetailId = std::forward<RecommendationDetailIdT>(value);
352 }
353 template <typename RecommendationDetailIdT = Aws::String>
355 SetRecommendationDetailId(std::forward<RecommendationDetailIdT>(value));
356 return *this;
357 }
359 private:
360 SavingsPlansDetails m_savingsPlansDetails;
361
362 Aws::String m_accountId;
363
364 Aws::String m_upfrontCost;
365
366 Aws::String m_estimatedROI;
367
368 Aws::String m_currencyCode;
369
370 Aws::String m_estimatedSPCost;
371
372 Aws::String m_estimatedOnDemandCost;
373
374 Aws::String m_estimatedOnDemandCostWithCurrentCommitment;
375
376 Aws::String m_estimatedSavingsAmount;
377
378 Aws::String m_estimatedSavingsPercentage;
379
380 Aws::String m_hourlyCommitmentToPurchase;
381
382 Aws::String m_estimatedAverageUtilization;
383
384 Aws::String m_estimatedMonthlySavingsAmount;
385
386 Aws::String m_currentMinimumHourlyOnDemandSpend;
387
388 Aws::String m_currentMaximumHourlyOnDemandSpend;
389
390 Aws::String m_currentAverageHourlyOnDemandSpend;
391
392 Aws::String m_recommendationDetailId;
393 bool m_savingsPlansDetailsHasBeenSet = false;
394 bool m_accountIdHasBeenSet = false;
395 bool m_upfrontCostHasBeenSet = false;
396 bool m_estimatedROIHasBeenSet = false;
397 bool m_currencyCodeHasBeenSet = false;
398 bool m_estimatedSPCostHasBeenSet = false;
399 bool m_estimatedOnDemandCostHasBeenSet = false;
400 bool m_estimatedOnDemandCostWithCurrentCommitmentHasBeenSet = false;
401 bool m_estimatedSavingsAmountHasBeenSet = false;
402 bool m_estimatedSavingsPercentageHasBeenSet = false;
403 bool m_hourlyCommitmentToPurchaseHasBeenSet = false;
404 bool m_estimatedAverageUtilizationHasBeenSet = false;
405 bool m_estimatedMonthlySavingsAmountHasBeenSet = false;
406 bool m_currentMinimumHourlyOnDemandSpendHasBeenSet = false;
407 bool m_currentMaximumHourlyOnDemandSpendHasBeenSet = false;
408 bool m_currentAverageHourlyOnDemandSpendHasBeenSet = false;
409 bool m_recommendationDetailIdHasBeenSet = false;
410};
411
412} // namespace Model
413} // namespace CostExplorer
414} // 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