AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsOpportunity.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/EstimatedMonthlySavings.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
48 {
49 public:
50 AWS_COMPUTEOPTIMIZER_API SavingsOpportunity();
51 AWS_COMPUTEOPTIMIZER_API SavingsOpportunity(Aws::Utils::Json::JsonView jsonValue);
52 AWS_COMPUTEOPTIMIZER_API SavingsOpportunity& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
61 inline double GetSavingsOpportunityPercentage() const{ return m_savingsOpportunityPercentage; }
62 inline bool SavingsOpportunityPercentageHasBeenSet() const { return m_savingsOpportunityPercentageHasBeenSet; }
63 inline void SetSavingsOpportunityPercentage(double value) { m_savingsOpportunityPercentageHasBeenSet = true; m_savingsOpportunityPercentage = value; }
66
68
73 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; }
74 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
75 inline void SetEstimatedMonthlySavings(const EstimatedMonthlySavings& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; }
76 inline void SetEstimatedMonthlySavings(EstimatedMonthlySavings&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); }
80 private:
81
82 double m_savingsOpportunityPercentage;
83 bool m_savingsOpportunityPercentageHasBeenSet = false;
84
85 EstimatedMonthlySavings m_estimatedMonthlySavings;
86 bool m_estimatedMonthlySavingsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ComputeOptimizer
91} // namespace Aws
SavingsOpportunity & WithEstimatedMonthlySavings(EstimatedMonthlySavings &&value)
SavingsOpportunity & WithSavingsOpportunityPercentage(double value)
AWS_COMPUTEOPTIMIZER_API SavingsOpportunity(Aws::Utils::Json::JsonView jsonValue)
SavingsOpportunity & WithEstimatedMonthlySavings(const EstimatedMonthlySavings &value)
void SetEstimatedMonthlySavings(EstimatedMonthlySavings &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
void SetEstimatedMonthlySavings(const EstimatedMonthlySavings &value)
AWS_COMPUTEOPTIMIZER_API SavingsOpportunity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue