AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransactionEvent.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
8#include <aws/managedblockchain-query/model/QueryNetwork.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain-query/model/QueryTransactionEventType.h>
11#include <aws/managedblockchain-query/model/BlockchainInstant.h>
12#include <aws/managedblockchain-query/model/ConfirmationStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ManagedBlockchainQuery
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent();
40 AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const QueryNetwork& GetNetwork() const{ return m_network; }
50 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
51 inline void SetNetwork(const QueryNetwork& value) { m_networkHasBeenSet = true; m_network = value; }
52 inline void SetNetwork(QueryNetwork&& value) { m_networkHasBeenSet = true; m_network = std::move(value); }
53 inline TransactionEvent& WithNetwork(const QueryNetwork& value) { SetNetwork(value); return *this;}
54 inline TransactionEvent& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetTransactionHash() const{ return m_transactionHash; }
62 inline bool TransactionHashHasBeenSet() const { return m_transactionHashHasBeenSet; }
63 inline void SetTransactionHash(const Aws::String& value) { m_transactionHashHasBeenSet = true; m_transactionHash = value; }
64 inline void SetTransactionHash(Aws::String&& value) { m_transactionHashHasBeenSet = true; m_transactionHash = std::move(value); }
65 inline void SetTransactionHash(const char* value) { m_transactionHashHasBeenSet = true; m_transactionHash.assign(value); }
66 inline TransactionEvent& WithTransactionHash(const Aws::String& value) { SetTransactionHash(value); return *this;}
67 inline TransactionEvent& WithTransactionHash(Aws::String&& value) { SetTransactionHash(std::move(value)); return *this;}
68 inline TransactionEvent& WithTransactionHash(const char* value) { SetTransactionHash(value); return *this;}
70
72
75 inline const QueryTransactionEventType& GetEventType() const{ return m_eventType; }
76 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
77 inline void SetEventType(const QueryTransactionEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
78 inline void SetEventType(QueryTransactionEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
79 inline TransactionEvent& WithEventType(const QueryTransactionEventType& value) { SetEventType(value); return *this;}
80 inline TransactionEvent& WithEventType(QueryTransactionEventType&& value) { SetEventType(std::move(value)); return *this;}
82
84
88 inline const Aws::String& GetFrom() const{ return m_from; }
89 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
90 inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
91 inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
92 inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
93 inline TransactionEvent& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
94 inline TransactionEvent& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
95 inline TransactionEvent& WithFrom(const char* value) { SetFrom(value); return *this;}
97
99
103 inline const Aws::String& GetTo() const{ return m_to; }
104 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
105 inline void SetTo(const Aws::String& value) { m_toHasBeenSet = true; m_to = value; }
106 inline void SetTo(Aws::String&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
107 inline void SetTo(const char* value) { m_toHasBeenSet = true; m_to.assign(value); }
108 inline TransactionEvent& WithTo(const Aws::String& value) { SetTo(value); return *this;}
109 inline TransactionEvent& WithTo(Aws::String&& value) { SetTo(std::move(value)); return *this;}
110 inline TransactionEvent& WithTo(const char* value) { SetTo(value); return *this;}
112
114
117 inline const Aws::String& GetValue() const{ return m_value; }
118 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
119 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
120 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
121 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
122 inline TransactionEvent& WithValue(const Aws::String& value) { SetValue(value); return *this;}
123 inline TransactionEvent& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
124 inline TransactionEvent& WithValue(const char* value) { SetValue(value); return *this;}
126
128
131 inline const Aws::String& GetContractAddress() const{ return m_contractAddress; }
132 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
133 inline void SetContractAddress(const Aws::String& value) { m_contractAddressHasBeenSet = true; m_contractAddress = value; }
134 inline void SetContractAddress(Aws::String&& value) { m_contractAddressHasBeenSet = true; m_contractAddress = std::move(value); }
135 inline void SetContractAddress(const char* value) { m_contractAddressHasBeenSet = true; m_contractAddress.assign(value); }
136 inline TransactionEvent& WithContractAddress(const Aws::String& value) { SetContractAddress(value); return *this;}
137 inline TransactionEvent& WithContractAddress(Aws::String&& value) { SetContractAddress(std::move(value)); return *this;}
138 inline TransactionEvent& WithContractAddress(const char* value) { SetContractAddress(value); return *this;}
140
142
145 inline const Aws::String& GetTokenId() const{ return m_tokenId; }
146 inline bool TokenIdHasBeenSet() const { return m_tokenIdHasBeenSet; }
147 inline void SetTokenId(const Aws::String& value) { m_tokenIdHasBeenSet = true; m_tokenId = value; }
148 inline void SetTokenId(Aws::String&& value) { m_tokenIdHasBeenSet = true; m_tokenId = std::move(value); }
149 inline void SetTokenId(const char* value) { m_tokenIdHasBeenSet = true; m_tokenId.assign(value); }
150 inline TransactionEvent& WithTokenId(const Aws::String& value) { SetTokenId(value); return *this;}
151 inline TransactionEvent& WithTokenId(Aws::String&& value) { SetTokenId(std::move(value)); return *this;}
152 inline TransactionEvent& WithTokenId(const char* value) { SetTokenId(value); return *this;}
154
156
160 inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
161 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
162 inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
163 inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
164 inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
165 inline TransactionEvent& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
166 inline TransactionEvent& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
167 inline TransactionEvent& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
169
171
174 inline int GetVoutIndex() const{ return m_voutIndex; }
175 inline bool VoutIndexHasBeenSet() const { return m_voutIndexHasBeenSet; }
176 inline void SetVoutIndex(int value) { m_voutIndexHasBeenSet = true; m_voutIndex = value; }
177 inline TransactionEvent& WithVoutIndex(int value) { SetVoutIndex(value); return *this;}
179
181
186 inline bool GetVoutSpent() const{ return m_voutSpent; }
187 inline bool VoutSpentHasBeenSet() const { return m_voutSpentHasBeenSet; }
188 inline void SetVoutSpent(bool value) { m_voutSpentHasBeenSet = true; m_voutSpent = value; }
189 inline TransactionEvent& WithVoutSpent(bool value) { SetVoutSpent(value); return *this;}
191
193
198 inline const Aws::String& GetSpentVoutTransactionId() const{ return m_spentVoutTransactionId; }
199 inline bool SpentVoutTransactionIdHasBeenSet() const { return m_spentVoutTransactionIdHasBeenSet; }
200 inline void SetSpentVoutTransactionId(const Aws::String& value) { m_spentVoutTransactionIdHasBeenSet = true; m_spentVoutTransactionId = value; }
201 inline void SetSpentVoutTransactionId(Aws::String&& value) { m_spentVoutTransactionIdHasBeenSet = true; m_spentVoutTransactionId = std::move(value); }
202 inline void SetSpentVoutTransactionId(const char* value) { m_spentVoutTransactionIdHasBeenSet = true; m_spentVoutTransactionId.assign(value); }
204 inline TransactionEvent& WithSpentVoutTransactionId(Aws::String&& value) { SetSpentVoutTransactionId(std::move(value)); return *this;}
205 inline TransactionEvent& WithSpentVoutTransactionId(const char* value) { SetSpentVoutTransactionId(value); return *this;}
207
209
214 inline const Aws::String& GetSpentVoutTransactionHash() const{ return m_spentVoutTransactionHash; }
215 inline bool SpentVoutTransactionHashHasBeenSet() const { return m_spentVoutTransactionHashHasBeenSet; }
216 inline void SetSpentVoutTransactionHash(const Aws::String& value) { m_spentVoutTransactionHashHasBeenSet = true; m_spentVoutTransactionHash = value; }
217 inline void SetSpentVoutTransactionHash(Aws::String&& value) { m_spentVoutTransactionHashHasBeenSet = true; m_spentVoutTransactionHash = std::move(value); }
218 inline void SetSpentVoutTransactionHash(const char* value) { m_spentVoutTransactionHashHasBeenSet = true; m_spentVoutTransactionHash.assign(value); }
221 inline TransactionEvent& WithSpentVoutTransactionHash(const char* value) { SetSpentVoutTransactionHash(value); return *this;}
223
225
230 inline int GetSpentVoutIndex() const{ return m_spentVoutIndex; }
231 inline bool SpentVoutIndexHasBeenSet() const { return m_spentVoutIndexHasBeenSet; }
232 inline void SetSpentVoutIndex(int value) { m_spentVoutIndexHasBeenSet = true; m_spentVoutIndex = value; }
233 inline TransactionEvent& WithSpentVoutIndex(int value) { SetSpentVoutIndex(value); return *this;}
235
237
238 inline const BlockchainInstant& GetBlockchainInstant() const{ return m_blockchainInstant; }
239 inline bool BlockchainInstantHasBeenSet() const { return m_blockchainInstantHasBeenSet; }
240 inline void SetBlockchainInstant(const BlockchainInstant& value) { m_blockchainInstantHasBeenSet = true; m_blockchainInstant = value; }
241 inline void SetBlockchainInstant(BlockchainInstant&& value) { m_blockchainInstantHasBeenSet = true; m_blockchainInstant = std::move(value); }
243 inline TransactionEvent& WithBlockchainInstant(BlockchainInstant&& value) { SetBlockchainInstant(std::move(value)); return *this;}
245
247
250 inline const ConfirmationStatus& GetConfirmationStatus() const{ return m_confirmationStatus; }
251 inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; }
252 inline void SetConfirmationStatus(const ConfirmationStatus& value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = value; }
253 inline void SetConfirmationStatus(ConfirmationStatus&& value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = std::move(value); }
255 inline TransactionEvent& WithConfirmationStatus(ConfirmationStatus&& value) { SetConfirmationStatus(std::move(value)); return *this;}
257 private:
258
259 QueryNetwork m_network;
260 bool m_networkHasBeenSet = false;
261
262 Aws::String m_transactionHash;
263 bool m_transactionHashHasBeenSet = false;
264
265 QueryTransactionEventType m_eventType;
266 bool m_eventTypeHasBeenSet = false;
267
268 Aws::String m_from;
269 bool m_fromHasBeenSet = false;
270
271 Aws::String m_to;
272 bool m_toHasBeenSet = false;
273
274 Aws::String m_value;
275 bool m_valueHasBeenSet = false;
276
277 Aws::String m_contractAddress;
278 bool m_contractAddressHasBeenSet = false;
279
280 Aws::String m_tokenId;
281 bool m_tokenIdHasBeenSet = false;
282
283 Aws::String m_transactionId;
284 bool m_transactionIdHasBeenSet = false;
285
286 int m_voutIndex;
287 bool m_voutIndexHasBeenSet = false;
288
289 bool m_voutSpent;
290 bool m_voutSpentHasBeenSet = false;
291
292 Aws::String m_spentVoutTransactionId;
293 bool m_spentVoutTransactionIdHasBeenSet = false;
294
295 Aws::String m_spentVoutTransactionHash;
296 bool m_spentVoutTransactionHashHasBeenSet = false;
297
298 int m_spentVoutIndex;
299 bool m_spentVoutIndexHasBeenSet = false;
300
301 BlockchainInstant m_blockchainInstant;
302 bool m_blockchainInstantHasBeenSet = false;
303
304 ConfirmationStatus m_confirmationStatus;
305 bool m_confirmationStatusHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace ManagedBlockchainQuery
310} // namespace Aws
TransactionEvent & WithTokenId(Aws::String &&value)
TransactionEvent & WithTransactionHash(Aws::String &&value)
TransactionEvent & WithSpentVoutTransactionHash(const Aws::String &value)
void SetEventType(QueryTransactionEventType &&value)
TransactionEvent & WithSpentVoutTransactionId(Aws::String &&value)
const ConfirmationStatus & GetConfirmationStatus() const
TransactionEvent & WithFrom(const char *value)
void SetConfirmationStatus(ConfirmationStatus &&value)
void SetEventType(const QueryTransactionEventType &value)
void SetConfirmationStatus(const ConfirmationStatus &value)
TransactionEvent & WithTokenId(const char *value)
TransactionEvent & WithEventType(const QueryTransactionEventType &value)
TransactionEvent & WithContractAddress(const Aws::String &value)
TransactionEvent & WithBlockchainInstant(const BlockchainInstant &value)
const QueryTransactionEventType & GetEventType() const
TransactionEvent & WithTransactionHash(const Aws::String &value)
TransactionEvent & WithSpentVoutTransactionHash(const char *value)
TransactionEvent & WithSpentVoutTransactionHash(Aws::String &&value)
TransactionEvent & WithNetwork(QueryNetwork &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent()
TransactionEvent & WithConfirmationStatus(const ConfirmationStatus &value)
TransactionEvent & WithContractAddress(const char *value)
TransactionEvent & WithSpentVoutTransactionId(const char *value)
TransactionEvent & WithNetwork(const QueryNetwork &value)
TransactionEvent & WithFrom(Aws::String &&value)
void SetSpentVoutTransactionHash(const Aws::String &value)
TransactionEvent & WithContractAddress(Aws::String &&value)
TransactionEvent & WithTransactionId(const Aws::String &value)
TransactionEvent & WithBlockchainInstant(BlockchainInstant &&value)
TransactionEvent & WithValue(const char *value)
TransactionEvent & WithTransactionHash(const char *value)
const BlockchainInstant & GetBlockchainInstant() const
TransactionEvent & WithSpentVoutTransactionId(const Aws::String &value)
AWS_MANAGEDBLOCKCHAINQUERY_API TransactionEvent(Aws::Utils::Json::JsonView jsonValue)
TransactionEvent & WithTo(const char *value)
TransactionEvent & WithEventType(QueryTransactionEventType &&value)
TransactionEvent & WithTransactionId(Aws::String &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
TransactionEvent & WithConfirmationStatus(ConfirmationStatus &&value)
TransactionEvent & WithTokenId(const Aws::String &value)
void SetBlockchainInstant(const BlockchainInstant &value)
TransactionEvent & WithValue(const Aws::String &value)
TransactionEvent & WithValue(Aws::String &&value)
TransactionEvent & WithFrom(const Aws::String &value)
TransactionEvent & WithTo(const Aws::String &value)
TransactionEvent & WithTransactionId(const char *value)
TransactionEvent & WithTo(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue