AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
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
29 public:
30 AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings() = default;
31 AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() 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=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
IdleEstimatedMonthlySavings & WithCurrency(Currency value)
AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings()=default
AWS_COMPUTEOPTIMIZER_API IdleEstimatedMonthlySavings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue