AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstancesPricing.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 ReservedInstancesPricing();
34 AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline double GetEstimatedOnDemandCost() const{ return m_estimatedOnDemandCost; }
45 inline bool EstimatedOnDemandCostHasBeenSet() const { return m_estimatedOnDemandCostHasBeenSet; }
46 inline void SetEstimatedOnDemandCost(double value) { m_estimatedOnDemandCostHasBeenSet = true; m_estimatedOnDemandCost = value; }
49
51
54 inline double GetMonthlyReservationEligibleCost() const{ return m_monthlyReservationEligibleCost; }
55 inline bool MonthlyReservationEligibleCostHasBeenSet() const { return m_monthlyReservationEligibleCostHasBeenSet; }
56 inline void SetMonthlyReservationEligibleCost(double value) { m_monthlyReservationEligibleCostHasBeenSet = true; m_monthlyReservationEligibleCost = value; }
59
61
65 inline double GetSavingsPercentage() const{ return m_savingsPercentage; }
66 inline bool SavingsPercentageHasBeenSet() const { return m_savingsPercentageHasBeenSet; }
67 inline void SetSavingsPercentage(double value) { m_savingsPercentageHasBeenSet = true; m_savingsPercentage = value; }
68 inline ReservedInstancesPricing& WithSavingsPercentage(double value) { SetSavingsPercentage(value); return *this;}
70
72
76 inline double GetEstimatedMonthlyAmortizedReservationCost() const{ return m_estimatedMonthlyAmortizedReservationCost; }
77 inline bool EstimatedMonthlyAmortizedReservationCostHasBeenSet() const { return m_estimatedMonthlyAmortizedReservationCostHasBeenSet; }
78 inline void SetEstimatedMonthlyAmortizedReservationCost(double value) { m_estimatedMonthlyAmortizedReservationCostHasBeenSet = true; m_estimatedMonthlyAmortizedReservationCost = value; }
81 private:
82
83 double m_estimatedOnDemandCost;
84 bool m_estimatedOnDemandCostHasBeenSet = false;
85
86 double m_monthlyReservationEligibleCost;
87 bool m_monthlyReservationEligibleCostHasBeenSet = false;
88
89 double m_savingsPercentage;
90 bool m_savingsPercentageHasBeenSet = false;
91
92 double m_estimatedMonthlyAmortizedReservationCost;
93 bool m_estimatedMonthlyAmortizedReservationCostHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CostOptimizationHub
98} // namespace Aws
ReservedInstancesPricing & WithSavingsPercentage(double value)
AWS_COSTOPTIMIZATIONHUB_API ReservedInstancesPricing & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedInstancesPricing & WithMonthlyReservationEligibleCost(double value)
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