7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/EstimatedMonthlySavings.h>
9#include <aws/crt/cbor/Cbor.h>
19namespace ComputeOptimizer {
46 AWS_COMPUTEOPTIMIZER_API
SavingsOpportunity(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_COMPUTEOPTIMIZER_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
58 m_savingsOpportunityPercentageHasBeenSet =
true;
59 m_savingsOpportunityPercentage = value;
75 template <
typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
77 m_estimatedMonthlySavingsHasBeenSet =
true;
78 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
80 template <
typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
87 double m_savingsOpportunityPercentage{0.0};
89 EstimatedMonthlySavings m_estimatedMonthlySavings;
90 bool m_savingsOpportunityPercentageHasBeenSet =
false;
91 bool m_estimatedMonthlySavingsHasBeenSet =
false;
void SetSavingsOpportunityPercentage(double value)
SavingsOpportunity & WithSavingsOpportunityPercentage(double value)
SavingsOpportunity & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
double GetSavingsOpportunityPercentage() const
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
bool EstimatedMonthlySavingsHasBeenSet() const
bool SavingsOpportunityPercentageHasBeenSet() const
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
AWS_COMPUTEOPTIMIZER_API SavingsOpportunity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API SavingsOpportunity()=default
AWS_COMPUTEOPTIMIZER_API SavingsOpportunity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)