7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/SavingsEstimationMode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
20namespace ComputeOptimizerAutomation {
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename CurrencyT = Aws::String>
44 m_currencyHasBeenSet =
true;
45 m_currency = std::forward<CurrencyT>(value);
47 template <
typename CurrencyT = Aws::String>
61 m_beforeDiscountSavingsHasBeenSet =
true;
62 m_beforeDiscountSavings = value;
77 m_afterDiscountSavingsHasBeenSet =
true;
78 m_afterDiscountSavings = value;
94 m_savingsEstimationModeHasBeenSet =
true;
95 m_savingsEstimationMode = value;
105 double m_beforeDiscountSavings{0.0};
107 double m_afterDiscountSavings{0.0};
110 bool m_currencyHasBeenSet =
false;
111 bool m_beforeDiscountSavingsHasBeenSet =
false;
112 bool m_afterDiscountSavingsHasBeenSet =
false;
113 bool m_savingsEstimationModeHasBeenSet =
false;
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EstimatedMonthlySavings & WithBeforeDiscountSavings(double value)
const Aws::String & GetCurrency() const
void SetAfterDiscountSavings(double value)
SavingsEstimationMode GetSavingsEstimationMode() const
double GetAfterDiscountSavings() const
bool AfterDiscountSavingsHasBeenSet() const
bool CurrencyHasBeenSet() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EstimatedMonthlySavings & WithAfterDiscountSavings(double value)
void SetCurrency(CurrencyT &&value)
void SetSavingsEstimationMode(SavingsEstimationMode value)
EstimatedMonthlySavings & WithCurrency(CurrencyT &&value)
double GetBeforeDiscountSavings() const
EstimatedMonthlySavings & WithSavingsEstimationMode(SavingsEstimationMode value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool BeforeDiscountSavingsHasBeenSet() const
void SetBeforeDiscountSavings(double value)
bool SavingsEstimationModeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String