AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ReservedInstancesPricing.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 ReservedInstancesPricing() = default;
28 AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing(Aws::Utils::Json::JsonView jsonValue);
29 AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline double GetEstimatedOnDemandCost() const { return m_estimatedOnDemandCost; }
38 inline bool EstimatedOnDemandCostHasBeenSet() const { return m_estimatedOnDemandCostHasBeenSet; }
39 inline void SetEstimatedOnDemandCost(double value) {
40 m_estimatedOnDemandCostHasBeenSet = true;
41 m_estimatedOnDemandCost = value;
42 }
45 return *this;
46 }
48
50
53 inline double GetMonthlyReservationEligibleCost() const { return m_monthlyReservationEligibleCost; }
54 inline bool MonthlyReservationEligibleCostHasBeenSet() const { return m_monthlyReservationEligibleCostHasBeenSet; }
55 inline void SetMonthlyReservationEligibleCost(double value) {
56 m_monthlyReservationEligibleCostHasBeenSet = true;
57 m_monthlyReservationEligibleCost = value;
58 }
61 return *this;
62 }
64
66
70 inline double GetSavingsPercentage() const { return m_savingsPercentage; }
71 inline bool SavingsPercentageHasBeenSet() const { return m_savingsPercentageHasBeenSet; }
72 inline void SetSavingsPercentage(double value) {
73 m_savingsPercentageHasBeenSet = true;
74 m_savingsPercentage = value;
75 }
78 return *this;
79 }
81
83
87 inline double GetEstimatedMonthlyAmortizedReservationCost() const { return m_estimatedMonthlyAmortizedReservationCost; }
88 inline bool EstimatedMonthlyAmortizedReservationCostHasBeenSet() const { return m_estimatedMonthlyAmortizedReservationCostHasBeenSet; }
90 m_estimatedMonthlyAmortizedReservationCostHasBeenSet = true;
91 m_estimatedMonthlyAmortizedReservationCost = value;
92 }
95 return *this;
96 }
98 private:
99 double m_estimatedOnDemandCost{0.0};
100
101 double m_monthlyReservationEligibleCost{0.0};
102
103 double m_savingsPercentage{0.0};
104
105 double m_estimatedMonthlyAmortizedReservationCost{0.0};
106 bool m_estimatedOnDemandCostHasBeenSet = false;
107 bool m_monthlyReservationEligibleCostHasBeenSet = false;
108 bool m_savingsPercentageHasBeenSet = false;
109 bool m_estimatedMonthlyAmortizedReservationCostHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CostOptimizationHub
114} // namespace Aws
ReservedInstancesPricing & WithSavingsPercentage(double value)
AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedInstancesPricing & WithMonthlyReservationEligibleCost(double value)
AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing()=default
AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing(Aws::Utils::Json::JsonView jsonValue)
ReservedInstancesPricing & WithEstimatedMonthlyAmortizedReservationCost(double value)
ReservedInstancesPricing & WithEstimatedOnDemandCost(double value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue