AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TransactionEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
9#include <aws/managedblockchain-query/model/BlockchainInstant.h>
10#include <aws/managedblockchain-query/model/ConfirmationStatus.h>
11#include <aws/managedblockchain-query/model/QueryNetwork.h>
12#include <aws/managedblockchain-query/model/QueryTransactionEventType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ManagedBlockchainQuery {
24namespace Model {
25
33 public:
34 AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent() = default;
35 AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline QueryNetwork GetNetwork() const { return m_network; }
44 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
45 inline void SetNetwork(QueryNetwork value) {
46 m_networkHasBeenSet = true;
47 m_network = value;
48 }
50 SetNetwork(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTransactionHash() const { return m_transactionHash; }
60 inline bool TransactionHashHasBeenSet() const { return m_transactionHashHasBeenSet; }
61 template <typename TransactionHashT = Aws::String>
62 void SetTransactionHash(TransactionHashT&& value) {
63 m_transactionHashHasBeenSet = true;
64 m_transactionHash = std::forward<TransactionHashT>(value);
65 }
66 template <typename TransactionHashT = Aws::String>
67 TransactionEvent& WithTransactionHash(TransactionHashT&& value) {
68 SetTransactionHash(std::forward<TransactionHashT>(value));
69 return *this;
70 }
72
74
77 inline QueryTransactionEventType GetEventType() const { return m_eventType; }
78 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
80 m_eventTypeHasBeenSet = true;
81 m_eventType = value;
82 }
84 SetEventType(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetFrom() const { return m_from; }
95 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
96 template <typename FromT = Aws::String>
97 void SetFrom(FromT&& value) {
98 m_fromHasBeenSet = true;
99 m_from = std::forward<FromT>(value);
100 }
101 template <typename FromT = Aws::String>
102 TransactionEvent& WithFrom(FromT&& value) {
103 SetFrom(std::forward<FromT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetTo() const { return m_to; }
114 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
115 template <typename ToT = Aws::String>
116 void SetTo(ToT&& value) {
117 m_toHasBeenSet = true;
118 m_to = std::forward<ToT>(value);
119 }
120 template <typename ToT = Aws::String>
121 TransactionEvent& WithTo(ToT&& value) {
122 SetTo(std::forward<ToT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetValue() const { return m_value; }
132 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
133 template <typename ValueT = Aws::String>
134 void SetValue(ValueT&& value) {
135 m_valueHasBeenSet = true;
136 m_value = std::forward<ValueT>(value);
137 }
138 template <typename ValueT = Aws::String>
139 TransactionEvent& WithValue(ValueT&& value) {
140 SetValue(std::forward<ValueT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetContractAddress() const { return m_contractAddress; }
150 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
151 template <typename ContractAddressT = Aws::String>
152 void SetContractAddress(ContractAddressT&& value) {
153 m_contractAddressHasBeenSet = true;
154 m_contractAddress = std::forward<ContractAddressT>(value);
155 }
156 template <typename ContractAddressT = Aws::String>
157 TransactionEvent& WithContractAddress(ContractAddressT&& value) {
158 SetContractAddress(std::forward<ContractAddressT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetTokenId() const { return m_tokenId; }
168 inline bool TokenIdHasBeenSet() const { return m_tokenIdHasBeenSet; }
169 template <typename TokenIdT = Aws::String>
170 void SetTokenId(TokenIdT&& value) {
171 m_tokenIdHasBeenSet = true;
172 m_tokenId = std::forward<TokenIdT>(value);
173 }
174 template <typename TokenIdT = Aws::String>
175 TransactionEvent& WithTokenId(TokenIdT&& value) {
176 SetTokenId(std::forward<TokenIdT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
187 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
188 template <typename TransactionIdT = Aws::String>
189 void SetTransactionId(TransactionIdT&& value) {
190 m_transactionIdHasBeenSet = true;
191 m_transactionId = std::forward<TransactionIdT>(value);
192 }
193 template <typename TransactionIdT = Aws::String>
194 TransactionEvent& WithTransactionId(TransactionIdT&& value) {
195 SetTransactionId(std::forward<TransactionIdT>(value));
196 return *this;
197 }
199
201
204 inline int GetVoutIndex() const { return m_voutIndex; }
205 inline bool VoutIndexHasBeenSet() const { return m_voutIndexHasBeenSet; }
206 inline void SetVoutIndex(int value) {
207 m_voutIndexHasBeenSet = true;
208 m_voutIndex = value;
209 }
210 inline TransactionEvent& WithVoutIndex(int value) {
211 SetVoutIndex(value);
212 return *this;
213 }
215
217
222 inline bool GetVoutSpent() const { return m_voutSpent; }
223 inline bool VoutSpentHasBeenSet() const { return m_voutSpentHasBeenSet; }
224 inline void SetVoutSpent(bool value) {
225 m_voutSpentHasBeenSet = true;
226 m_voutSpent = value;
227 }
228 inline TransactionEvent& WithVoutSpent(bool value) {
229 SetVoutSpent(value);
230 return *this;
231 }
233
235
240 inline const Aws::String& GetSpentVoutTransactionId() const { return m_spentVoutTransactionId; }
241 inline bool SpentVoutTransactionIdHasBeenSet() const { return m_spentVoutTransactionIdHasBeenSet; }
242 template <typename SpentVoutTransactionIdT = Aws::String>
243 void SetSpentVoutTransactionId(SpentVoutTransactionIdT&& value) {
244 m_spentVoutTransactionIdHasBeenSet = true;
245 m_spentVoutTransactionId = std::forward<SpentVoutTransactionIdT>(value);
246 }
247 template <typename SpentVoutTransactionIdT = Aws::String>
248 TransactionEvent& WithSpentVoutTransactionId(SpentVoutTransactionIdT&& value) {
249 SetSpentVoutTransactionId(std::forward<SpentVoutTransactionIdT>(value));
250 return *this;
251 }
253
255
260 inline const Aws::String& GetSpentVoutTransactionHash() const { return m_spentVoutTransactionHash; }
261 inline bool SpentVoutTransactionHashHasBeenSet() const { return m_spentVoutTransactionHashHasBeenSet; }
262 template <typename SpentVoutTransactionHashT = Aws::String>
263 void SetSpentVoutTransactionHash(SpentVoutTransactionHashT&& value) {
264 m_spentVoutTransactionHashHasBeenSet = true;
265 m_spentVoutTransactionHash = std::forward<SpentVoutTransactionHashT>(value);
266 }
267 template <typename SpentVoutTransactionHashT = Aws::String>
268 TransactionEvent& WithSpentVoutTransactionHash(SpentVoutTransactionHashT&& value) {
269 SetSpentVoutTransactionHash(std::forward<SpentVoutTransactionHashT>(value));
270 return *this;
271 }
273
275
280 inline int GetSpentVoutIndex() const { return m_spentVoutIndex; }
281 inline bool SpentVoutIndexHasBeenSet() const { return m_spentVoutIndexHasBeenSet; }
282 inline void SetSpentVoutIndex(int value) {
283 m_spentVoutIndexHasBeenSet = true;
284 m_spentVoutIndex = value;
285 }
287 SetSpentVoutIndex(value);
288 return *this;
289 }
291
293
294 inline const BlockchainInstant& GetBlockchainInstant() const { return m_blockchainInstant; }
295 inline bool BlockchainInstantHasBeenSet() const { return m_blockchainInstantHasBeenSet; }
296 template <typename BlockchainInstantT = BlockchainInstant>
297 void SetBlockchainInstant(BlockchainInstantT&& value) {
298 m_blockchainInstantHasBeenSet = true;
299 m_blockchainInstant = std::forward<BlockchainInstantT>(value);
300 }
301 template <typename BlockchainInstantT = BlockchainInstant>
302 TransactionEvent& WithBlockchainInstant(BlockchainInstantT&& value) {
303 SetBlockchainInstant(std::forward<BlockchainInstantT>(value));
304 return *this;
305 }
307
309
312 inline ConfirmationStatus GetConfirmationStatus() const { return m_confirmationStatus; }
313 inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; }
315 m_confirmationStatusHasBeenSet = true;
316 m_confirmationStatus = value;
317 }
320 return *this;
321 }
323 private:
325
326 Aws::String m_transactionHash;
327
329
330 Aws::String m_from;
331
332 Aws::String m_to;
333
334 Aws::String m_value;
335
336 Aws::String m_contractAddress;
337
338 Aws::String m_tokenId;
339
340 Aws::String m_transactionId;
341
342 int m_voutIndex{0};
343
344 bool m_voutSpent{false};
345
346 Aws::String m_spentVoutTransactionId;
347
348 Aws::String m_spentVoutTransactionHash;
349
350 int m_spentVoutIndex{0};
351
352 BlockchainInstant m_blockchainInstant;
353
355 bool m_networkHasBeenSet = false;
356 bool m_transactionHashHasBeenSet = false;
357 bool m_eventTypeHasBeenSet = false;
358 bool m_fromHasBeenSet = false;
359 bool m_toHasBeenSet = false;
360 bool m_valueHasBeenSet = false;
361 bool m_contractAddressHasBeenSet = false;
362 bool m_tokenIdHasBeenSet = false;
363 bool m_transactionIdHasBeenSet = false;
364 bool m_voutIndexHasBeenSet = false;
365 bool m_voutSpentHasBeenSet = false;
366 bool m_spentVoutTransactionIdHasBeenSet = false;
367 bool m_spentVoutTransactionHashHasBeenSet = false;
368 bool m_spentVoutIndexHasBeenSet = false;
369 bool m_blockchainInstantHasBeenSet = false;
370 bool m_confirmationStatusHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace ManagedBlockchainQuery
375} // namespace Aws
TransactionEvent & WithContractAddress(ContractAddressT &&value)
TransactionEvent & WithSpentVoutTransactionId(SpentVoutTransactionIdT &&value)
void SetBlockchainInstant(BlockchainInstantT &&value)
TransactionEvent & WithConfirmationStatus(ConfirmationStatus value)
void SetEventType(QueryTransactionEventType value)
TransactionEvent & WithSpentVoutTransactionHash(SpentVoutTransactionHashT &&value)
TransactionEvent & WithEventType(QueryTransactionEventType value)
TransactionEvent & WithBlockchainInstant(BlockchainInstantT &&value)
TransactionEvent & WithTransactionId(TransactionIdT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent()=default
void SetSpentVoutTransactionHash(SpentVoutTransactionHashT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
TransactionEvent & WithNetwork(QueryNetwork value)
TransactionEvent & WithTokenId(TokenIdT &&value)
void SetSpentVoutTransactionId(SpentVoutTransactionIdT &&value)
TransactionEvent & WithTransactionHash(TransactionHashT &&value)
const BlockchainInstant & GetBlockchainInstant() const
AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue