AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Card.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/CardBrand.h>
10#include <aws/payments/model/CardType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Payments {
22namespace Model {
23
29class Card {
30 public:
31 AWS_PAYMENTS_API Card() = default;
32 AWS_PAYMENTS_API Card(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PAYMENTS_API Card& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline CardBrand GetBrand() const { return m_brand; }
41 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
42 inline void SetBrand(CardBrand value) {
43 m_brandHasBeenSet = true;
44 m_brand = value;
45 }
46 inline Card& WithBrand(CardBrand value) {
47 SetBrand(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetLast4() const { return m_last4; }
57 inline bool Last4HasBeenSet() const { return m_last4HasBeenSet; }
58 template <typename Last4T = Aws::String>
59 void SetLast4(Last4T&& value) {
60 m_last4HasBeenSet = true;
61 m_last4 = std::forward<Last4T>(value);
62 }
63 template <typename Last4T = Aws::String>
64 Card& WithLast4(Last4T&& value) {
65 SetLast4(std::forward<Last4T>(value));
66 return *this;
67 }
69
71
74 inline int GetExpirationMonth() const { return m_expirationMonth; }
75 inline bool ExpirationMonthHasBeenSet() const { return m_expirationMonthHasBeenSet; }
76 inline void SetExpirationMonth(int value) {
77 m_expirationMonthHasBeenSet = true;
78 m_expirationMonth = value;
79 }
80 inline Card& WithExpirationMonth(int value) {
81 SetExpirationMonth(value);
82 return *this;
83 }
85
87
90 inline int GetExpirationYear() const { return m_expirationYear; }
91 inline bool ExpirationYearHasBeenSet() const { return m_expirationYearHasBeenSet; }
92 inline void SetExpirationYear(int value) {
93 m_expirationYearHasBeenSet = true;
94 m_expirationYear = value;
95 }
96 inline Card& WithExpirationYear(int value) {
97 SetExpirationYear(value);
98 return *this;
99 }
101
103
106 inline CardType GetCardType() const { return m_cardType; }
107 inline bool CardTypeHasBeenSet() const { return m_cardTypeHasBeenSet; }
108 inline void SetCardType(CardType value) {
109 m_cardTypeHasBeenSet = true;
110 m_cardType = value;
111 }
112 inline Card& WithCardType(CardType value) {
113 SetCardType(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetIssuingBank() const { return m_issuingBank; }
123 inline bool IssuingBankHasBeenSet() const { return m_issuingBankHasBeenSet; }
124 template <typename IssuingBankT = Aws::String>
125 void SetIssuingBank(IssuingBankT&& value) {
126 m_issuingBankHasBeenSet = true;
127 m_issuingBank = std::forward<IssuingBankT>(value);
128 }
129 template <typename IssuingBankT = Aws::String>
130 Card& WithIssuingBank(IssuingBankT&& value) {
131 SetIssuingBank(std::forward<IssuingBankT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetIssuerCountry() const { return m_issuerCountry; }
141 inline bool IssuerCountryHasBeenSet() const { return m_issuerCountryHasBeenSet; }
142 template <typename IssuerCountryT = Aws::String>
143 void SetIssuerCountry(IssuerCountryT&& value) {
144 m_issuerCountryHasBeenSet = true;
145 m_issuerCountry = std::forward<IssuerCountryT>(value);
146 }
147 template <typename IssuerCountryT = Aws::String>
148 Card& WithIssuerCountry(IssuerCountryT&& value) {
149 SetIssuerCountry(std::forward<IssuerCountryT>(value));
150 return *this;
151 }
153 private:
155
156 Aws::String m_last4;
157
158 int m_expirationMonth{0};
159
160 int m_expirationYear{0};
161
162 CardType m_cardType{CardType::NOT_SET};
163
164 Aws::String m_issuingBank;
165
166 Aws::String m_issuerCountry;
167 bool m_brandHasBeenSet = false;
168 bool m_last4HasBeenSet = false;
169 bool m_expirationMonthHasBeenSet = false;
170 bool m_expirationYearHasBeenSet = false;
171 bool m_cardTypeHasBeenSet = false;
172 bool m_issuingBankHasBeenSet = false;
173 bool m_issuerCountryHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace Payments
178} // namespace Aws
Card & WithIssuerCountry(IssuerCountryT &&value)
Definition Card.h:148
void SetExpirationYear(int value)
Definition Card.h:92
AWS_PAYMENTS_API Card()=default
const Aws::String & GetLast4() const
Definition Card.h:56
const Aws::String & GetIssuingBank() const
Definition Card.h:122
AWS_PAYMENTS_API Card & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetExpirationYear() const
Definition Card.h:90
AWS_PAYMENTS_API Card(Aws::Utils::Json::JsonView jsonValue)
bool Last4HasBeenSet() const
Definition Card.h:57
CardBrand GetBrand() const
Definition Card.h:40
void SetLast4(Last4T &&value)
Definition Card.h:59
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
bool CardTypeHasBeenSet() const
Definition Card.h:107
void SetExpirationMonth(int value)
Definition Card.h:76
bool IssuingBankHasBeenSet() const
Definition Card.h:123
bool IssuerCountryHasBeenSet() const
Definition Card.h:141
bool BrandHasBeenSet() const
Definition Card.h:41
void SetIssuerCountry(IssuerCountryT &&value)
Definition Card.h:143
bool ExpirationYearHasBeenSet() const
Definition Card.h:91
Card & WithIssuingBank(IssuingBankT &&value)
Definition Card.h:130
Card & WithCardType(CardType value)
Definition Card.h:112
Card & WithLast4(Last4T &&value)
Definition Card.h:64
void SetCardType(CardType value)
Definition Card.h:108
void SetBrand(CardBrand value)
Definition Card.h:42
CardType GetCardType() const
Definition Card.h:106
const Aws::String & GetIssuerCountry() const
Definition Card.h:140
int GetExpirationMonth() const
Definition Card.h:74
void SetIssuingBank(IssuingBankT &&value)
Definition Card.h:125
bool ExpirationMonthHasBeenSet() const
Definition Card.h:75
Card & WithExpirationYear(int value)
Definition Card.h:96
Card & WithBrand(CardBrand value)
Definition Card.h:46
Card & WithExpirationMonth(int value)
Definition Card.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue