AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUtilizationPercentage(const Aws::String& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = value; }
48 inline void SetUtilizationPercentage(Aws::String&& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = std::move(value); }
49 inline void SetUtilizationPercentage(const char* value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage.assign(value); }
51 inline ReservationAggregates& WithUtilizationPercentage(Aws::String&& value) { SetUtilizationPercentage(std::move(value)); return *this;}
52 inline ReservationAggregates& WithUtilizationPercentage(const char* value) { SetUtilizationPercentage(value); return *this;}
54
56
61 inline const Aws::String& GetUtilizationPercentageInUnits() const{ return m_utilizationPercentageInUnits; }
62 inline bool UtilizationPercentageInUnitsHasBeenSet() const { return m_utilizationPercentageInUnitsHasBeenSet; }
63 inline void SetUtilizationPercentageInUnits(const Aws::String& value) { m_utilizationPercentageInUnitsHasBeenSet = true; m_utilizationPercentageInUnits = value; }
64 inline void SetUtilizationPercentageInUnits(Aws::String&& value) { m_utilizationPercentageInUnitsHasBeenSet = true; m_utilizationPercentageInUnits = std::move(value); }
65 inline void SetUtilizationPercentageInUnits(const char* value) { m_utilizationPercentageInUnitsHasBeenSet = true; m_utilizationPercentageInUnits.assign(value); }
70
72
75 inline const Aws::String& GetPurchasedHours() const{ return m_purchasedHours; }
76 inline bool PurchasedHoursHasBeenSet() const { return m_purchasedHoursHasBeenSet; }
77 inline void SetPurchasedHours(const Aws::String& value) { m_purchasedHoursHasBeenSet = true; m_purchasedHours = value; }
78 inline void SetPurchasedHours(Aws::String&& value) { m_purchasedHoursHasBeenSet = true; m_purchasedHours = std::move(value); }
79 inline void SetPurchasedHours(const char* value) { m_purchasedHoursHasBeenSet = true; m_purchasedHours.assign(value); }
80 inline ReservationAggregates& WithPurchasedHours(const Aws::String& value) { SetPurchasedHours(value); return *this;}
81 inline ReservationAggregates& WithPurchasedHours(Aws::String&& value) { SetPurchasedHours(std::move(value)); return *this;}
82 inline ReservationAggregates& WithPurchasedHours(const char* value) { SetPurchasedHours(value); return *this;}
84
86
91 inline const Aws::String& GetPurchasedUnits() const{ return m_purchasedUnits; }
92 inline bool PurchasedUnitsHasBeenSet() const { return m_purchasedUnitsHasBeenSet; }
93 inline void SetPurchasedUnits(const Aws::String& value) { m_purchasedUnitsHasBeenSet = true; m_purchasedUnits = value; }
94 inline void SetPurchasedUnits(Aws::String&& value) { m_purchasedUnitsHasBeenSet = true; m_purchasedUnits = std::move(value); }
95 inline void SetPurchasedUnits(const char* value) { m_purchasedUnitsHasBeenSet = true; m_purchasedUnits.assign(value); }
96 inline ReservationAggregates& WithPurchasedUnits(const Aws::String& value) { SetPurchasedUnits(value); return *this;}
97 inline ReservationAggregates& WithPurchasedUnits(Aws::String&& value) { SetPurchasedUnits(std::move(value)); return *this;}
98 inline ReservationAggregates& WithPurchasedUnits(const char* value) { SetPurchasedUnits(value); return *this;}
100
102
105 inline const Aws::String& GetTotalActualHours() const{ return m_totalActualHours; }
106 inline bool TotalActualHoursHasBeenSet() const { return m_totalActualHoursHasBeenSet; }
107 inline void SetTotalActualHours(const Aws::String& value) { m_totalActualHoursHasBeenSet = true; m_totalActualHours = value; }
108 inline void SetTotalActualHours(Aws::String&& value) { m_totalActualHoursHasBeenSet = true; m_totalActualHours = std::move(value); }
109 inline void SetTotalActualHours(const char* value) { m_totalActualHoursHasBeenSet = true; m_totalActualHours.assign(value); }
110 inline ReservationAggregates& WithTotalActualHours(const Aws::String& value) { SetTotalActualHours(value); return *this;}
111 inline ReservationAggregates& WithTotalActualHours(Aws::String&& value) { SetTotalActualHours(std::move(value)); return *this;}
112 inline ReservationAggregates& WithTotalActualHours(const char* value) { SetTotalActualHours(value); return *this;}
114
116
121 inline const Aws::String& GetTotalActualUnits() const{ return m_totalActualUnits; }
122 inline bool TotalActualUnitsHasBeenSet() const { return m_totalActualUnitsHasBeenSet; }
123 inline void SetTotalActualUnits(const Aws::String& value) { m_totalActualUnitsHasBeenSet = true; m_totalActualUnits = value; }
124 inline void SetTotalActualUnits(Aws::String&& value) { m_totalActualUnitsHasBeenSet = true; m_totalActualUnits = std::move(value); }
125 inline void SetTotalActualUnits(const char* value) { m_totalActualUnitsHasBeenSet = true; m_totalActualUnits.assign(value); }
126 inline ReservationAggregates& WithTotalActualUnits(const Aws::String& value) { SetTotalActualUnits(value); return *this;}
127 inline ReservationAggregates& WithTotalActualUnits(Aws::String&& value) { SetTotalActualUnits(std::move(value)); return *this;}
128 inline ReservationAggregates& WithTotalActualUnits(const char* value) { SetTotalActualUnits(value); return *this;}
130
132
135 inline const Aws::String& GetUnusedHours() const{ return m_unusedHours; }
136 inline bool UnusedHoursHasBeenSet() const { return m_unusedHoursHasBeenSet; }
137 inline void SetUnusedHours(const Aws::String& value) { m_unusedHoursHasBeenSet = true; m_unusedHours = value; }
138 inline void SetUnusedHours(Aws::String&& value) { m_unusedHoursHasBeenSet = true; m_unusedHours = std::move(value); }
139 inline void SetUnusedHours(const char* value) { m_unusedHoursHasBeenSet = true; m_unusedHours.assign(value); }
140 inline ReservationAggregates& WithUnusedHours(const Aws::String& value) { SetUnusedHours(value); return *this;}
141 inline ReservationAggregates& WithUnusedHours(Aws::String&& value) { SetUnusedHours(std::move(value)); return *this;}
142 inline ReservationAggregates& WithUnusedHours(const char* value) { SetUnusedHours(value); return *this;}
144
146
151 inline const Aws::String& GetUnusedUnits() const{ return m_unusedUnits; }
152 inline bool UnusedUnitsHasBeenSet() const { return m_unusedUnitsHasBeenSet; }
153 inline void SetUnusedUnits(const Aws::String& value) { m_unusedUnitsHasBeenSet = true; m_unusedUnits = value; }
154 inline void SetUnusedUnits(Aws::String&& value) { m_unusedUnitsHasBeenSet = true; m_unusedUnits = std::move(value); }
155 inline void SetUnusedUnits(const char* value) { m_unusedUnitsHasBeenSet = true; m_unusedUnits.assign(value); }
156 inline ReservationAggregates& WithUnusedUnits(const Aws::String& value) { SetUnusedUnits(value); return *this;}
157 inline ReservationAggregates& WithUnusedUnits(Aws::String&& value) { SetUnusedUnits(std::move(value)); return *this;}
158 inline ReservationAggregates& WithUnusedUnits(const char* value) { SetUnusedUnits(value); return *this;}
160
162
165 inline const Aws::String& GetOnDemandCostOfRIHoursUsed() const{ return m_onDemandCostOfRIHoursUsed; }
166 inline bool OnDemandCostOfRIHoursUsedHasBeenSet() const { return m_onDemandCostOfRIHoursUsedHasBeenSet; }
167 inline void SetOnDemandCostOfRIHoursUsed(const Aws::String& value) { m_onDemandCostOfRIHoursUsedHasBeenSet = true; m_onDemandCostOfRIHoursUsed = value; }
168 inline void SetOnDemandCostOfRIHoursUsed(Aws::String&& value) { m_onDemandCostOfRIHoursUsedHasBeenSet = true; m_onDemandCostOfRIHoursUsed = std::move(value); }
169 inline void SetOnDemandCostOfRIHoursUsed(const char* value) { m_onDemandCostOfRIHoursUsedHasBeenSet = true; m_onDemandCostOfRIHoursUsed.assign(value); }
172 inline ReservationAggregates& WithOnDemandCostOfRIHoursUsed(const char* value) { SetOnDemandCostOfRIHoursUsed(value); return *this;}
174
176
181 inline const Aws::String& GetNetRISavings() const{ return m_netRISavings; }
182 inline bool NetRISavingsHasBeenSet() const { return m_netRISavingsHasBeenSet; }
183 inline void SetNetRISavings(const Aws::String& value) { m_netRISavingsHasBeenSet = true; m_netRISavings = value; }
184 inline void SetNetRISavings(Aws::String&& value) { m_netRISavingsHasBeenSet = true; m_netRISavings = std::move(value); }
185 inline void SetNetRISavings(const char* value) { m_netRISavingsHasBeenSet = true; m_netRISavings.assign(value); }
186 inline ReservationAggregates& WithNetRISavings(const Aws::String& value) { SetNetRISavings(value); return *this;}
187 inline ReservationAggregates& WithNetRISavings(Aws::String&& value) { SetNetRISavings(std::move(value)); return *this;}
188 inline ReservationAggregates& WithNetRISavings(const char* value) { SetNetRISavings(value); return *this;}
190
192
195 inline const Aws::String& GetTotalPotentialRISavings() const{ return m_totalPotentialRISavings; }
196 inline bool TotalPotentialRISavingsHasBeenSet() const { return m_totalPotentialRISavingsHasBeenSet; }
197 inline void SetTotalPotentialRISavings(const Aws::String& value) { m_totalPotentialRISavingsHasBeenSet = true; m_totalPotentialRISavings = value; }
198 inline void SetTotalPotentialRISavings(Aws::String&& value) { m_totalPotentialRISavingsHasBeenSet = true; m_totalPotentialRISavings = std::move(value); }
199 inline void SetTotalPotentialRISavings(const char* value) { m_totalPotentialRISavingsHasBeenSet = true; m_totalPotentialRISavings.assign(value); }
202 inline ReservationAggregates& WithTotalPotentialRISavings(const char* value) { SetTotalPotentialRISavings(value); return *this;}
204
206
210 inline const Aws::String& GetAmortizedUpfrontFee() const{ return m_amortizedUpfrontFee; }
211 inline bool AmortizedUpfrontFeeHasBeenSet() const { return m_amortizedUpfrontFeeHasBeenSet; }
212 inline void SetAmortizedUpfrontFee(const Aws::String& value) { m_amortizedUpfrontFeeHasBeenSet = true; m_amortizedUpfrontFee = value; }
213 inline void SetAmortizedUpfrontFee(Aws::String&& value) { m_amortizedUpfrontFeeHasBeenSet = true; m_amortizedUpfrontFee = std::move(value); }
214 inline void SetAmortizedUpfrontFee(const char* value) { m_amortizedUpfrontFeeHasBeenSet = true; m_amortizedUpfrontFee.assign(value); }
216 inline ReservationAggregates& WithAmortizedUpfrontFee(Aws::String&& value) { SetAmortizedUpfrontFee(std::move(value)); return *this;}
217 inline ReservationAggregates& WithAmortizedUpfrontFee(const char* value) { SetAmortizedUpfrontFee(value); return *this;}
219
221
225 inline const Aws::String& GetAmortizedRecurringFee() const{ return m_amortizedRecurringFee; }
226 inline bool AmortizedRecurringFeeHasBeenSet() const { return m_amortizedRecurringFeeHasBeenSet; }
227 inline void SetAmortizedRecurringFee(const Aws::String& value) { m_amortizedRecurringFeeHasBeenSet = true; m_amortizedRecurringFee = value; }
228 inline void SetAmortizedRecurringFee(Aws::String&& value) { m_amortizedRecurringFeeHasBeenSet = true; m_amortizedRecurringFee = std::move(value); }
229 inline void SetAmortizedRecurringFee(const char* value) { m_amortizedRecurringFeeHasBeenSet = true; m_amortizedRecurringFee.assign(value); }
231 inline ReservationAggregates& WithAmortizedRecurringFee(Aws::String&& value) { SetAmortizedRecurringFee(std::move(value)); return *this;}
232 inline ReservationAggregates& WithAmortizedRecurringFee(const char* value) { SetAmortizedRecurringFee(value); return *this;}
234
236
240 inline const Aws::String& GetTotalAmortizedFee() const{ return m_totalAmortizedFee; }
241 inline bool TotalAmortizedFeeHasBeenSet() const { return m_totalAmortizedFeeHasBeenSet; }
242 inline void SetTotalAmortizedFee(const Aws::String& value) { m_totalAmortizedFeeHasBeenSet = true; m_totalAmortizedFee = value; }
243 inline void SetTotalAmortizedFee(Aws::String&& value) { m_totalAmortizedFeeHasBeenSet = true; m_totalAmortizedFee = std::move(value); }
244 inline void SetTotalAmortizedFee(const char* value) { m_totalAmortizedFeeHasBeenSet = true; m_totalAmortizedFee.assign(value); }
246 inline ReservationAggregates& WithTotalAmortizedFee(Aws::String&& value) { SetTotalAmortizedFee(std::move(value)); return *this;}
247 inline ReservationAggregates& WithTotalAmortizedFee(const char* value) { SetTotalAmortizedFee(value); return *this;}
249
251
254 inline const Aws::String& GetRICostForUnusedHours() const{ return m_rICostForUnusedHours; }
255 inline bool RICostForUnusedHoursHasBeenSet() const { return m_rICostForUnusedHoursHasBeenSet; }
256 inline void SetRICostForUnusedHours(const Aws::String& value) { m_rICostForUnusedHoursHasBeenSet = true; m_rICostForUnusedHours = value; }
257 inline void SetRICostForUnusedHours(Aws::String&& value) { m_rICostForUnusedHoursHasBeenSet = true; m_rICostForUnusedHours = std::move(value); }
258 inline void SetRICostForUnusedHours(const char* value) { m_rICostForUnusedHoursHasBeenSet = true; m_rICostForUnusedHours.assign(value); }
260 inline ReservationAggregates& WithRICostForUnusedHours(Aws::String&& value) { SetRICostForUnusedHours(std::move(value)); return *this;}
261 inline ReservationAggregates& WithRICostForUnusedHours(const char* value) { SetRICostForUnusedHours(value); return *this;}
263
265
268 inline const Aws::String& GetRealizedSavings() const{ return m_realizedSavings; }
269 inline bool RealizedSavingsHasBeenSet() const { return m_realizedSavingsHasBeenSet; }
270 inline void SetRealizedSavings(const Aws::String& value) { m_realizedSavingsHasBeenSet = true; m_realizedSavings = value; }
271 inline void SetRealizedSavings(Aws::String&& value) { m_realizedSavingsHasBeenSet = true; m_realizedSavings = std::move(value); }
272 inline void SetRealizedSavings(const char* value) { m_realizedSavingsHasBeenSet = true; m_realizedSavings.assign(value); }
273 inline ReservationAggregates& WithRealizedSavings(const Aws::String& value) { SetRealizedSavings(value); return *this;}
274 inline ReservationAggregates& WithRealizedSavings(Aws::String&& value) { SetRealizedSavings(std::move(value)); return *this;}
275 inline ReservationAggregates& WithRealizedSavings(const char* value) { SetRealizedSavings(value); return *this;}
277
279
282 inline const Aws::String& GetUnrealizedSavings() const{ return m_unrealizedSavings; }
283 inline bool UnrealizedSavingsHasBeenSet() const { return m_unrealizedSavingsHasBeenSet; }
284 inline void SetUnrealizedSavings(const Aws::String& value) { m_unrealizedSavingsHasBeenSet = true; m_unrealizedSavings = value; }
285 inline void SetUnrealizedSavings(Aws::String&& value) { m_unrealizedSavingsHasBeenSet = true; m_unrealizedSavings = std::move(value); }
286 inline void SetUnrealizedSavings(const char* value) { m_unrealizedSavingsHasBeenSet = true; m_unrealizedSavings.assign(value); }
288 inline ReservationAggregates& WithUnrealizedSavings(Aws::String&& value) { SetUnrealizedSavings(std::move(value)); return *this;}
289 inline ReservationAggregates& WithUnrealizedSavings(const char* value) { SetUnrealizedSavings(value); return *this;}
291 private:
292
293 Aws::String m_utilizationPercentage;
294 bool m_utilizationPercentageHasBeenSet = false;
295
296 Aws::String m_utilizationPercentageInUnits;
297 bool m_utilizationPercentageInUnitsHasBeenSet = false;
298
299 Aws::String m_purchasedHours;
300 bool m_purchasedHoursHasBeenSet = false;
301
302 Aws::String m_purchasedUnits;
303 bool m_purchasedUnitsHasBeenSet = false;
304
305 Aws::String m_totalActualHours;
306 bool m_totalActualHoursHasBeenSet = false;
307
308 Aws::String m_totalActualUnits;
309 bool m_totalActualUnitsHasBeenSet = false;
310
311 Aws::String m_unusedHours;
312 bool m_unusedHoursHasBeenSet = false;
313
314 Aws::String m_unusedUnits;
315 bool m_unusedUnitsHasBeenSet = false;
316
317 Aws::String m_onDemandCostOfRIHoursUsed;
318 bool m_onDemandCostOfRIHoursUsedHasBeenSet = false;
319
320 Aws::String m_netRISavings;
321 bool m_netRISavingsHasBeenSet = false;
322
323 Aws::String m_totalPotentialRISavings;
324 bool m_totalPotentialRISavingsHasBeenSet = false;
325
326 Aws::String m_amortizedUpfrontFee;
327 bool m_amortizedUpfrontFeeHasBeenSet = false;
328
329 Aws::String m_amortizedRecurringFee;
330 bool m_amortizedRecurringFeeHasBeenSet = false;
331
332 Aws::String m_totalAmortizedFee;
333 bool m_totalAmortizedFeeHasBeenSet = false;
334
335 Aws::String m_rICostForUnusedHours;
336 bool m_rICostForUnusedHoursHasBeenSet = false;
337
338 Aws::String m_realizedSavings;
339 bool m_realizedSavingsHasBeenSet = false;
340
341 Aws::String m_unrealizedSavings;
342 bool m_unrealizedSavingsHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace CostExplorer
347} // namespace Aws
ReservationAggregates & WithOnDemandCostOfRIHoursUsed(Aws::String &&value)
ReservationAggregates & WithUnusedHours(const char *value)
ReservationAggregates & WithRealizedSavings(const char *value)
ReservationAggregates & WithTotalAmortizedFee(const char *value)
ReservationAggregates & WithPurchasedUnits(const Aws::String &value)
ReservationAggregates & WithAmortizedUpfrontFee(const char *value)
ReservationAggregates & WithAmortizedUpfrontFee(const Aws::String &value)
AWS_COSTEXPLORER_API ReservationAggregates & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservationAggregates & WithNetRISavings(const Aws::String &value)
ReservationAggregates & WithUnrealizedSavings(Aws::String &&value)
ReservationAggregates & WithRealizedSavings(Aws::String &&value)
ReservationAggregates & WithPurchasedHours(Aws::String &&value)
ReservationAggregates & WithOnDemandCostOfRIHoursUsed(const char *value)
ReservationAggregates & WithAmortizedRecurringFee(Aws::String &&value)
ReservationAggregates & WithAmortizedRecurringFee(const char *value)
ReservationAggregates & WithPurchasedHours(const char *value)
ReservationAggregates & WithUnusedHours(Aws::String &&value)
ReservationAggregates & WithRICostForUnusedHours(Aws::String &&value)
ReservationAggregates & WithUnusedUnits(const char *value)
ReservationAggregates & WithTotalActualUnits(const char *value)
AWS_COSTEXPLORER_API ReservationAggregates(Aws::Utils::Json::JsonView jsonValue)
ReservationAggregates & WithAmortizedUpfrontFee(Aws::String &&value)
ReservationAggregates & WithTotalActualHours(Aws::String &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
ReservationAggregates & WithNetRISavings(const char *value)
ReservationAggregates & WithUnusedHours(const Aws::String &value)
ReservationAggregates & WithTotalPotentialRISavings(const char *value)
void SetUtilizationPercentage(const Aws::String &value)
ReservationAggregates & WithUtilizationPercentageInUnits(const char *value)
ReservationAggregates & WithNetRISavings(Aws::String &&value)
ReservationAggregates & WithUtilizationPercentageInUnits(const Aws::String &value)
ReservationAggregates & WithTotalAmortizedFee(const Aws::String &value)
ReservationAggregates & WithUtilizationPercentage(const char *value)
ReservationAggregates & WithRICostForUnusedHours(const Aws::String &value)
ReservationAggregates & WithUtilizationPercentageInUnits(Aws::String &&value)
void SetUtilizationPercentageInUnits(const Aws::String &value)
ReservationAggregates & WithPurchasedUnits(const char *value)
ReservationAggregates & WithPurchasedHours(const Aws::String &value)
ReservationAggregates & WithTotalActualHours(const char *value)
ReservationAggregates & WithTotalPotentialRISavings(const Aws::String &value)
ReservationAggregates & WithUtilizationPercentage(const Aws::String &value)
ReservationAggregates & WithUtilizationPercentage(Aws::String &&value)
ReservationAggregates & WithUnrealizedSavings(const char *value)
ReservationAggregates & WithUnusedUnits(Aws::String &&value)
ReservationAggregates & WithOnDemandCostOfRIHoursUsed(const Aws::String &value)
ReservationAggregates & WithRICostForUnusedHours(const char *value)
ReservationAggregates & WithAmortizedRecurringFee(const Aws::String &value)
void SetOnDemandCostOfRIHoursUsed(const Aws::String &value)
ReservationAggregates & WithTotalActualUnits(const Aws::String &value)
ReservationAggregates & WithUnusedUnits(const Aws::String &value)
ReservationAggregates & WithTotalActualUnits(Aws::String &&value)
ReservationAggregates & WithUnrealizedSavings(const Aws::String &value)
ReservationAggregates & WithTotalPotentialRISavings(Aws::String &&value)
ReservationAggregates & WithTotalAmortizedFee(Aws::String &&value)
void SetTotalPotentialRISavings(const Aws::String &value)
ReservationAggregates & WithRealizedSavings(const Aws::String &value)
ReservationAggregates & WithTotalActualHours(const Aws::String &value)
ReservationAggregates & WithPurchasedUnits(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue