AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EstimatedDiscounts.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts();
34 AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline double GetSavingsPlansDiscount() const{ return m_savingsPlansDiscount; }
44 inline bool SavingsPlansDiscountHasBeenSet() const { return m_savingsPlansDiscountHasBeenSet; }
45 inline void SetSavingsPlansDiscount(double value) { m_savingsPlansDiscountHasBeenSet = true; m_savingsPlansDiscount = value; }
46 inline EstimatedDiscounts& WithSavingsPlansDiscount(double value) { SetSavingsPlansDiscount(value); return *this;}
48
50
53 inline double GetReservedInstancesDiscount() const{ return m_reservedInstancesDiscount; }
54 inline bool ReservedInstancesDiscountHasBeenSet() const { return m_reservedInstancesDiscountHasBeenSet; }
55 inline void SetReservedInstancesDiscount(double value) { m_reservedInstancesDiscountHasBeenSet = true; m_reservedInstancesDiscount = value; }
58
60
65 inline double GetOtherDiscount() const{ return m_otherDiscount; }
66 inline bool OtherDiscountHasBeenSet() const { return m_otherDiscountHasBeenSet; }
67 inline void SetOtherDiscount(double value) { m_otherDiscountHasBeenSet = true; m_otherDiscount = value; }
68 inline EstimatedDiscounts& WithOtherDiscount(double value) { SetOtherDiscount(value); return *this;}
70 private:
71
72 double m_savingsPlansDiscount;
73 bool m_savingsPlansDiscountHasBeenSet = false;
74
75 double m_reservedInstancesDiscount;
76 bool m_reservedInstancesDiscountHasBeenSet = false;
77
78 double m_otherDiscount;
79 bool m_otherDiscountHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CostOptimizationHub
84} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts()
EstimatedDiscounts & WithOtherDiscount(double value)
AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts(Aws::Utils::Json::JsonView jsonValue)
EstimatedDiscounts & WithReservedInstancesDiscount(double value)
AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts & operator=(Aws::Utils::Json::JsonView jsonValue)
EstimatedDiscounts & WithSavingsPlansDiscount(double value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue