7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/IdleEstimatedMonthlySavings.h>
9#include <aws/crt/cbor/Cbor.h>
19namespace ComputeOptimizer {
33 AWS_COMPUTEOPTIMIZER_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
43 m_savingsOpportunityPercentageHasBeenSet =
true;
44 m_savingsOpportunityPercentage = value;
59 template <
typename EstimatedMonthlySavingsT = IdleEstimatedMonthlySavings>
61 m_estimatedMonthlySavingsHasBeenSet =
true;
62 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
64 template <
typename EstimatedMonthlySavingsT = IdleEstimatedMonthlySavings>
71 double m_savingsOpportunityPercentage{0.0};
73 IdleEstimatedMonthlySavings m_estimatedMonthlySavings;
74 bool m_savingsOpportunityPercentageHasBeenSet =
false;
75 bool m_estimatedMonthlySavingsHasBeenSet =
false;
void SetSavingsOpportunityPercentage(double value)
AWS_COMPUTEOPTIMIZER_API IdleSavingsOpportunity()=default
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const IdleEstimatedMonthlySavings & GetEstimatedMonthlySavings() const
AWS_COMPUTEOPTIMIZER_API IdleSavingsOpportunity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool SavingsOpportunityPercentageHasBeenSet() const
double GetSavingsOpportunityPercentage() const
AWS_COMPUTEOPTIMIZER_API IdleSavingsOpportunity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
IdleSavingsOpportunity & WithSavingsOpportunityPercentage(double value)
bool EstimatedMonthlySavingsHasBeenSet() const
IdleSavingsOpportunity & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)