AWS SDK for C++

AWS SDK for C++ Version 1.11.810

Loading...
Searching...
No Matches
EstimatedMonthlySavings.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/Currency.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ComputeOptimizer {
20namespace Model {
21
33 public:
34 AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings() = default;
35 AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline Currency GetCurrency() const { return m_currency; }
44 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
45 inline void SetCurrency(Currency value) {
46 m_currencyHasBeenSet = true;
47 m_currency = value;
48 }
50 SetCurrency(value);
51 return *this;
52 }
54
56
59 inline double GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(double value) {
62 m_valueHasBeenSet = true;
63 m_value = value;
64 }
65 inline EstimatedMonthlySavings& WithValue(double value) {
66 SetValue(value);
67 return *this;
68 }
70 private:
71 Currency m_currency{Currency::NOT_SET};
72
73 double m_value{0.0};
74 bool m_currencyHasBeenSet = false;
75 bool m_valueHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ComputeOptimizer
80} // namespace Aws
AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings()=default
EstimatedMonthlySavings & WithCurrency(Currency value)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const