AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PaymentInstrument.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/payments/Payments_EXPORTS.h>
10#include <aws/payments/model/PaymentInstrumentDetails.h>
11#include <aws/payments/model/PaymentInstrumentStatus.h>
12#include <aws/payments/model/PaymentMethod.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Payments {
24namespace Model {
25
33 public:
34 AWS_PAYMENTS_API PaymentInstrument() = default;
35 AWS_PAYMENTS_API PaymentInstrument(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 PaymentInstrument& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
78 inline PaymentMethod GetPaymentMethod() const { return m_paymentMethod; }
79 inline bool PaymentMethodHasBeenSet() const { return m_paymentMethodHasBeenSet; }
80 inline void SetPaymentMethod(PaymentMethod value) {
81 m_paymentMethodHasBeenSet = true;
82 m_paymentMethod = value;
83 }
85 SetPaymentMethod(value);
86 return *this;
87 }
89
91
109 inline PaymentInstrumentStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
112 m_statusHasBeenSet = true;
113 m_status = value;
114 }
116 SetStatus(value);
117 return *this;
118 }
120
122
126 inline const PaymentInstrumentDetails& GetDetails() const { return m_details; }
127 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
128 template <typename DetailsT = PaymentInstrumentDetails>
129 void SetDetails(DetailsT&& value) {
130 m_detailsHasBeenSet = true;
131 m_details = std::forward<DetailsT>(value);
132 }
133 template <typename DetailsT = PaymentInstrumentDetails>
134 PaymentInstrument& WithDetails(DetailsT&& value) {
135 SetDetails(std::forward<DetailsT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 PaymentInstrument& WithCreatedAt(CreatedAtT&& value) {
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
163 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
164 template <typename UpdatedAtT = Aws::Utils::DateTime>
165 void SetUpdatedAt(UpdatedAtT&& value) {
166 m_updatedAtHasBeenSet = true;
167 m_updatedAt = std::forward<UpdatedAtT>(value);
168 }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 PaymentInstrument& WithUpdatedAt(UpdatedAtT&& value) {
171 SetUpdatedAt(std::forward<UpdatedAtT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_arn;
177
178 PaymentMethod m_paymentMethod{PaymentMethod::NOT_SET};
179
181
182 PaymentInstrumentDetails m_details;
183
184 Aws::Utils::DateTime m_createdAt{};
185
186 Aws::Utils::DateTime m_updatedAt{};
187 bool m_arnHasBeenSet = false;
188 bool m_paymentMethodHasBeenSet = false;
189 bool m_statusHasBeenSet = false;
190 bool m_detailsHasBeenSet = false;
191 bool m_createdAtHasBeenSet = false;
192 bool m_updatedAtHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Payments
197} // namespace Aws
PaymentInstrument & WithArn(ArnT &&value)
void SetStatus(PaymentInstrumentStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
PaymentInstrumentStatus GetStatus() const
PaymentInstrument & WithPaymentMethod(PaymentMethod value)
void SetPaymentMethod(PaymentMethod value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_PAYMENTS_API PaymentInstrument(Aws::Utils::Json::JsonView jsonValue)
PaymentInstrument & WithStatus(PaymentInstrumentStatus value)
PaymentInstrument & WithCreatedAt(CreatedAtT &&value)
AWS_PAYMENTS_API PaymentInstrument & operator=(Aws::Utils::Json::JsonView jsonValue)
const PaymentInstrumentDetails & GetDetails() const
AWS_PAYMENTS_API PaymentInstrument()=default
PaymentInstrument & WithDetails(DetailsT &&value)
PaymentInstrument & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue