AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PaymentInstrumentDetails.h
1
6#pragma once
7#include <aws/payments/Payments_EXPORTS.h>
8#include <aws/payments/model/Card.h>
9#include <aws/payments/model/CnBankRedirect.h>
10#include <aws/payments/model/InNetBanking.h>
11#include <aws/payments/model/SepaBankAccount.h>
12#include <aws/payments/model/UkBacsBankAccount.h>
13#include <aws/payments/model/Upi.h>
14#include <aws/payments/model/UsAchBankAccount.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Payments {
26namespace Model {
27
35 public:
36 AWS_PAYMENTS_API PaymentInstrumentDetails() = default;
39 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Card& GetCard() const { return m_card; }
46 inline bool CardHasBeenSet() const { return m_cardHasBeenSet; }
47 template <typename CardT = Card>
48 void SetCard(CardT&& value) {
49 m_cardHasBeenSet = true;
50 m_card = std::forward<CardT>(value);
51 }
52 template <typename CardT = Card>
54 SetCard(std::forward<CardT>(value));
55 return *this;
56 }
58
60
64 inline const UsAchBankAccount& GetUsAchBankAccount() const { return m_usAchBankAccount; }
65 inline bool UsAchBankAccountHasBeenSet() const { return m_usAchBankAccountHasBeenSet; }
66 template <typename UsAchBankAccountT = UsAchBankAccount>
67 void SetUsAchBankAccount(UsAchBankAccountT&& value) {
68 m_usAchBankAccountHasBeenSet = true;
69 m_usAchBankAccount = std::forward<UsAchBankAccountT>(value);
70 }
71 template <typename UsAchBankAccountT = UsAchBankAccount>
72 PaymentInstrumentDetails& WithUsAchBankAccount(UsAchBankAccountT&& value) {
73 SetUsAchBankAccount(std::forward<UsAchBankAccountT>(value));
74 return *this;
75 }
77
79
83 inline const SepaBankAccount& GetSepaBankAccount() const { return m_sepaBankAccount; }
84 inline bool SepaBankAccountHasBeenSet() const { return m_sepaBankAccountHasBeenSet; }
85 template <typename SepaBankAccountT = SepaBankAccount>
86 void SetSepaBankAccount(SepaBankAccountT&& value) {
87 m_sepaBankAccountHasBeenSet = true;
88 m_sepaBankAccount = std::forward<SepaBankAccountT>(value);
89 }
90 template <typename SepaBankAccountT = SepaBankAccount>
91 PaymentInstrumentDetails& WithSepaBankAccount(SepaBankAccountT&& value) {
92 SetSepaBankAccount(std::forward<SepaBankAccountT>(value));
93 return *this;
94 }
96
98
101 inline const UkBacsBankAccount& GetUkBacsBankAccount() const { return m_ukBacsBankAccount; }
102 inline bool UkBacsBankAccountHasBeenSet() const { return m_ukBacsBankAccountHasBeenSet; }
103 template <typename UkBacsBankAccountT = UkBacsBankAccount>
104 void SetUkBacsBankAccount(UkBacsBankAccountT&& value) {
105 m_ukBacsBankAccountHasBeenSet = true;
106 m_ukBacsBankAccount = std::forward<UkBacsBankAccountT>(value);
107 }
108 template <typename UkBacsBankAccountT = UkBacsBankAccount>
109 PaymentInstrumentDetails& WithUkBacsBankAccount(UkBacsBankAccountT&& value) {
110 SetUkBacsBankAccount(std::forward<UkBacsBankAccountT>(value));
111 return *this;
112 }
114
116
119 inline const InNetBanking& GetInNetBanking() const { return m_inNetBanking; }
120 inline bool InNetBankingHasBeenSet() const { return m_inNetBankingHasBeenSet; }
121 template <typename InNetBankingT = InNetBanking>
122 void SetInNetBanking(InNetBankingT&& value) {
123 m_inNetBankingHasBeenSet = true;
124 m_inNetBanking = std::forward<InNetBankingT>(value);
125 }
126 template <typename InNetBankingT = InNetBanking>
128 SetInNetBanking(std::forward<InNetBankingT>(value));
129 return *this;
130 }
132
134
137 inline const CnBankRedirect& GetCnBankRedirect() const { return m_cnBankRedirect; }
138 inline bool CnBankRedirectHasBeenSet() const { return m_cnBankRedirectHasBeenSet; }
139 template <typename CnBankRedirectT = CnBankRedirect>
140 void SetCnBankRedirect(CnBankRedirectT&& value) {
141 m_cnBankRedirectHasBeenSet = true;
142 m_cnBankRedirect = std::forward<CnBankRedirectT>(value);
143 }
144 template <typename CnBankRedirectT = CnBankRedirect>
146 SetCnBankRedirect(std::forward<CnBankRedirectT>(value));
147 return *this;
148 }
150
152
155 inline const Upi& GetUpi() const { return m_upi; }
156 inline bool UpiHasBeenSet() const { return m_upiHasBeenSet; }
157 template <typename UpiT = Upi>
158 void SetUpi(UpiT&& value) {
159 m_upiHasBeenSet = true;
160 m_upi = std::forward<UpiT>(value);
161 }
162 template <typename UpiT = Upi>
164 SetUpi(std::forward<UpiT>(value));
165 return *this;
166 }
168 private:
169 Card m_card;
170
171 UsAchBankAccount m_usAchBankAccount;
172
173 SepaBankAccount m_sepaBankAccount;
174
175 UkBacsBankAccount m_ukBacsBankAccount;
176
177 InNetBanking m_inNetBanking;
178
179 CnBankRedirect m_cnBankRedirect;
180
181 Upi m_upi;
182 bool m_cardHasBeenSet = false;
183 bool m_usAchBankAccountHasBeenSet = false;
184 bool m_sepaBankAccountHasBeenSet = false;
185 bool m_ukBacsBankAccountHasBeenSet = false;
186 bool m_inNetBankingHasBeenSet = false;
187 bool m_cnBankRedirectHasBeenSet = false;
188 bool m_upiHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Payments
193} // namespace Aws
AWS_PAYMENTS_API PaymentInstrumentDetails()=default
PaymentInstrumentDetails & WithUkBacsBankAccount(UkBacsBankAccountT &&value)
PaymentInstrumentDetails & WithSepaBankAccount(SepaBankAccountT &&value)
AWS_PAYMENTS_API PaymentInstrumentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
PaymentInstrumentDetails & WithUpi(UpiT &&value)
PaymentInstrumentDetails & WithCard(CardT &&value)
PaymentInstrumentDetails & WithUsAchBankAccount(UsAchBankAccountT &&value)
PaymentInstrumentDetails & WithInNetBanking(InNetBankingT &&value)
AWS_PAYMENTS_API PaymentInstrumentDetails(Aws::Utils::Json::JsonView jsonValue)
PaymentInstrumentDetails & WithCnBankRedirect(CnBankRedirectT &&value)
Aws::Utils::Json::JsonValue JsonValue