AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
PaymentInstrument.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/PaymentInstrumentDetails.h>
9#include <aws/bedrock-agentcore/model/PaymentInstrumentStatus.h>
10#include <aws/bedrock-agentcore/model/PaymentInstrumentType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentCore {
24namespace Model {
25
32 public:
33 AWS_BEDROCKAGENTCORE_API PaymentInstrument() = default;
34 AWS_BEDROCKAGENTCORE_API PaymentInstrument(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTCORE_API PaymentInstrument& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPaymentInstrumentId() const { return m_paymentInstrumentId; }
43 inline bool PaymentInstrumentIdHasBeenSet() const { return m_paymentInstrumentIdHasBeenSet; }
44 template <typename PaymentInstrumentIdT = Aws::String>
45 void SetPaymentInstrumentId(PaymentInstrumentIdT&& value) {
46 m_paymentInstrumentIdHasBeenSet = true;
47 m_paymentInstrumentId = std::forward<PaymentInstrumentIdT>(value);
48 }
49 template <typename PaymentInstrumentIdT = Aws::String>
50 PaymentInstrument& WithPaymentInstrumentId(PaymentInstrumentIdT&& value) {
51 SetPaymentInstrumentId(std::forward<PaymentInstrumentIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPaymentManagerArn() const { return m_paymentManagerArn; }
61 inline bool PaymentManagerArnHasBeenSet() const { return m_paymentManagerArnHasBeenSet; }
62 template <typename PaymentManagerArnT = Aws::String>
63 void SetPaymentManagerArn(PaymentManagerArnT&& value) {
64 m_paymentManagerArnHasBeenSet = true;
65 m_paymentManagerArn = std::forward<PaymentManagerArnT>(value);
66 }
67 template <typename PaymentManagerArnT = Aws::String>
68 PaymentInstrument& WithPaymentManagerArn(PaymentManagerArnT&& value) {
69 SetPaymentManagerArn(std::forward<PaymentManagerArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPaymentConnectorId() const { return m_paymentConnectorId; }
79 inline bool PaymentConnectorIdHasBeenSet() const { return m_paymentConnectorIdHasBeenSet; }
80 template <typename PaymentConnectorIdT = Aws::String>
81 void SetPaymentConnectorId(PaymentConnectorIdT&& value) {
82 m_paymentConnectorIdHasBeenSet = true;
83 m_paymentConnectorId = std::forward<PaymentConnectorIdT>(value);
84 }
85 template <typename PaymentConnectorIdT = Aws::String>
86 PaymentInstrument& WithPaymentConnectorId(PaymentConnectorIdT&& value) {
87 SetPaymentConnectorId(std::forward<PaymentConnectorIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetUserId() const { return m_userId; }
97 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
98 template <typename UserIdT = Aws::String>
99 void SetUserId(UserIdT&& value) {
100 m_userIdHasBeenSet = true;
101 m_userId = std::forward<UserIdT>(value);
102 }
103 template <typename UserIdT = Aws::String>
104 PaymentInstrument& WithUserId(UserIdT&& value) {
105 SetUserId(std::forward<UserIdT>(value));
106 return *this;
107 }
109
111
114 inline PaymentInstrumentType GetPaymentInstrumentType() const { return m_paymentInstrumentType; }
115 inline bool PaymentInstrumentTypeHasBeenSet() const { return m_paymentInstrumentTypeHasBeenSet; }
117 m_paymentInstrumentTypeHasBeenSet = true;
118 m_paymentInstrumentType = value;
119 }
125
127
130 inline const PaymentInstrumentDetails& GetPaymentInstrumentDetails() const { return m_paymentInstrumentDetails; }
131 inline bool PaymentInstrumentDetailsHasBeenSet() const { return m_paymentInstrumentDetailsHasBeenSet; }
132 template <typename PaymentInstrumentDetailsT = PaymentInstrumentDetails>
133 void SetPaymentInstrumentDetails(PaymentInstrumentDetailsT&& value) {
134 m_paymentInstrumentDetailsHasBeenSet = true;
135 m_paymentInstrumentDetails = std::forward<PaymentInstrumentDetailsT>(value);
136 }
137 template <typename PaymentInstrumentDetailsT = PaymentInstrumentDetails>
138 PaymentInstrument& WithPaymentInstrumentDetails(PaymentInstrumentDetailsT&& value) {
139 SetPaymentInstrumentDetails(std::forward<PaymentInstrumentDetailsT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
149 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
151 void SetCreatedAt(CreatedAtT&& value) {
152 m_createdAtHasBeenSet = true;
153 m_createdAt = std::forward<CreatedAtT>(value);
154 }
155 template <typename CreatedAtT = Aws::Utils::DateTime>
156 PaymentInstrument& WithCreatedAt(CreatedAtT&& value) {
157 SetCreatedAt(std::forward<CreatedAtT>(value));
158 return *this;
159 }
161
163
166 inline PaymentInstrumentStatus GetStatus() const { return m_status; }
167 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 m_statusHasBeenSet = true;
170 m_status = value;
171 }
173 SetStatus(value);
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
183 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
184 template <typename UpdatedAtT = Aws::Utils::DateTime>
185 void SetUpdatedAt(UpdatedAtT&& value) {
186 m_updatedAtHasBeenSet = true;
187 m_updatedAt = std::forward<UpdatedAtT>(value);
188 }
189 template <typename UpdatedAtT = Aws::Utils::DateTime>
190 PaymentInstrument& WithUpdatedAt(UpdatedAtT&& value) {
191 SetUpdatedAt(std::forward<UpdatedAtT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_paymentInstrumentId;
197
198 Aws::String m_paymentManagerArn;
199
200 Aws::String m_paymentConnectorId;
201
202 Aws::String m_userId;
203
205
206 PaymentInstrumentDetails m_paymentInstrumentDetails;
207
208 Aws::Utils::DateTime m_createdAt{};
209
211
212 Aws::Utils::DateTime m_updatedAt{};
213 bool m_paymentInstrumentIdHasBeenSet = false;
214 bool m_paymentManagerArnHasBeenSet = false;
215 bool m_paymentConnectorIdHasBeenSet = false;
216 bool m_userIdHasBeenSet = false;
217 bool m_paymentInstrumentTypeHasBeenSet = false;
218 bool m_paymentInstrumentDetailsHasBeenSet = false;
219 bool m_createdAtHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221 bool m_updatedAtHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace BedrockAgentCore
226} // namespace Aws
void SetPaymentInstrumentDetails(PaymentInstrumentDetailsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
PaymentInstrument & WithStatus(PaymentInstrumentStatus value)
PaymentInstrument & WithUserId(UserIdT &&value)
AWS_BEDROCKAGENTCORE_API PaymentInstrument(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API PaymentInstrument & operator=(Aws::Utils::Json::JsonView jsonValue)
PaymentInstrument & WithCreatedAt(CreatedAtT &&value)
AWS_BEDROCKAGENTCORE_API PaymentInstrument()=default
void SetPaymentManagerArn(PaymentManagerArnT &&value)
PaymentInstrument & WithPaymentInstrumentDetails(PaymentInstrumentDetailsT &&value)
PaymentInstrument & WithPaymentInstrumentId(PaymentInstrumentIdT &&value)
PaymentInstrument & WithPaymentConnectorId(PaymentConnectorIdT &&value)
PaymentInstrumentType GetPaymentInstrumentType() const
void SetStatus(PaymentInstrumentStatus value)
void SetPaymentInstrumentId(PaymentInstrumentIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const PaymentInstrumentDetails & GetPaymentInstrumentDetails() const
PaymentInstrument & WithPaymentInstrumentType(PaymentInstrumentType value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPaymentInstrumentType(PaymentInstrumentType value)
void SetPaymentConnectorId(PaymentConnectorIdT &&value)
PaymentInstrument & WithUpdatedAt(UpdatedAtT &&value)
PaymentInstrument & WithPaymentManagerArn(PaymentManagerArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue