AWS SDK for C++

AWS SDK for C++ Version 1.11.811

Loading...
Searching...
No Matches
IdleEstimatedMonthlySavings.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
29 public:
30 AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings() = default;
31 AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline Currency GetCurrency() const { return m_currency; }
40 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
41 inline void SetCurrency(Currency value) {
42 m_currencyHasBeenSet = true;
43 m_currency = value;
44 }
46 SetCurrency(value);
47 return *this;
48 }
50
52
55 inline double GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(double value) {
58 m_valueHasBeenSet = true;
59 m_value = value;
60 }
61 inline IdleEstimatedMonthlySavings& WithValue(double value) {
62 SetValue(value);
63 return *this;
64 }
66 private:
67 Currency m_currency{Currency::NOT_SET};
68
69 double m_value{0.0};
70 bool m_currencyHasBeenSet = false;
71 bool m_valueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace ComputeOptimizer
76} // namespace Aws
AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
IdleEstimatedMonthlySavings & WithCurrency(Currency value)
AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings()=default
AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const