AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReservationAggregates.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostExplorer {
20namespace Model {
21
29 public:
30 AWS_COSTEXPLORER_API ReservationAggregates() = default;
31 AWS_COSTEXPLORER_API ReservationAggregates(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUtilizationPercentage() const { return m_utilizationPercentage; }
40 inline bool UtilizationPercentageHasBeenSet() const { return m_utilizationPercentageHasBeenSet; }
41 template <typename UtilizationPercentageT = Aws::String>
42 void SetUtilizationPercentage(UtilizationPercentageT&& value) {
43 m_utilizationPercentageHasBeenSet = true;
44 m_utilizationPercentage = std::forward<UtilizationPercentageT>(value);
45 }
46 template <typename UtilizationPercentageT = Aws::String>
47 ReservationAggregates& WithUtilizationPercentage(UtilizationPercentageT&& value) {
48 SetUtilizationPercentage(std::forward<UtilizationPercentageT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetUtilizationPercentageInUnits() const { return m_utilizationPercentageInUnits; }
60 inline bool UtilizationPercentageInUnitsHasBeenSet() const { return m_utilizationPercentageInUnitsHasBeenSet; }
61 template <typename UtilizationPercentageInUnitsT = Aws::String>
62 void SetUtilizationPercentageInUnits(UtilizationPercentageInUnitsT&& value) {
63 m_utilizationPercentageInUnitsHasBeenSet = true;
64 m_utilizationPercentageInUnits = std::forward<UtilizationPercentageInUnitsT>(value);
65 }
66 template <typename UtilizationPercentageInUnitsT = Aws::String>
67 ReservationAggregates& WithUtilizationPercentageInUnits(UtilizationPercentageInUnitsT&& value) {
68 SetUtilizationPercentageInUnits(std::forward<UtilizationPercentageInUnitsT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPurchasedHours() const { return m_purchasedHours; }
78 inline bool PurchasedHoursHasBeenSet() const { return m_purchasedHoursHasBeenSet; }
79 template <typename PurchasedHoursT = Aws::String>
80 void SetPurchasedHours(PurchasedHoursT&& value) {
81 m_purchasedHoursHasBeenSet = true;
82 m_purchasedHours = std::forward<PurchasedHoursT>(value);
83 }
84 template <typename PurchasedHoursT = Aws::String>
85 ReservationAggregates& WithPurchasedHours(PurchasedHoursT&& value) {
86 SetPurchasedHours(std::forward<PurchasedHoursT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetPurchasedUnits() const { return m_purchasedUnits; }
98 inline bool PurchasedUnitsHasBeenSet() const { return m_purchasedUnitsHasBeenSet; }
99 template <typename PurchasedUnitsT = Aws::String>
100 void SetPurchasedUnits(PurchasedUnitsT&& value) {
101 m_purchasedUnitsHasBeenSet = true;
102 m_purchasedUnits = std::forward<PurchasedUnitsT>(value);
103 }
104 template <typename PurchasedUnitsT = Aws::String>
105 ReservationAggregates& WithPurchasedUnits(PurchasedUnitsT&& value) {
106 SetPurchasedUnits(std::forward<PurchasedUnitsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTotalActualHours() const { return m_totalActualHours; }
116 inline bool TotalActualHoursHasBeenSet() const { return m_totalActualHoursHasBeenSet; }
117 template <typename TotalActualHoursT = Aws::String>
118 void SetTotalActualHours(TotalActualHoursT&& value) {
119 m_totalActualHoursHasBeenSet = true;
120 m_totalActualHours = std::forward<TotalActualHoursT>(value);
121 }
122 template <typename TotalActualHoursT = Aws::String>
123 ReservationAggregates& WithTotalActualHours(TotalActualHoursT&& value) {
124 SetTotalActualHours(std::forward<TotalActualHoursT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetTotalActualUnits() const { return m_totalActualUnits; }
136 inline bool TotalActualUnitsHasBeenSet() const { return m_totalActualUnitsHasBeenSet; }
137 template <typename TotalActualUnitsT = Aws::String>
138 void SetTotalActualUnits(TotalActualUnitsT&& value) {
139 m_totalActualUnitsHasBeenSet = true;
140 m_totalActualUnits = std::forward<TotalActualUnitsT>(value);
141 }
142 template <typename TotalActualUnitsT = Aws::String>
143 ReservationAggregates& WithTotalActualUnits(TotalActualUnitsT&& value) {
144 SetTotalActualUnits(std::forward<TotalActualUnitsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetUnusedHours() const { return m_unusedHours; }
154 inline bool UnusedHoursHasBeenSet() const { return m_unusedHoursHasBeenSet; }
155 template <typename UnusedHoursT = Aws::String>
156 void SetUnusedHours(UnusedHoursT&& value) {
157 m_unusedHoursHasBeenSet = true;
158 m_unusedHours = std::forward<UnusedHoursT>(value);
159 }
160 template <typename UnusedHoursT = Aws::String>
161 ReservationAggregates& WithUnusedHours(UnusedHoursT&& value) {
162 SetUnusedHours(std::forward<UnusedHoursT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetUnusedUnits() const { return m_unusedUnits; }
174 inline bool UnusedUnitsHasBeenSet() const { return m_unusedUnitsHasBeenSet; }
175 template <typename UnusedUnitsT = Aws::String>
176 void SetUnusedUnits(UnusedUnitsT&& value) {
177 m_unusedUnitsHasBeenSet = true;
178 m_unusedUnits = std::forward<UnusedUnitsT>(value);
179 }
180 template <typename UnusedUnitsT = Aws::String>
181 ReservationAggregates& WithUnusedUnits(UnusedUnitsT&& value) {
182 SetUnusedUnits(std::forward<UnusedUnitsT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetOnDemandCostOfRIHoursUsed() const { return m_onDemandCostOfRIHoursUsed; }
192 inline bool OnDemandCostOfRIHoursUsedHasBeenSet() const { return m_onDemandCostOfRIHoursUsedHasBeenSet; }
193 template <typename OnDemandCostOfRIHoursUsedT = Aws::String>
194 void SetOnDemandCostOfRIHoursUsed(OnDemandCostOfRIHoursUsedT&& value) {
195 m_onDemandCostOfRIHoursUsedHasBeenSet = true;
196 m_onDemandCostOfRIHoursUsed = std::forward<OnDemandCostOfRIHoursUsedT>(value);
197 }
198 template <typename OnDemandCostOfRIHoursUsedT = Aws::String>
199 ReservationAggregates& WithOnDemandCostOfRIHoursUsed(OnDemandCostOfRIHoursUsedT&& value) {
200 SetOnDemandCostOfRIHoursUsed(std::forward<OnDemandCostOfRIHoursUsedT>(value));
201 return *this;
202 }
204
206
211 inline const Aws::String& GetNetRISavings() const { return m_netRISavings; }
212 inline bool NetRISavingsHasBeenSet() const { return m_netRISavingsHasBeenSet; }
213 template <typename NetRISavingsT = Aws::String>
214 void SetNetRISavings(NetRISavingsT&& value) {
215 m_netRISavingsHasBeenSet = true;
216 m_netRISavings = std::forward<NetRISavingsT>(value);
217 }
218 template <typename NetRISavingsT = Aws::String>
219 ReservationAggregates& WithNetRISavings(NetRISavingsT&& value) {
220 SetNetRISavings(std::forward<NetRISavingsT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetTotalPotentialRISavings() const { return m_totalPotentialRISavings; }
230 inline bool TotalPotentialRISavingsHasBeenSet() const { return m_totalPotentialRISavingsHasBeenSet; }
231 template <typename TotalPotentialRISavingsT = Aws::String>
232 void SetTotalPotentialRISavings(TotalPotentialRISavingsT&& value) {
233 m_totalPotentialRISavingsHasBeenSet = true;
234 m_totalPotentialRISavings = std::forward<TotalPotentialRISavingsT>(value);
235 }
236 template <typename TotalPotentialRISavingsT = Aws::String>
237 ReservationAggregates& WithTotalPotentialRISavings(TotalPotentialRISavingsT&& value) {
238 SetTotalPotentialRISavings(std::forward<TotalPotentialRISavingsT>(value));
239 return *this;
240 }
242
244
248 inline const Aws::String& GetAmortizedUpfrontFee() const { return m_amortizedUpfrontFee; }
249 inline bool AmortizedUpfrontFeeHasBeenSet() const { return m_amortizedUpfrontFeeHasBeenSet; }
250 template <typename AmortizedUpfrontFeeT = Aws::String>
251 void SetAmortizedUpfrontFee(AmortizedUpfrontFeeT&& value) {
252 m_amortizedUpfrontFeeHasBeenSet = true;
253 m_amortizedUpfrontFee = std::forward<AmortizedUpfrontFeeT>(value);
254 }
255 template <typename AmortizedUpfrontFeeT = Aws::String>
256 ReservationAggregates& WithAmortizedUpfrontFee(AmortizedUpfrontFeeT&& value) {
257 SetAmortizedUpfrontFee(std::forward<AmortizedUpfrontFeeT>(value));
258 return *this;
259 }
261
263
267 inline const Aws::String& GetAmortizedRecurringFee() const { return m_amortizedRecurringFee; }
268 inline bool AmortizedRecurringFeeHasBeenSet() const { return m_amortizedRecurringFeeHasBeenSet; }
269 template <typename AmortizedRecurringFeeT = Aws::String>
270 void SetAmortizedRecurringFee(AmortizedRecurringFeeT&& value) {
271 m_amortizedRecurringFeeHasBeenSet = true;
272 m_amortizedRecurringFee = std::forward<AmortizedRecurringFeeT>(value);
273 }
274 template <typename AmortizedRecurringFeeT = Aws::String>
275 ReservationAggregates& WithAmortizedRecurringFee(AmortizedRecurringFeeT&& value) {
276 SetAmortizedRecurringFee(std::forward<AmortizedRecurringFeeT>(value));
277 return *this;
278 }
280
282
286 inline const Aws::String& GetTotalAmortizedFee() const { return m_totalAmortizedFee; }
287 inline bool TotalAmortizedFeeHasBeenSet() const { return m_totalAmortizedFeeHasBeenSet; }
288 template <typename TotalAmortizedFeeT = Aws::String>
289 void SetTotalAmortizedFee(TotalAmortizedFeeT&& value) {
290 m_totalAmortizedFeeHasBeenSet = true;
291 m_totalAmortizedFee = std::forward<TotalAmortizedFeeT>(value);
292 }
293 template <typename TotalAmortizedFeeT = Aws::String>
294 ReservationAggregates& WithTotalAmortizedFee(TotalAmortizedFeeT&& value) {
295 SetTotalAmortizedFee(std::forward<TotalAmortizedFeeT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::String& GetRICostForUnusedHours() const { return m_rICostForUnusedHours; }
305 inline bool RICostForUnusedHoursHasBeenSet() const { return m_rICostForUnusedHoursHasBeenSet; }
306 template <typename RICostForUnusedHoursT = Aws::String>
307 void SetRICostForUnusedHours(RICostForUnusedHoursT&& value) {
308 m_rICostForUnusedHoursHasBeenSet = true;
309 m_rICostForUnusedHours = std::forward<RICostForUnusedHoursT>(value);
310 }
311 template <typename RICostForUnusedHoursT = Aws::String>
312 ReservationAggregates& WithRICostForUnusedHours(RICostForUnusedHoursT&& value) {
313 SetRICostForUnusedHours(std::forward<RICostForUnusedHoursT>(value));
314 return *this;
315 }
317
319
322 inline const Aws::String& GetRealizedSavings() const { return m_realizedSavings; }
323 inline bool RealizedSavingsHasBeenSet() const { return m_realizedSavingsHasBeenSet; }
324 template <typename RealizedSavingsT = Aws::String>
325 void SetRealizedSavings(RealizedSavingsT&& value) {
326 m_realizedSavingsHasBeenSet = true;
327 m_realizedSavings = std::forward<RealizedSavingsT>(value);
328 }
329 template <typename RealizedSavingsT = Aws::String>
330 ReservationAggregates& WithRealizedSavings(RealizedSavingsT&& value) {
331 SetRealizedSavings(std::forward<RealizedSavingsT>(value));
332 return *this;
333 }
335
337
340 inline const Aws::String& GetUnrealizedSavings() const { return m_unrealizedSavings; }
341 inline bool UnrealizedSavingsHasBeenSet() const { return m_unrealizedSavingsHasBeenSet; }
342 template <typename UnrealizedSavingsT = Aws::String>
343 void SetUnrealizedSavings(UnrealizedSavingsT&& value) {
344 m_unrealizedSavingsHasBeenSet = true;
345 m_unrealizedSavings = std::forward<UnrealizedSavingsT>(value);
346 }
347 template <typename UnrealizedSavingsT = Aws::String>
348 ReservationAggregates& WithUnrealizedSavings(UnrealizedSavingsT&& value) {
349 SetUnrealizedSavings(std::forward<UnrealizedSavingsT>(value));
350 return *this;
351 }
353 private:
354 Aws::String m_utilizationPercentage;
355
356 Aws::String m_utilizationPercentageInUnits;
357
358 Aws::String m_purchasedHours;
359
360 Aws::String m_purchasedUnits;
361
362 Aws::String m_totalActualHours;
363
364 Aws::String m_totalActualUnits;
365
366 Aws::String m_unusedHours;
367
368 Aws::String m_unusedUnits;
369
370 Aws::String m_onDemandCostOfRIHoursUsed;
371
372 Aws::String m_netRISavings;
373
374 Aws::String m_totalPotentialRISavings;
375
376 Aws::String m_amortizedUpfrontFee;
377
378 Aws::String m_amortizedRecurringFee;
379
380 Aws::String m_totalAmortizedFee;
381
382 Aws::String m_rICostForUnusedHours;
383
384 Aws::String m_realizedSavings;
385
386 Aws::String m_unrealizedSavings;
387 bool m_utilizationPercentageHasBeenSet = false;
388 bool m_utilizationPercentageInUnitsHasBeenSet = false;
389 bool m_purchasedHoursHasBeenSet = false;
390 bool m_purchasedUnitsHasBeenSet = false;
391 bool m_totalActualHoursHasBeenSet = false;
392 bool m_totalActualUnitsHasBeenSet = false;
393 bool m_unusedHoursHasBeenSet = false;
394 bool m_unusedUnitsHasBeenSet = false;
395 bool m_onDemandCostOfRIHoursUsedHasBeenSet = false;
396 bool m_netRISavingsHasBeenSet = false;
397 bool m_totalPotentialRISavingsHasBeenSet = false;
398 bool m_amortizedUpfrontFeeHasBeenSet = false;
399 bool m_amortizedRecurringFeeHasBeenSet = false;
400 bool m_totalAmortizedFeeHasBeenSet = false;
401 bool m_rICostForUnusedHoursHasBeenSet = false;
402 bool m_realizedSavingsHasBeenSet = false;
403 bool m_unrealizedSavingsHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace CostExplorer
408} // namespace Aws
ReservationAggregates & WithRealizedSavings(RealizedSavingsT &&value)
ReservationAggregates & WithUtilizationPercentageInUnits(UtilizationPercentageInUnitsT &&value)
void SetTotalAmortizedFee(TotalAmortizedFeeT &&value)
ReservationAggregates & WithNetRISavings(NetRISavingsT &&value)
AWS_COSTEXPLORER_API ReservationAggregates()=default
AWS_COSTEXPLORER_API ReservationAggregates & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnrealizedSavings(UnrealizedSavingsT &&value)
ReservationAggregates & WithTotalPotentialRISavings(TotalPotentialRISavingsT &&value)
ReservationAggregates & WithTotalAmortizedFee(TotalAmortizedFeeT &&value)
void SetRICostForUnusedHours(RICostForUnusedHoursT &&value)
ReservationAggregates & WithTotalActualUnits(TotalActualUnitsT &&value)
ReservationAggregates & WithPurchasedHours(PurchasedHoursT &&value)
void SetAmortizedUpfrontFee(AmortizedUpfrontFeeT &&value)
ReservationAggregates & WithUnusedUnits(UnusedUnitsT &&value)
ReservationAggregates & WithUnusedHours(UnusedHoursT &&value)
ReservationAggregates & WithOnDemandCostOfRIHoursUsed(OnDemandCostOfRIHoursUsedT &&value)
AWS_COSTEXPLORER_API ReservationAggregates(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
ReservationAggregates & WithUnrealizedSavings(UnrealizedSavingsT &&value)
ReservationAggregates & WithAmortizedRecurringFee(AmortizedRecurringFeeT &&value)
ReservationAggregates & WithPurchasedUnits(PurchasedUnitsT &&value)
void SetTotalPotentialRISavings(TotalPotentialRISavingsT &&value)
ReservationAggregates & WithTotalActualHours(TotalActualHoursT &&value)
ReservationAggregates & WithAmortizedUpfrontFee(AmortizedUpfrontFeeT &&value)
void SetAmortizedRecurringFee(AmortizedRecurringFeeT &&value)
void SetUtilizationPercentageInUnits(UtilizationPercentageInUnitsT &&value)
ReservationAggregates & WithUtilizationPercentage(UtilizationPercentageT &&value)
ReservationAggregates & WithRICostForUnusedHours(RICostForUnusedHoursT &&value)
void SetOnDemandCostOfRIHoursUsed(OnDemandCostOfRIHoursUsedT &&value)
void SetUtilizationPercentage(UtilizationPercentageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue