AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 QueryNetwork GetNetwork() const { return m_network; }
50 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
51 inline void SetNetwork(QueryNetwork value) { m_networkHasBeenSet = true; m_network = value; }
52 inline TransactionEvent& WithNetwork(QueryNetwork value) { SetNetwork(value); return *this;}
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) { m_transactionHashHasBeenSet = true; m_transactionHash = std::forward<TransactionHashT>(value); }
63 template<typename TransactionHashT = Aws::String>
64 TransactionEvent& WithTransactionHash(TransactionHashT&& value) { SetTransactionHash(std::forward<TransactionHashT>(value)); return *this;}
66
68
71 inline QueryTransactionEventType GetEventType() const { return m_eventType; }
72 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
73 inline void SetEventType(QueryTransactionEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
76
78
82 inline const Aws::String& GetFrom() const { return m_from; }
83 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
84 template<typename FromT = Aws::String>
85 void SetFrom(FromT&& value) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
86 template<typename FromT = Aws::String>
87 TransactionEvent& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
89
91
95 inline const Aws::String& GetTo() const { return m_to; }
96 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
97 template<typename ToT = Aws::String>
98 void SetTo(ToT&& value) { m_toHasBeenSet = true; m_to = std::forward<ToT>(value); }
99 template<typename ToT = Aws::String>
100 TransactionEvent& WithTo(ToT&& value) { SetTo(std::forward<ToT>(value)); return *this;}
102
104
107 inline const Aws::String& GetValue() const { return m_value; }
108 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
109 template<typename ValueT = Aws::String>
110 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
111 template<typename ValueT = Aws::String>
112 TransactionEvent& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
114
116
119 inline const Aws::String& GetContractAddress() const { return m_contractAddress; }
120 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
121 template<typename ContractAddressT = Aws::String>
122 void SetContractAddress(ContractAddressT&& value) { m_contractAddressHasBeenSet = true; m_contractAddress = std::forward<ContractAddressT>(value); }
123 template<typename ContractAddressT = Aws::String>
124 TransactionEvent& WithContractAddress(ContractAddressT&& value) { SetContractAddress(std::forward<ContractAddressT>(value)); return *this;}
126
128
131 inline const Aws::String& GetTokenId() const { return m_tokenId; }
132 inline bool TokenIdHasBeenSet() const { return m_tokenIdHasBeenSet; }
133 template<typename TokenIdT = Aws::String>
134 void SetTokenId(TokenIdT&& value) { m_tokenIdHasBeenSet = true; m_tokenId = std::forward<TokenIdT>(value); }
135 template<typename TokenIdT = Aws::String>
136 TransactionEvent& WithTokenId(TokenIdT&& value) { SetTokenId(std::forward<TokenIdT>(value)); return *this;}
138
140
144 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
145 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
146 template<typename TransactionIdT = Aws::String>
147 void SetTransactionId(TransactionIdT&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::forward<TransactionIdT>(value); }
148 template<typename TransactionIdT = Aws::String>
149 TransactionEvent& WithTransactionId(TransactionIdT&& value) { SetTransactionId(std::forward<TransactionIdT>(value)); return *this;}
151
153
156 inline int GetVoutIndex() const { return m_voutIndex; }
157 inline bool VoutIndexHasBeenSet() const { return m_voutIndexHasBeenSet; }
158 inline void SetVoutIndex(int value) { m_voutIndexHasBeenSet = true; m_voutIndex = value; }
159 inline TransactionEvent& WithVoutIndex(int value) { SetVoutIndex(value); return *this;}
161
163
168 inline bool GetVoutSpent() const { return m_voutSpent; }
169 inline bool VoutSpentHasBeenSet() const { return m_voutSpentHasBeenSet; }
170 inline void SetVoutSpent(bool value) { m_voutSpentHasBeenSet = true; m_voutSpent = value; }
171 inline TransactionEvent& WithVoutSpent(bool value) { SetVoutSpent(value); return *this;}
173
175
180 inline const Aws::String& GetSpentVoutTransactionId() const { return m_spentVoutTransactionId; }
181 inline bool SpentVoutTransactionIdHasBeenSet() const { return m_spentVoutTransactionIdHasBeenSet; }
182 template<typename SpentVoutTransactionIdT = Aws::String>
183 void SetSpentVoutTransactionId(SpentVoutTransactionIdT&& value) { m_spentVoutTransactionIdHasBeenSet = true; m_spentVoutTransactionId = std::forward<SpentVoutTransactionIdT>(value); }
184 template<typename SpentVoutTransactionIdT = Aws::String>
185 TransactionEvent& WithSpentVoutTransactionId(SpentVoutTransactionIdT&& value) { SetSpentVoutTransactionId(std::forward<SpentVoutTransactionIdT>(value)); return *this;}
187
189
194 inline const Aws::String& GetSpentVoutTransactionHash() const { return m_spentVoutTransactionHash; }
195 inline bool SpentVoutTransactionHashHasBeenSet() const { return m_spentVoutTransactionHashHasBeenSet; }
196 template<typename SpentVoutTransactionHashT = Aws::String>
197 void SetSpentVoutTransactionHash(SpentVoutTransactionHashT&& value) { m_spentVoutTransactionHashHasBeenSet = true; m_spentVoutTransactionHash = std::forward<SpentVoutTransactionHashT>(value); }
198 template<typename SpentVoutTransactionHashT = Aws::String>
199 TransactionEvent& WithSpentVoutTransactionHash(SpentVoutTransactionHashT&& value) { SetSpentVoutTransactionHash(std::forward<SpentVoutTransactionHashT>(value)); return *this;}
201
203
208 inline int GetSpentVoutIndex() const { return m_spentVoutIndex; }
209 inline bool SpentVoutIndexHasBeenSet() const { return m_spentVoutIndexHasBeenSet; }
210 inline void SetSpentVoutIndex(int value) { m_spentVoutIndexHasBeenSet = true; m_spentVoutIndex = value; }
211 inline TransactionEvent& WithSpentVoutIndex(int value) { SetSpentVoutIndex(value); return *this;}
213
215
216 inline const BlockchainInstant& GetBlockchainInstant() const { return m_blockchainInstant; }
217 inline bool BlockchainInstantHasBeenSet() const { return m_blockchainInstantHasBeenSet; }
218 template<typename BlockchainInstantT = BlockchainInstant>
219 void SetBlockchainInstant(BlockchainInstantT&& value) { m_blockchainInstantHasBeenSet = true; m_blockchainInstant = std::forward<BlockchainInstantT>(value); }
220 template<typename BlockchainInstantT = BlockchainInstant>
221 TransactionEvent& WithBlockchainInstant(BlockchainInstantT&& value) { SetBlockchainInstant(std::forward<BlockchainInstantT>(value)); return *this;}
223
225
228 inline ConfirmationStatus GetConfirmationStatus() const { return m_confirmationStatus; }
229 inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; }
230 inline void SetConfirmationStatus(ConfirmationStatus value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = value; }
233 private:
234
236 bool m_networkHasBeenSet = false;
237
238 Aws::String m_transactionHash;
239 bool m_transactionHashHasBeenSet = false;
240
242 bool m_eventTypeHasBeenSet = false;
243
244 Aws::String m_from;
245 bool m_fromHasBeenSet = false;
246
247 Aws::String m_to;
248 bool m_toHasBeenSet = false;
249
250 Aws::String m_value;
251 bool m_valueHasBeenSet = false;
252
253 Aws::String m_contractAddress;
254 bool m_contractAddressHasBeenSet = false;
255
256 Aws::String m_tokenId;
257 bool m_tokenIdHasBeenSet = false;
258
259 Aws::String m_transactionId;
260 bool m_transactionIdHasBeenSet = false;
261
262 int m_voutIndex{0};
263 bool m_voutIndexHasBeenSet = false;
264
265 bool m_voutSpent{false};
266 bool m_voutSpentHasBeenSet = false;
267
268 Aws::String m_spentVoutTransactionId;
269 bool m_spentVoutTransactionIdHasBeenSet = false;
270
271 Aws::String m_spentVoutTransactionHash;
272 bool m_spentVoutTransactionHashHasBeenSet = false;
273
274 int m_spentVoutIndex{0};
275 bool m_spentVoutIndexHasBeenSet = false;
276
277 BlockchainInstant m_blockchainInstant;
278 bool m_blockchainInstantHasBeenSet = false;
279
281 bool m_confirmationStatusHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace ManagedBlockchainQuery
286} // 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