AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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