AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
EstimatedDiscounts.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CostOptimizationHub {
17namespace Model {
18
26 public:
27 AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts() = default;
28 AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts(Aws::Utils::Json::JsonView jsonValue);
29 AWS_COSTOPTIMIZATIONHUB_API EstimatedDiscounts& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetSavingsPlansDiscount() const { return m_savingsPlansDiscount; }
37 inline bool SavingsPlansDiscountHasBeenSet() const { return m_savingsPlansDiscountHasBeenSet; }
38 inline void SetSavingsPlansDiscount(double value) {
39 m_savingsPlansDiscountHasBeenSet = true;
40 m_savingsPlansDiscount = value;
41 }
44 return *this;
45 }
47
49
52 inline double GetReservedInstancesDiscount() const { return m_reservedInstancesDiscount; }
53 inline bool ReservedInstancesDiscountHasBeenSet() const { return m_reservedInstancesDiscountHasBeenSet; }
54 inline void SetReservedInstancesDiscount(double value) {
55 m_reservedInstancesDiscountHasBeenSet = true;
56 m_reservedInstancesDiscount = value;
57 }
60 return *this;
61 }
63
65
70 inline double GetOtherDiscount() const { return m_otherDiscount; }
71 inline bool OtherDiscountHasBeenSet() const { return m_otherDiscountHasBeenSet; }
72 inline void SetOtherDiscount(double value) {
73 m_otherDiscountHasBeenSet = true;
74 m_otherDiscount = value;
75 }
76 inline EstimatedDiscounts& WithOtherDiscount(double value) {
77 SetOtherDiscount(value);
78 return *this;
79 }
81 private:
82 double m_savingsPlansDiscount{0.0};
83
84 double m_reservedInstancesDiscount{0.0};
85
86 double m_otherDiscount{0.0};
87 bool m_savingsPlansDiscountHasBeenSet = false;
88 bool m_reservedInstancesDiscountHasBeenSet = false;
89 bool m_otherDiscountHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace CostOptimizationHub
94} // namespace Aws
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 EstimatedDiscounts()=default
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue