AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PaymentInstrumentSummary.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/PaymentInstrumentStatus.h>
11#include <aws/payments/model/PaymentMethod.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Payments {
23namespace Model {
24
34 public:
35 AWS_PAYMENTS_API PaymentInstrumentSummary() = default;
38 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetArn() const { return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 template <typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) {
70 m_arnHasBeenSet = true;
71 m_arn = std::forward<ArnT>(value);
72 }
73 template <typename ArnT = Aws::String>
75 SetArn(std::forward<ArnT>(value));
76 return *this;
77 }
79
81
98 inline PaymentMethod GetPaymentMethod() const { return m_paymentMethod; }
99 inline bool PaymentMethodHasBeenSet() const { return m_paymentMethodHasBeenSet; }
100 inline void SetPaymentMethod(PaymentMethod value) {
101 m_paymentMethodHasBeenSet = true;
102 m_paymentMethod = value;
103 }
105 SetPaymentMethod(value);
106 return *this;
107 }
109
111
129 inline PaymentInstrumentStatus GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
147 template <typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) {
149 m_createdAtHasBeenSet = true;
150 m_createdAt = std::forward<CreatedAtT>(value);
151 }
152 template <typename CreatedAtT = Aws::Utils::DateTime>
154 SetCreatedAt(std::forward<CreatedAtT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
164 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
165 template <typename UpdatedAtT = Aws::Utils::DateTime>
166 void SetUpdatedAt(UpdatedAtT&& value) {
167 m_updatedAtHasBeenSet = true;
168 m_updatedAt = std::forward<UpdatedAtT>(value);
169 }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
172 SetUpdatedAt(std::forward<UpdatedAtT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_id;
178
179 Aws::String m_arn;
180
181 PaymentMethod m_paymentMethod{PaymentMethod::NOT_SET};
182
184
185 Aws::Utils::DateTime m_createdAt{};
186
187 Aws::Utils::DateTime m_updatedAt{};
188 bool m_idHasBeenSet = false;
189 bool m_arnHasBeenSet = false;
190 bool m_paymentMethodHasBeenSet = false;
191 bool m_statusHasBeenSet = false;
192 bool m_createdAtHasBeenSet = false;
193 bool m_updatedAtHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace Payments
198} // namespace Aws
AWS_PAYMENTS_API PaymentInstrumentSummary()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
PaymentInstrumentSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_PAYMENTS_API PaymentInstrumentSummary(Aws::Utils::Json::JsonView jsonValue)
PaymentInstrumentSummary & WithPaymentMethod(PaymentMethod value)
PaymentInstrumentSummary & WithCreatedAt(CreatedAtT &&value)
PaymentInstrumentSummary & WithStatus(PaymentInstrumentStatus value)
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
PaymentInstrumentSummary & WithArn(ArnT &&value)
PaymentInstrumentSummary & WithId(IdT &&value)
AWS_PAYMENTS_API PaymentInstrumentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue