AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
BillableAction.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMonetization {
20namespace Model {
21
29 public:
30 AWS_APPMONETIZATION_API BillableAction() = default;
31 AWS_APPMONETIZATION_API BillableAction(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API BillableAction& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 BillableAction& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetUnit() const { return m_unit; }
62 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
63 template <typename UnitT = Aws::String>
64 void SetUnit(UnitT&& value) {
65 m_unitHasBeenSet = true;
66 m_unit = std::forward<UnitT>(value);
67 }
68 template <typename UnitT = Aws::String>
69 BillableAction& WithUnit(UnitT&& value) {
70 SetUnit(std::forward<UnitT>(value));
71 return *this;
72 }
74
76
83 inline double GetUnitCost() const { return m_unitCost; }
84 inline bool UnitCostHasBeenSet() const { return m_unitCostHasBeenSet; }
85 inline void SetUnitCost(double value) {
86 m_unitCostHasBeenSet = true;
87 m_unitCost = value;
88 }
89 inline BillableAction& WithUnitCost(double value) {
90 SetUnitCost(value);
91 return *this;
92 }
94
96
99 inline double GetTypicalMonthlyUsage() const { return m_typicalMonthlyUsage; }
100 inline bool TypicalMonthlyUsageHasBeenSet() const { return m_typicalMonthlyUsageHasBeenSet; }
101 inline void SetTypicalMonthlyUsage(double value) {
102 m_typicalMonthlyUsageHasBeenSet = true;
103 m_typicalMonthlyUsage = value;
104 }
107 return *this;
108 }
110
112
124 inline double GetMinutesSaved() const { return m_minutesSaved; }
125 inline bool MinutesSavedHasBeenSet() const { return m_minutesSavedHasBeenSet; }
126 inline void SetMinutesSaved(double value) {
127 m_minutesSavedHasBeenSet = true;
128 m_minutesSaved = value;
129 }
130 inline BillableAction& WithMinutesSaved(double value) {
131 SetMinutesSaved(value);
132 return *this;
133 }
135
137
149 inline double GetMoneySaved() const { return m_moneySaved; }
150 inline bool MoneySavedHasBeenSet() const { return m_moneySavedHasBeenSet; }
151 inline void SetMoneySaved(double value) {
152 m_moneySavedHasBeenSet = true;
153 m_moneySaved = value;
154 }
155 inline BillableAction& WithMoneySaved(double value) {
156 SetMoneySaved(value);
157 return *this;
158 }
160
162
176 inline double GetValuePerUse() const { return m_valuePerUse; }
177 inline bool ValuePerUseHasBeenSet() const { return m_valuePerUseHasBeenSet; }
178 inline void SetValuePerUse(double value) {
179 m_valuePerUseHasBeenSet = true;
180 m_valuePerUse = value;
181 }
182 inline BillableAction& WithValuePerUse(double value) {
183 SetValuePerUse(value);
184 return *this;
185 }
187 private:
188 Aws::String m_name;
189
190 Aws::String m_unit;
191
192 double m_unitCost{0.0};
193
194 double m_typicalMonthlyUsage{0.0};
195
196 double m_minutesSaved{0.0};
197
198 double m_moneySaved{0.0};
199
200 double m_valuePerUse{0.0};
201 bool m_nameHasBeenSet = false;
202 bool m_unitHasBeenSet = false;
203 bool m_unitCostHasBeenSet = false;
204 bool m_typicalMonthlyUsageHasBeenSet = false;
205 bool m_minutesSavedHasBeenSet = false;
206 bool m_moneySavedHasBeenSet = false;
207 bool m_valuePerUseHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace AppMonetization
212} // namespace Aws
BillableAction & WithUnitCost(double value)
AWS_APPMONETIZATION_API BillableAction(Aws::Utils::Json::JsonView jsonValue)
BillableAction & WithMinutesSaved(double value)
AWS_APPMONETIZATION_API BillableAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
BillableAction & WithMoneySaved(double value)
BillableAction & WithTypicalMonthlyUsage(double value)
AWS_APPMONETIZATION_API BillableAction()=default
BillableAction & WithUnit(UnitT &&value)
BillableAction & WithValuePerUse(double value)
BillableAction & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue