AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
SettlementRecord.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/Currency.h>
11#include <aws/wafv2/model/SettlementStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2 {
23namespace Model {
24
33 public:
34 AWS_WAFV2_API SettlementRecord() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
44 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
45 template <typename TimestampT = Aws::Utils::DateTime>
46 void SetTimestamp(TimestampT&& value) {
47 m_timestampHasBeenSet = true;
48 m_timestamp = std::forward<TimestampT>(value);
49 }
50 template <typename TimestampT = Aws::Utils::DateTime>
51 SettlementRecord& WithTimestamp(TimestampT&& value) {
52 SetTimestamp(std::forward<TimestampT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPayerAddress() const { return m_payerAddress; }
62 inline bool PayerAddressHasBeenSet() const { return m_payerAddressHasBeenSet; }
63 template <typename PayerAddressT = Aws::String>
64 void SetPayerAddress(PayerAddressT&& value) {
65 m_payerAddressHasBeenSet = true;
66 m_payerAddress = std::forward<PayerAddressT>(value);
67 }
68 template <typename PayerAddressT = Aws::String>
69 SettlementRecord& WithPayerAddress(PayerAddressT&& value) {
70 SetPayerAddress(std::forward<PayerAddressT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetWalletAddress() const { return m_walletAddress; }
80 inline bool WalletAddressHasBeenSet() const { return m_walletAddressHasBeenSet; }
81 template <typename WalletAddressT = Aws::String>
82 void SetWalletAddress(WalletAddressT&& value) {
83 m_walletAddressHasBeenSet = true;
84 m_walletAddress = std::forward<WalletAddressT>(value);
85 }
86 template <typename WalletAddressT = Aws::String>
87 SettlementRecord& WithWalletAddress(WalletAddressT&& value) {
88 SetWalletAddress(std::forward<WalletAddressT>(value));
89 return *this;
90 }
92
94
119 inline SettlementStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(SettlementStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetAmount() const { return m_amount; }
136 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
137 template <typename AmountT = Aws::String>
138 void SetAmount(AmountT&& value) {
139 m_amountHasBeenSet = true;
140 m_amount = std::forward<AmountT>(value);
141 }
142 template <typename AmountT = Aws::String>
143 SettlementRecord& WithAmount(AmountT&& value) {
144 SetAmount(std::forward<AmountT>(value));
145 return *this;
146 }
148
150
153 inline Currency GetCurrency() const { return m_currency; }
154 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
155 inline void SetCurrency(Currency value) {
156 m_currencyHasBeenSet = true;
157 m_currency = value;
158 }
160 SetCurrency(value);
161 return *this;
162 }
164
166
169 inline const Aws::String& GetNetwork() const { return m_network; }
170 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
171 template <typename NetworkT = Aws::String>
172 void SetNetwork(NetworkT&& value) {
173 m_networkHasBeenSet = true;
174 m_network = std::forward<NetworkT>(value);
175 }
176 template <typename NetworkT = Aws::String>
177 SettlementRecord& WithNetwork(NetworkT&& value) {
178 SetNetwork(std::forward<NetworkT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
189 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
190 template <typename TransactionIdT = Aws::String>
191 void SetTransactionId(TransactionIdT&& value) {
192 m_transactionIdHasBeenSet = true;
193 m_transactionId = std::forward<TransactionIdT>(value);
194 }
195 template <typename TransactionIdT = Aws::String>
196 SettlementRecord& WithTransactionId(TransactionIdT&& value) {
197 SetTransactionId(std::forward<TransactionIdT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
208 template <typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) {
210 m_requestIdHasBeenSet = true;
211 m_requestId = std::forward<RequestIdT>(value);
212 }
213 template <typename RequestIdT = Aws::String>
214 SettlementRecord& WithRequestId(RequestIdT&& value) {
215 SetRequestId(std::forward<RequestIdT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetSourceName() const { return m_sourceName; }
225 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
226 template <typename SourceNameT = Aws::String>
227 void SetSourceName(SourceNameT&& value) {
228 m_sourceNameHasBeenSet = true;
229 m_sourceName = std::forward<SourceNameT>(value);
230 }
231 template <typename SourceNameT = Aws::String>
232 SettlementRecord& WithSourceName(SourceNameT&& value) {
233 SetSourceName(std::forward<SourceNameT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetOrganization() const { return m_organization; }
243 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
244 template <typename OrganizationT = Aws::String>
245 void SetOrganization(OrganizationT&& value) {
246 m_organizationHasBeenSet = true;
247 m_organization = std::forward<OrganizationT>(value);
248 }
249 template <typename OrganizationT = Aws::String>
250 SettlementRecord& WithOrganization(OrganizationT&& value) {
251 SetOrganization(std::forward<OrganizationT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetSourceCategory() const { return m_sourceCategory; }
261 inline bool SourceCategoryHasBeenSet() const { return m_sourceCategoryHasBeenSet; }
262 template <typename SourceCategoryT = Aws::String>
263 void SetSourceCategory(SourceCategoryT&& value) {
264 m_sourceCategoryHasBeenSet = true;
265 m_sourceCategory = std::forward<SourceCategoryT>(value);
266 }
267 template <typename SourceCategoryT = Aws::String>
268 SettlementRecord& WithSourceCategory(SourceCategoryT&& value) {
269 SetSourceCategory(std::forward<SourceCategoryT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::String& GetIntent() const { return m_intent; }
279 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
280 template <typename IntentT = Aws::String>
281 void SetIntent(IntentT&& value) {
282 m_intentHasBeenSet = true;
283 m_intent = std::forward<IntentT>(value);
284 }
285 template <typename IntentT = Aws::String>
286 SettlementRecord& WithIntent(IntentT&& value) {
287 SetIntent(std::forward<IntentT>(value));
288 return *this;
289 }
291
293
296 inline bool GetVerified() const { return m_verified; }
297 inline bool VerifiedHasBeenSet() const { return m_verifiedHasBeenSet; }
298 inline void SetVerified(bool value) {
299 m_verifiedHasBeenSet = true;
300 m_verified = value;
301 }
302 inline SettlementRecord& WithVerified(bool value) {
303 SetVerified(value);
304 return *this;
305 }
307
309
312 inline const Aws::String& GetContentPath() const { return m_contentPath; }
313 inline bool ContentPathHasBeenSet() const { return m_contentPathHasBeenSet; }
314 template <typename ContentPathT = Aws::String>
315 void SetContentPath(ContentPathT&& value) {
316 m_contentPathHasBeenSet = true;
317 m_contentPath = std::forward<ContentPathT>(value);
318 }
319 template <typename ContentPathT = Aws::String>
320 SettlementRecord& WithContentPath(ContentPathT&& value) {
321 SetContentPath(std::forward<ContentPathT>(value));
322 return *this;
323 }
325
327
330 inline const Aws::String& GetWebAclArn() const { return m_webAclArn; }
331 inline bool WebAclArnHasBeenSet() const { return m_webAclArnHasBeenSet; }
332 template <typename WebAclArnT = Aws::String>
333 void SetWebAclArn(WebAclArnT&& value) {
334 m_webAclArnHasBeenSet = true;
335 m_webAclArn = std::forward<WebAclArnT>(value);
336 }
337 template <typename WebAclArnT = Aws::String>
338 SettlementRecord& WithWebAclArn(WebAclArnT&& value) {
339 SetWebAclArn(std::forward<WebAclArnT>(value));
340 return *this;
341 }
343
345
348 inline const Aws::Utils::DateTime& GetRequestTimestamp() const { return m_requestTimestamp; }
349 inline bool RequestTimestampHasBeenSet() const { return m_requestTimestampHasBeenSet; }
350 template <typename RequestTimestampT = Aws::Utils::DateTime>
351 void SetRequestTimestamp(RequestTimestampT&& value) {
352 m_requestTimestampHasBeenSet = true;
353 m_requestTimestamp = std::forward<RequestTimestampT>(value);
354 }
355 template <typename RequestTimestampT = Aws::Utils::DateTime>
356 SettlementRecord& WithRequestTimestamp(RequestTimestampT&& value) {
357 SetRequestTimestamp(std::forward<RequestTimestampT>(value));
358 return *this;
359 }
361 private:
362 Aws::Utils::DateTime m_timestamp{};
363
364 Aws::String m_payerAddress;
365
366 Aws::String m_walletAddress;
367
369
370 Aws::String m_amount;
371
372 Currency m_currency{Currency::NOT_SET};
373
374 Aws::String m_network;
375
376 Aws::String m_transactionId;
377
378 Aws::String m_requestId;
379
380 Aws::String m_sourceName;
381
382 Aws::String m_organization;
383
384 Aws::String m_sourceCategory;
385
386 Aws::String m_intent;
387
388 bool m_verified{false};
389
390 Aws::String m_contentPath;
391
392 Aws::String m_webAclArn;
393
394 Aws::Utils::DateTime m_requestTimestamp{};
395 bool m_timestampHasBeenSet = false;
396 bool m_payerAddressHasBeenSet = false;
397 bool m_walletAddressHasBeenSet = false;
398 bool m_statusHasBeenSet = false;
399 bool m_amountHasBeenSet = false;
400 bool m_currencyHasBeenSet = false;
401 bool m_networkHasBeenSet = false;
402 bool m_transactionIdHasBeenSet = false;
403 bool m_requestIdHasBeenSet = false;
404 bool m_sourceNameHasBeenSet = false;
405 bool m_organizationHasBeenSet = false;
406 bool m_sourceCategoryHasBeenSet = false;
407 bool m_intentHasBeenSet = false;
408 bool m_verifiedHasBeenSet = false;
409 bool m_contentPathHasBeenSet = false;
410 bool m_webAclArnHasBeenSet = false;
411 bool m_requestTimestampHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace WAFV2
416} // namespace Aws
const Aws::String & GetIntent() const
void SetOrganization(OrganizationT &&value)
const Aws::String & GetContentPath() const
SettlementRecord & WithRequestTimestamp(RequestTimestampT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetNetwork() const
const Aws::String & GetSourceCategory() const
AWS_WAFV2_API SettlementRecord(Aws::Utils::Json::JsonView jsonValue)
SettlementRecord & WithPayerAddress(PayerAddressT &&value)
SettlementRecord & WithWalletAddress(WalletAddressT &&value)
void SetRequestTimestamp(RequestTimestampT &&value)
void SetTransactionId(TransactionIdT &&value)
void SetTimestamp(TimestampT &&value)
void SetStatus(SettlementStatus value)
SettlementRecord & WithWebAclArn(WebAclArnT &&value)
void SetWalletAddress(WalletAddressT &&value)
const Aws::String & GetPayerAddress() const
const Aws::String & GetRequestId() const
AWS_WAFV2_API SettlementRecord()=default
SettlementRecord & WithCurrency(Currency value)
SettlementRecord & WithIntent(IntentT &&value)
SettlementRecord & WithSourceName(SourceNameT &&value)
SettlementRecord & WithAmount(AmountT &&value)
void SetPayerAddress(PayerAddressT &&value)
void SetRequestId(RequestIdT &&value)
void SetSourceCategory(SourceCategoryT &&value)
SettlementRecord & WithContentPath(ContentPathT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
const Aws::Utils::DateTime & GetRequestTimestamp() const
SettlementRecord & WithTransactionId(TransactionIdT &&value)
void SetSourceName(SourceNameT &&value)
void SetContentPath(ContentPathT &&value)
SettlementRecord & WithNetwork(NetworkT &&value)
SettlementRecord & WithStatus(SettlementStatus value)
const Aws::String & GetTransactionId() const
SettlementRecord & WithTimestamp(TimestampT &&value)
void SetWebAclArn(WebAclArnT &&value)
AWS_WAFV2_API SettlementRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
SettlementRecord & WithOrganization(OrganizationT &&value)
const Aws::String & GetWalletAddress() const
const Aws::String & GetOrganization() const
SettlementRecord & WithRequestId(RequestIdT &&value)
const Aws::String & GetAmount() const
const Aws::String & GetWebAclArn() const
SettlementRecord & WithSourceCategory(SourceCategoryT &&value)
SettlementRecord & WithVerified(bool value)
const Aws::String & GetSourceName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue