AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTEXPLORER_API ReservationAggregates() = default;
36 AWS_COSTEXPLORER_API ReservationAggregates(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetUtilizationPercentage() const { return m_utilizationPercentage; }
46 inline bool UtilizationPercentageHasBeenSet() const { return m_utilizationPercentageHasBeenSet; }
47 template<typename UtilizationPercentageT = Aws::String>
48 void SetUtilizationPercentage(UtilizationPercentageT&& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = std::forward<UtilizationPercentageT>(value); }
49 template<typename UtilizationPercentageT = Aws::String>
50 ReservationAggregates& WithUtilizationPercentage(UtilizationPercentageT&& value) { SetUtilizationPercentage(std::forward<UtilizationPercentageT>(value)); return *this;}
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) { m_utilizationPercentageInUnitsHasBeenSet = true; m_utilizationPercentageInUnits = std::forward<UtilizationPercentageInUnitsT>(value); }
63 template<typename UtilizationPercentageInUnitsT = Aws::String>
64 ReservationAggregates& WithUtilizationPercentageInUnits(UtilizationPercentageInUnitsT&& value) { SetUtilizationPercentageInUnits(std::forward<UtilizationPercentageInUnitsT>(value)); return *this;}
66
68
71 inline const Aws::String& GetPurchasedHours() const { return m_purchasedHours; }
72 inline bool PurchasedHoursHasBeenSet() const { return m_purchasedHoursHasBeenSet; }
73 template<typename PurchasedHoursT = Aws::String>
74 void SetPurchasedHours(PurchasedHoursT&& value) { m_purchasedHoursHasBeenSet = true; m_purchasedHours = std::forward<PurchasedHoursT>(value); }
75 template<typename PurchasedHoursT = Aws::String>
76 ReservationAggregates& WithPurchasedHours(PurchasedHoursT&& value) { SetPurchasedHours(std::forward<PurchasedHoursT>(value)); return *this;}
78
80
85 inline const Aws::String& GetPurchasedUnits() const { return m_purchasedUnits; }
86 inline bool PurchasedUnitsHasBeenSet() const { return m_purchasedUnitsHasBeenSet; }
87 template<typename PurchasedUnitsT = Aws::String>
88 void SetPurchasedUnits(PurchasedUnitsT&& value) { m_purchasedUnitsHasBeenSet = true; m_purchasedUnits = std::forward<PurchasedUnitsT>(value); }
89 template<typename PurchasedUnitsT = Aws::String>
90 ReservationAggregates& WithPurchasedUnits(PurchasedUnitsT&& value) { SetPurchasedUnits(std::forward<PurchasedUnitsT>(value)); return *this;}
92
94
97 inline const Aws::String& GetTotalActualHours() const { return m_totalActualHours; }
98 inline bool TotalActualHoursHasBeenSet() const { return m_totalActualHoursHasBeenSet; }
99 template<typename TotalActualHoursT = Aws::String>
100 void SetTotalActualHours(TotalActualHoursT&& value) { m_totalActualHoursHasBeenSet = true; m_totalActualHours = std::forward<TotalActualHoursT>(value); }
101 template<typename TotalActualHoursT = Aws::String>
102 ReservationAggregates& WithTotalActualHours(TotalActualHoursT&& value) { SetTotalActualHours(std::forward<TotalActualHoursT>(value)); return *this;}
104
106
111 inline const Aws::String& GetTotalActualUnits() const { return m_totalActualUnits; }
112 inline bool TotalActualUnitsHasBeenSet() const { return m_totalActualUnitsHasBeenSet; }
113 template<typename TotalActualUnitsT = Aws::String>
114 void SetTotalActualUnits(TotalActualUnitsT&& value) { m_totalActualUnitsHasBeenSet = true; m_totalActualUnits = std::forward<TotalActualUnitsT>(value); }
115 template<typename TotalActualUnitsT = Aws::String>
116 ReservationAggregates& WithTotalActualUnits(TotalActualUnitsT&& value) { SetTotalActualUnits(std::forward<TotalActualUnitsT>(value)); return *this;}
118
120
123 inline const Aws::String& GetUnusedHours() const { return m_unusedHours; }
124 inline bool UnusedHoursHasBeenSet() const { return m_unusedHoursHasBeenSet; }
125 template<typename UnusedHoursT = Aws::String>
126 void SetUnusedHours(UnusedHoursT&& value) { m_unusedHoursHasBeenSet = true; m_unusedHours = std::forward<UnusedHoursT>(value); }
127 template<typename UnusedHoursT = Aws::String>
128 ReservationAggregates& WithUnusedHours(UnusedHoursT&& value) { SetUnusedHours(std::forward<UnusedHoursT>(value)); return *this;}
130
132
137 inline const Aws::String& GetUnusedUnits() const { return m_unusedUnits; }
138 inline bool UnusedUnitsHasBeenSet() const { return m_unusedUnitsHasBeenSet; }
139 template<typename UnusedUnitsT = Aws::String>
140 void SetUnusedUnits(UnusedUnitsT&& value) { m_unusedUnitsHasBeenSet = true; m_unusedUnits = std::forward<UnusedUnitsT>(value); }
141 template<typename UnusedUnitsT = Aws::String>
142 ReservationAggregates& WithUnusedUnits(UnusedUnitsT&& value) { SetUnusedUnits(std::forward<UnusedUnitsT>(value)); return *this;}
144
146
149 inline const Aws::String& GetOnDemandCostOfRIHoursUsed() const { return m_onDemandCostOfRIHoursUsed; }
150 inline bool OnDemandCostOfRIHoursUsedHasBeenSet() const { return m_onDemandCostOfRIHoursUsedHasBeenSet; }
151 template<typename OnDemandCostOfRIHoursUsedT = Aws::String>
152 void SetOnDemandCostOfRIHoursUsed(OnDemandCostOfRIHoursUsedT&& value) { m_onDemandCostOfRIHoursUsedHasBeenSet = true; m_onDemandCostOfRIHoursUsed = std::forward<OnDemandCostOfRIHoursUsedT>(value); }
153 template<typename OnDemandCostOfRIHoursUsedT = Aws::String>
154 ReservationAggregates& WithOnDemandCostOfRIHoursUsed(OnDemandCostOfRIHoursUsedT&& value) { SetOnDemandCostOfRIHoursUsed(std::forward<OnDemandCostOfRIHoursUsedT>(value)); return *this;}
156
158
163 inline const Aws::String& GetNetRISavings() const { return m_netRISavings; }
164 inline bool NetRISavingsHasBeenSet() const { return m_netRISavingsHasBeenSet; }
165 template<typename NetRISavingsT = Aws::String>
166 void SetNetRISavings(NetRISavingsT&& value) { m_netRISavingsHasBeenSet = true; m_netRISavings = std::forward<NetRISavingsT>(value); }
167 template<typename NetRISavingsT = Aws::String>
168 ReservationAggregates& WithNetRISavings(NetRISavingsT&& value) { SetNetRISavings(std::forward<NetRISavingsT>(value)); return *this;}
170
172
175 inline const Aws::String& GetTotalPotentialRISavings() const { return m_totalPotentialRISavings; }
176 inline bool TotalPotentialRISavingsHasBeenSet() const { return m_totalPotentialRISavingsHasBeenSet; }
177 template<typename TotalPotentialRISavingsT = Aws::String>
178 void SetTotalPotentialRISavings(TotalPotentialRISavingsT&& value) { m_totalPotentialRISavingsHasBeenSet = true; m_totalPotentialRISavings = std::forward<TotalPotentialRISavingsT>(value); }
179 template<typename TotalPotentialRISavingsT = Aws::String>
180 ReservationAggregates& WithTotalPotentialRISavings(TotalPotentialRISavingsT&& value) { SetTotalPotentialRISavings(std::forward<TotalPotentialRISavingsT>(value)); return *this;}
182
184
188 inline const Aws::String& GetAmortizedUpfrontFee() const { return m_amortizedUpfrontFee; }
189 inline bool AmortizedUpfrontFeeHasBeenSet() const { return m_amortizedUpfrontFeeHasBeenSet; }
190 template<typename AmortizedUpfrontFeeT = Aws::String>
191 void SetAmortizedUpfrontFee(AmortizedUpfrontFeeT&& value) { m_amortizedUpfrontFeeHasBeenSet = true; m_amortizedUpfrontFee = std::forward<AmortizedUpfrontFeeT>(value); }
192 template<typename AmortizedUpfrontFeeT = Aws::String>
193 ReservationAggregates& WithAmortizedUpfrontFee(AmortizedUpfrontFeeT&& value) { SetAmortizedUpfrontFee(std::forward<AmortizedUpfrontFeeT>(value)); return *this;}
195
197
201 inline const Aws::String& GetAmortizedRecurringFee() const { return m_amortizedRecurringFee; }
202 inline bool AmortizedRecurringFeeHasBeenSet() const { return m_amortizedRecurringFeeHasBeenSet; }
203 template<typename AmortizedRecurringFeeT = Aws::String>
204 void SetAmortizedRecurringFee(AmortizedRecurringFeeT&& value) { m_amortizedRecurringFeeHasBeenSet = true; m_amortizedRecurringFee = std::forward<AmortizedRecurringFeeT>(value); }
205 template<typename AmortizedRecurringFeeT = Aws::String>
206 ReservationAggregates& WithAmortizedRecurringFee(AmortizedRecurringFeeT&& value) { SetAmortizedRecurringFee(std::forward<AmortizedRecurringFeeT>(value)); return *this;}
208
210
214 inline const Aws::String& GetTotalAmortizedFee() const { return m_totalAmortizedFee; }
215 inline bool TotalAmortizedFeeHasBeenSet() const { return m_totalAmortizedFeeHasBeenSet; }
216 template<typename TotalAmortizedFeeT = Aws::String>
217 void SetTotalAmortizedFee(TotalAmortizedFeeT&& value) { m_totalAmortizedFeeHasBeenSet = true; m_totalAmortizedFee = std::forward<TotalAmortizedFeeT>(value); }
218 template<typename TotalAmortizedFeeT = Aws::String>
219 ReservationAggregates& WithTotalAmortizedFee(TotalAmortizedFeeT&& value) { SetTotalAmortizedFee(std::forward<TotalAmortizedFeeT>(value)); return *this;}
221
223
226 inline const Aws::String& GetRICostForUnusedHours() const { return m_rICostForUnusedHours; }
227 inline bool RICostForUnusedHoursHasBeenSet() const { return m_rICostForUnusedHoursHasBeenSet; }
228 template<typename RICostForUnusedHoursT = Aws::String>
229 void SetRICostForUnusedHours(RICostForUnusedHoursT&& value) { m_rICostForUnusedHoursHasBeenSet = true; m_rICostForUnusedHours = std::forward<RICostForUnusedHoursT>(value); }
230 template<typename RICostForUnusedHoursT = Aws::String>
231 ReservationAggregates& WithRICostForUnusedHours(RICostForUnusedHoursT&& value) { SetRICostForUnusedHours(std::forward<RICostForUnusedHoursT>(value)); return *this;}
233
235
238 inline const Aws::String& GetRealizedSavings() const { return m_realizedSavings; }
239 inline bool RealizedSavingsHasBeenSet() const { return m_realizedSavingsHasBeenSet; }
240 template<typename RealizedSavingsT = Aws::String>
241 void SetRealizedSavings(RealizedSavingsT&& value) { m_realizedSavingsHasBeenSet = true; m_realizedSavings = std::forward<RealizedSavingsT>(value); }
242 template<typename RealizedSavingsT = Aws::String>
243 ReservationAggregates& WithRealizedSavings(RealizedSavingsT&& value) { SetRealizedSavings(std::forward<RealizedSavingsT>(value)); return *this;}
245
247
250 inline const Aws::String& GetUnrealizedSavings() const { return m_unrealizedSavings; }
251 inline bool UnrealizedSavingsHasBeenSet() const { return m_unrealizedSavingsHasBeenSet; }
252 template<typename UnrealizedSavingsT = Aws::String>
253 void SetUnrealizedSavings(UnrealizedSavingsT&& value) { m_unrealizedSavingsHasBeenSet = true; m_unrealizedSavings = std::forward<UnrealizedSavingsT>(value); }
254 template<typename UnrealizedSavingsT = Aws::String>
255 ReservationAggregates& WithUnrealizedSavings(UnrealizedSavingsT&& value) { SetUnrealizedSavings(std::forward<UnrealizedSavingsT>(value)); return *this;}
257 private:
258
259 Aws::String m_utilizationPercentage;
260 bool m_utilizationPercentageHasBeenSet = false;
261
262 Aws::String m_utilizationPercentageInUnits;
263 bool m_utilizationPercentageInUnitsHasBeenSet = false;
264
265 Aws::String m_purchasedHours;
266 bool m_purchasedHoursHasBeenSet = false;
267
268 Aws::String m_purchasedUnits;
269 bool m_purchasedUnitsHasBeenSet = false;
270
271 Aws::String m_totalActualHours;
272 bool m_totalActualHoursHasBeenSet = false;
273
274 Aws::String m_totalActualUnits;
275 bool m_totalActualUnitsHasBeenSet = false;
276
277 Aws::String m_unusedHours;
278 bool m_unusedHoursHasBeenSet = false;
279
280 Aws::String m_unusedUnits;
281 bool m_unusedUnitsHasBeenSet = false;
282
283 Aws::String m_onDemandCostOfRIHoursUsed;
284 bool m_onDemandCostOfRIHoursUsedHasBeenSet = false;
285
286 Aws::String m_netRISavings;
287 bool m_netRISavingsHasBeenSet = false;
288
289 Aws::String m_totalPotentialRISavings;
290 bool m_totalPotentialRISavingsHasBeenSet = false;
291
292 Aws::String m_amortizedUpfrontFee;
293 bool m_amortizedUpfrontFeeHasBeenSet = false;
294
295 Aws::String m_amortizedRecurringFee;
296 bool m_amortizedRecurringFeeHasBeenSet = false;
297
298 Aws::String m_totalAmortizedFee;
299 bool m_totalAmortizedFeeHasBeenSet = false;
300
301 Aws::String m_rICostForUnusedHours;
302 bool m_rICostForUnusedHoursHasBeenSet = false;
303
304 Aws::String m_realizedSavings;
305 bool m_realizedSavingsHasBeenSet = false;
306
307 Aws::String m_unrealizedSavings;
308 bool m_unrealizedSavingsHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace CostExplorer
313} // 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