AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceSavingsOpportunityAfterDiscounts.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/InstanceEstimatedMonthlySavings.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 ComputeOptimizer
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API InstanceSavingsOpportunityAfterDiscounts();
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline double GetSavingsOpportunityPercentage() const{ return m_savingsOpportunityPercentage; }
51 inline bool SavingsOpportunityPercentageHasBeenSet() const { return m_savingsOpportunityPercentageHasBeenSet; }
52 inline void SetSavingsOpportunityPercentage(double value) { m_savingsOpportunityPercentageHasBeenSet = true; m_savingsOpportunityPercentage = value; }
55
57
62 inline const InstanceEstimatedMonthlySavings& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; }
63 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
64 inline void SetEstimatedMonthlySavings(const InstanceEstimatedMonthlySavings& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; }
65 inline void SetEstimatedMonthlySavings(InstanceEstimatedMonthlySavings&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); }
69 private:
70
71 double m_savingsOpportunityPercentage;
72 bool m_savingsOpportunityPercentageHasBeenSet = false;
73
74 InstanceEstimatedMonthlySavings m_estimatedMonthlySavings;
75 bool m_estimatedMonthlySavingsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ComputeOptimizer
80} // namespace Aws
InstanceSavingsOpportunityAfterDiscounts & WithSavingsOpportunityPercentage(double value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceSavingsOpportunityAfterDiscounts & WithEstimatedMonthlySavings(const InstanceEstimatedMonthlySavings &value)
AWS_COMPUTEOPTIMIZER_API InstanceSavingsOpportunityAfterDiscounts & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceSavingsOpportunityAfterDiscounts & WithEstimatedMonthlySavings(InstanceEstimatedMonthlySavings &&value)
AWS_COMPUTEOPTIMIZER_API InstanceSavingsOpportunityAfterDiscounts(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue