AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ThirdPartyCostItem.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Currency.h>
9#include <aws/appmonetization/model/ThirdPartyCostFrequency.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMonetization {
23namespace Model {
24
33 public:
34 AWS_APPMONETIZATION_API ThirdPartyCostItem() = default;
35 AWS_APPMONETIZATION_API ThirdPartyCostItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API ThirdPartyCostItem& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAppId() const { return m_appId; }
44 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
45 template <typename AppIdT = Aws::String>
46 void SetAppId(AppIdT&& value) {
47 m_appIdHasBeenSet = true;
48 m_appId = std::forward<AppIdT>(value);
49 }
50 template <typename AppIdT = Aws::String>
51 ThirdPartyCostItem& WithAppId(AppIdT&& value) {
52 SetAppId(std::forward<AppIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetCostId() const { return m_costId; }
62 inline bool CostIdHasBeenSet() const { return m_costIdHasBeenSet; }
63 template <typename CostIdT = Aws::String>
64 void SetCostId(CostIdT&& value) {
65 m_costIdHasBeenSet = true;
66 m_costId = std::forward<CostIdT>(value);
67 }
68 template <typename CostIdT = Aws::String>
69 ThirdPartyCostItem& WithCostId(CostIdT&& value) {
70 SetCostId(std::forward<CostIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetLabel() const { return m_label; }
81 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
82 template <typename LabelT = Aws::String>
83 void SetLabel(LabelT&& value) {
84 m_labelHasBeenSet = true;
85 m_label = std::forward<LabelT>(value);
86 }
87 template <typename LabelT = Aws::String>
88 ThirdPartyCostItem& WithLabel(LabelT&& value) {
89 SetLabel(std::forward<LabelT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetAmount() const { return m_amount; }
100 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
101 template <typename AmountT = Aws::String>
102 void SetAmount(AmountT&& value) {
103 m_amountHasBeenSet = true;
104 m_amount = std::forward<AmountT>(value);
105 }
106 template <typename AmountT = Aws::String>
107 ThirdPartyCostItem& WithAmount(AmountT&& value) {
108 SetAmount(std::forward<AmountT>(value));
109 return *this;
110 }
112
114
117 inline ThirdPartyCostFrequency GetFrequency() const { return m_frequency; }
118 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
120 m_frequencyHasBeenSet = true;
121 m_frequency = value;
122 }
124 SetFrequency(value);
125 return *this;
126 }
128
130
133 inline Currency GetCurrency() const { return m_currency; }
134 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
135 inline void SetCurrency(Currency value) {
136 m_currencyHasBeenSet = true;
137 m_currency = value;
138 }
140 SetCurrency(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetDescription() const { return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 template <typename DescriptionT = Aws::String>
152 void SetDescription(DescriptionT&& value) {
153 m_descriptionHasBeenSet = true;
154 m_description = std::forward<DescriptionT>(value);
155 }
156 template <typename DescriptionT = Aws::String>
157 ThirdPartyCostItem& WithDescription(DescriptionT&& value) {
158 SetDescription(std::forward<DescriptionT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetEffectiveFrom() const { return m_effectiveFrom; }
169 inline bool EffectiveFromHasBeenSet() const { return m_effectiveFromHasBeenSet; }
170 template <typename EffectiveFromT = Aws::String>
171 void SetEffectiveFrom(EffectiveFromT&& value) {
172 m_effectiveFromHasBeenSet = true;
173 m_effectiveFrom = std::forward<EffectiveFromT>(value);
174 }
175 template <typename EffectiveFromT = Aws::String>
176 ThirdPartyCostItem& WithEffectiveFrom(EffectiveFromT&& value) {
177 SetEffectiveFrom(std::forward<EffectiveFromT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::String& GetEffectiveTo() const { return m_effectiveTo; }
188 inline bool EffectiveToHasBeenSet() const { return m_effectiveToHasBeenSet; }
189 template <typename EffectiveToT = Aws::String>
190 void SetEffectiveTo(EffectiveToT&& value) {
191 m_effectiveToHasBeenSet = true;
192 m_effectiveTo = std::forward<EffectiveToT>(value);
193 }
194 template <typename EffectiveToT = Aws::String>
195 ThirdPartyCostItem& WithEffectiveTo(EffectiveToT&& value) {
196 SetEffectiveTo(std::forward<EffectiveToT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
206 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
208 void SetCreatedAt(CreatedAtT&& value) {
209 m_createdAtHasBeenSet = true;
210 m_createdAt = std::forward<CreatedAtT>(value);
211 }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 ThirdPartyCostItem& WithCreatedAt(CreatedAtT&& value) {
214 SetCreatedAt(std::forward<CreatedAtT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
224 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
225 template <typename UpdatedAtT = Aws::Utils::DateTime>
226 void SetUpdatedAt(UpdatedAtT&& value) {
227 m_updatedAtHasBeenSet = true;
228 m_updatedAt = std::forward<UpdatedAtT>(value);
229 }
230 template <typename UpdatedAtT = Aws::Utils::DateTime>
231 ThirdPartyCostItem& WithUpdatedAt(UpdatedAtT&& value) {
232 SetUpdatedAt(std::forward<UpdatedAtT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_appId;
238
239 Aws::String m_costId;
240
241 Aws::String m_label;
242
243 Aws::String m_amount;
244
246
247 Currency m_currency{Currency::NOT_SET};
248
249 Aws::String m_description;
250
251 Aws::String m_effectiveFrom;
252
253 Aws::String m_effectiveTo;
254
255 Aws::Utils::DateTime m_createdAt{};
256
257 Aws::Utils::DateTime m_updatedAt{};
258 bool m_appIdHasBeenSet = false;
259 bool m_costIdHasBeenSet = false;
260 bool m_labelHasBeenSet = false;
261 bool m_amountHasBeenSet = false;
262 bool m_frequencyHasBeenSet = false;
263 bool m_currencyHasBeenSet = false;
264 bool m_descriptionHasBeenSet = false;
265 bool m_effectiveFromHasBeenSet = false;
266 bool m_effectiveToHasBeenSet = false;
267 bool m_createdAtHasBeenSet = false;
268 bool m_updatedAtHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace AppMonetization
273} // namespace Aws
ThirdPartyCostItem & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API ThirdPartyCostItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API ThirdPartyCostItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
ThirdPartyCostItem & WithEffectiveTo(EffectiveToT &&value)
AWS_APPMONETIZATION_API ThirdPartyCostItem()=default
ThirdPartyCostItem & WithCreatedAt(CreatedAtT &&value)
ThirdPartyCostItem & WithDescription(DescriptionT &&value)
ThirdPartyCostItem & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ThirdPartyCostItem & WithFrequency(ThirdPartyCostFrequency value)
void SetFrequency(ThirdPartyCostFrequency value)
ThirdPartyCostItem & WithEffectiveFrom(EffectiveFromT &&value)
ThirdPartyCostItem & WithCostId(CostIdT &&value)
ThirdPartyCostItem & WithLabel(LabelT &&value)
ThirdPartyCostItem & WithAmount(AmountT &&value)
ThirdPartyCostItem & WithCurrency(Currency value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue