AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AccountBalance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payments/Payments_EXPORTS.h>
9#include <aws/payments/model/CurrencyAmount.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Payments {
21namespace Model {
22
30 public:
31 AWS_PAYMENTS_API AccountBalance() = default;
32 AWS_PAYMENTS_API AccountBalance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const CurrencyAmount& GetAmount() const { return m_amount; }
42 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
43 template <typename AmountT = CurrencyAmount>
44 void SetAmount(AmountT&& value) {
45 m_amountHasBeenSet = true;
46 m_amount = std::forward<AmountT>(value);
47 }
48 template <typename AmountT = CurrencyAmount>
49 AccountBalance& WithAmount(AmountT&& value) {
50 SetAmount(std::forward<AmountT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetMerchantOfRecord() const { return m_merchantOfRecord; }
61 inline bool MerchantOfRecordHasBeenSet() const { return m_merchantOfRecordHasBeenSet; }
62 template <typename MerchantOfRecordT = Aws::String>
63 void SetMerchantOfRecord(MerchantOfRecordT&& value) {
64 m_merchantOfRecordHasBeenSet = true;
65 m_merchantOfRecord = std::forward<MerchantOfRecordT>(value);
66 }
67 template <typename MerchantOfRecordT = Aws::String>
68 AccountBalance& WithMerchantOfRecord(MerchantOfRecordT&& value) {
69 SetMerchantOfRecord(std::forward<MerchantOfRecordT>(value));
70 return *this;
71 }
73 private:
74 CurrencyAmount m_amount;
75
76 Aws::String m_merchantOfRecord;
77 bool m_amountHasBeenSet = false;
78 bool m_merchantOfRecordHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Payments
83} // namespace Aws
void SetMerchantOfRecord(MerchantOfRecordT &&value)
AccountBalance & WithAmount(AmountT &&value)
AWS_PAYMENTS_API AccountBalance(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTS_API AccountBalance()=default
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AccountBalance & WithMerchantOfRecord(MerchantOfRecordT &&value)
const CurrencyAmount & GetAmount() const
AWS_PAYMENTS_API AccountBalance & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMerchantOfRecord() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue