AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
EstimatedMonthlySavings.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/SavingsEstimationMode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizerAutomation {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings() = default;
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCurrency() const { return m_currency; }
41 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
42 template <typename CurrencyT = Aws::String>
43 void SetCurrency(CurrencyT&& value) {
44 m_currencyHasBeenSet = true;
45 m_currency = std::forward<CurrencyT>(value);
46 }
47 template <typename CurrencyT = Aws::String>
49 SetCurrency(std::forward<CurrencyT>(value));
50 return *this;
51 }
53
55
58 inline double GetBeforeDiscountSavings() const { return m_beforeDiscountSavings; }
59 inline bool BeforeDiscountSavingsHasBeenSet() const { return m_beforeDiscountSavingsHasBeenSet; }
60 inline void SetBeforeDiscountSavings(double value) {
61 m_beforeDiscountSavingsHasBeenSet = true;
62 m_beforeDiscountSavings = value;
63 }
66 return *this;
67 }
69
71
74 inline double GetAfterDiscountSavings() const { return m_afterDiscountSavings; }
75 inline bool AfterDiscountSavingsHasBeenSet() const { return m_afterDiscountSavingsHasBeenSet; }
76 inline void SetAfterDiscountSavings(double value) {
77 m_afterDiscountSavingsHasBeenSet = true;
78 m_afterDiscountSavings = value;
79 }
82 return *this;
83 }
85
87
91 inline SavingsEstimationMode GetSavingsEstimationMode() const { return m_savingsEstimationMode; }
92 inline bool SavingsEstimationModeHasBeenSet() const { return m_savingsEstimationModeHasBeenSet; }
94 m_savingsEstimationModeHasBeenSet = true;
95 m_savingsEstimationMode = value;
96 }
99 return *this;
100 }
102 private:
103 Aws::String m_currency;
104
105 double m_beforeDiscountSavings{0.0};
106
107 double m_afterDiscountSavings{0.0};
108
110 bool m_currencyHasBeenSet = false;
111 bool m_beforeDiscountSavingsHasBeenSet = false;
112 bool m_afterDiscountSavingsHasBeenSet = false;
113 bool m_savingsEstimationModeHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ComputeOptimizerAutomation
118} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings(Aws::Utils::Json::JsonView jsonValue)
EstimatedMonthlySavings & WithSavingsEstimationMode(SavingsEstimationMode value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API EstimatedMonthlySavings & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue