AWS SDK for C++

AWS SDK for C++ Version 1.11.750

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ComputeOptimizer {
20namespace Model {
21
33 public:
34 AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings() = default;
35 AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() 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(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API EstimatedMonthlySavings()=default
EstimatedMonthlySavings & WithCurrency(Currency value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue