AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Transaction.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/core/utils/DateTime.h>
11#include <aws/managedblockchain-query/model/ConfirmationStatus.h>
12#include <aws/managedblockchain-query/model/ExecutionStatus.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
42 {
43 public:
44 AWS_MANAGEDBLOCKCHAINQUERY_API Transaction() = default;
45 AWS_MANAGEDBLOCKCHAINQUERY_API Transaction(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MANAGEDBLOCKCHAINQUERY_API Transaction& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline QueryNetwork GetNetwork() const { return m_network; }
55 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
56 inline void SetNetwork(QueryNetwork value) { m_networkHasBeenSet = true; m_network = value; }
57 inline Transaction& WithNetwork(QueryNetwork value) { SetNetwork(value); return *this;}
59
61
66 inline const Aws::String& GetBlockHash() const { return m_blockHash; }
67 inline bool BlockHashHasBeenSet() const { return m_blockHashHasBeenSet; }
68 template<typename BlockHashT = Aws::String>
69 void SetBlockHash(BlockHashT&& value) { m_blockHashHasBeenSet = true; m_blockHash = std::forward<BlockHashT>(value); }
70 template<typename BlockHashT = Aws::String>
71 Transaction& WithBlockHash(BlockHashT&& value) { SetBlockHash(std::forward<BlockHashT>(value)); return *this;}
73
75
78 inline const Aws::String& GetTransactionHash() const { return m_transactionHash; }
79 inline bool TransactionHashHasBeenSet() const { return m_transactionHashHasBeenSet; }
80 template<typename TransactionHashT = Aws::String>
81 void SetTransactionHash(TransactionHashT&& value) { m_transactionHashHasBeenSet = true; m_transactionHash = std::forward<TransactionHashT>(value); }
82 template<typename TransactionHashT = Aws::String>
83 Transaction& WithTransactionHash(TransactionHashT&& value) { SetTransactionHash(std::forward<TransactionHashT>(value)); return *this;}
85
87
90 inline const Aws::String& GetBlockNumber() const { return m_blockNumber; }
91 inline bool BlockNumberHasBeenSet() const { return m_blockNumberHasBeenSet; }
92 template<typename BlockNumberT = Aws::String>
93 void SetBlockNumber(BlockNumberT&& value) { m_blockNumberHasBeenSet = true; m_blockNumber = std::forward<BlockNumberT>(value); }
94 template<typename BlockNumberT = Aws::String>
95 Transaction& WithBlockNumber(BlockNumberT&& value) { SetBlockNumber(std::forward<BlockNumberT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetTransactionTimestamp() const { return m_transactionTimestamp; }
103 inline bool TransactionTimestampHasBeenSet() const { return m_transactionTimestampHasBeenSet; }
104 template<typename TransactionTimestampT = Aws::Utils::DateTime>
105 void SetTransactionTimestamp(TransactionTimestampT&& value) { m_transactionTimestampHasBeenSet = true; m_transactionTimestamp = std::forward<TransactionTimestampT>(value); }
106 template<typename TransactionTimestampT = Aws::Utils::DateTime>
107 Transaction& WithTransactionTimestamp(TransactionTimestampT&& value) { SetTransactionTimestamp(std::forward<TransactionTimestampT>(value)); return *this;}
109
111
114 inline long long GetTransactionIndex() const { return m_transactionIndex; }
115 inline bool TransactionIndexHasBeenSet() const { return m_transactionIndexHasBeenSet; }
116 inline void SetTransactionIndex(long long value) { m_transactionIndexHasBeenSet = true; m_transactionIndex = value; }
117 inline Transaction& WithTransactionIndex(long long value) { SetTransactionIndex(value); return *this;}
119
121
124 inline long long GetNumberOfTransactions() const { return m_numberOfTransactions; }
125 inline bool NumberOfTransactionsHasBeenSet() const { return m_numberOfTransactionsHasBeenSet; }
126 inline void SetNumberOfTransactions(long long value) { m_numberOfTransactionsHasBeenSet = true; m_numberOfTransactions = value; }
127 inline Transaction& WithNumberOfTransactions(long long value) { SetNumberOfTransactions(value); return *this;}
129
131
135 inline const Aws::String& GetTo() const { return m_to; }
136 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
137 template<typename ToT = Aws::String>
138 void SetTo(ToT&& value) { m_toHasBeenSet = true; m_to = std::forward<ToT>(value); }
139 template<typename ToT = Aws::String>
140 Transaction& WithTo(ToT&& value) { SetTo(std::forward<ToT>(value)); return *this;}
142
144
148 inline const Aws::String& GetFrom() const { return m_from; }
149 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
150 template<typename FromT = Aws::String>
151 void SetFrom(FromT&& value) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
152 template<typename FromT = Aws::String>
153 Transaction& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
155
157
160 inline const Aws::String& GetContractAddress() const { return m_contractAddress; }
161 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
162 template<typename ContractAddressT = Aws::String>
163 void SetContractAddress(ContractAddressT&& value) { m_contractAddressHasBeenSet = true; m_contractAddress = std::forward<ContractAddressT>(value); }
164 template<typename ContractAddressT = Aws::String>
165 Transaction& WithContractAddress(ContractAddressT&& value) { SetContractAddress(std::forward<ContractAddressT>(value)); return *this;}
167
169
172 inline const Aws::String& GetGasUsed() const { return m_gasUsed; }
173 inline bool GasUsedHasBeenSet() const { return m_gasUsedHasBeenSet; }
174 template<typename GasUsedT = Aws::String>
175 void SetGasUsed(GasUsedT&& value) { m_gasUsedHasBeenSet = true; m_gasUsed = std::forward<GasUsedT>(value); }
176 template<typename GasUsedT = Aws::String>
177 Transaction& WithGasUsed(GasUsedT&& value) { SetGasUsed(std::forward<GasUsedT>(value)); return *this;}
179
181
184 inline const Aws::String& GetCumulativeGasUsed() const { return m_cumulativeGasUsed; }
185 inline bool CumulativeGasUsedHasBeenSet() const { return m_cumulativeGasUsedHasBeenSet; }
186 template<typename CumulativeGasUsedT = Aws::String>
187 void SetCumulativeGasUsed(CumulativeGasUsedT&& value) { m_cumulativeGasUsedHasBeenSet = true; m_cumulativeGasUsed = std::forward<CumulativeGasUsedT>(value); }
188 template<typename CumulativeGasUsedT = Aws::String>
189 Transaction& WithCumulativeGasUsed(CumulativeGasUsedT&& value) { SetCumulativeGasUsed(std::forward<CumulativeGasUsedT>(value)); return *this;}
191
193
196 inline const Aws::String& GetEffectiveGasPrice() const { return m_effectiveGasPrice; }
197 inline bool EffectiveGasPriceHasBeenSet() const { return m_effectiveGasPriceHasBeenSet; }
198 template<typename EffectiveGasPriceT = Aws::String>
199 void SetEffectiveGasPrice(EffectiveGasPriceT&& value) { m_effectiveGasPriceHasBeenSet = true; m_effectiveGasPrice = std::forward<EffectiveGasPriceT>(value); }
200 template<typename EffectiveGasPriceT = Aws::String>
201 Transaction& WithEffectiveGasPrice(EffectiveGasPriceT&& value) { SetEffectiveGasPrice(std::forward<EffectiveGasPriceT>(value)); return *this;}
203
205
208 inline int GetSignatureV() const { return m_signatureV; }
209 inline bool SignatureVHasBeenSet() const { return m_signatureVHasBeenSet; }
210 inline void SetSignatureV(int value) { m_signatureVHasBeenSet = true; m_signatureV = value; }
211 inline Transaction& WithSignatureV(int value) { SetSignatureV(value); return *this;}
213
215
218 inline const Aws::String& GetSignatureR() const { return m_signatureR; }
219 inline bool SignatureRHasBeenSet() const { return m_signatureRHasBeenSet; }
220 template<typename SignatureRT = Aws::String>
221 void SetSignatureR(SignatureRT&& value) { m_signatureRHasBeenSet = true; m_signatureR = std::forward<SignatureRT>(value); }
222 template<typename SignatureRT = Aws::String>
223 Transaction& WithSignatureR(SignatureRT&& value) { SetSignatureR(std::forward<SignatureRT>(value)); return *this;}
225
227
230 inline const Aws::String& GetSignatureS() const { return m_signatureS; }
231 inline bool SignatureSHasBeenSet() const { return m_signatureSHasBeenSet; }
232 template<typename SignatureST = Aws::String>
233 void SetSignatureS(SignatureST&& value) { m_signatureSHasBeenSet = true; m_signatureS = std::forward<SignatureST>(value); }
234 template<typename SignatureST = Aws::String>
235 Transaction& WithSignatureS(SignatureST&& value) { SetSignatureS(std::forward<SignatureST>(value)); return *this;}
237
239
242 inline const Aws::String& GetTransactionFee() const { return m_transactionFee; }
243 inline bool TransactionFeeHasBeenSet() const { return m_transactionFeeHasBeenSet; }
244 template<typename TransactionFeeT = Aws::String>
245 void SetTransactionFee(TransactionFeeT&& value) { m_transactionFeeHasBeenSet = true; m_transactionFee = std::forward<TransactionFeeT>(value); }
246 template<typename TransactionFeeT = Aws::String>
247 Transaction& WithTransactionFee(TransactionFeeT&& value) { SetTransactionFee(std::forward<TransactionFeeT>(value)); return *this;}
249
251
255 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
256 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
257 template<typename TransactionIdT = Aws::String>
258 void SetTransactionId(TransactionIdT&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::forward<TransactionIdT>(value); }
259 template<typename TransactionIdT = Aws::String>
260 Transaction& WithTransactionId(TransactionIdT&& value) { SetTransactionId(std::forward<TransactionIdT>(value)); return *this;}
262
264
267 inline ConfirmationStatus GetConfirmationStatus() const { return m_confirmationStatus; }
268 inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; }
269 inline void SetConfirmationStatus(ConfirmationStatus value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = value; }
272
274
277 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
278 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
279 inline void SetExecutionStatus(ExecutionStatus value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
282 private:
283
285 bool m_networkHasBeenSet = false;
286
287 Aws::String m_blockHash;
288 bool m_blockHashHasBeenSet = false;
289
290 Aws::String m_transactionHash;
291 bool m_transactionHashHasBeenSet = false;
292
293 Aws::String m_blockNumber;
294 bool m_blockNumberHasBeenSet = false;
295
296 Aws::Utils::DateTime m_transactionTimestamp{};
297 bool m_transactionTimestampHasBeenSet = false;
298
299 long long m_transactionIndex{0};
300 bool m_transactionIndexHasBeenSet = false;
301
302 long long m_numberOfTransactions{0};
303 bool m_numberOfTransactionsHasBeenSet = false;
304
305 Aws::String m_to;
306 bool m_toHasBeenSet = false;
307
308 Aws::String m_from;
309 bool m_fromHasBeenSet = false;
310
311 Aws::String m_contractAddress;
312 bool m_contractAddressHasBeenSet = false;
313
314 Aws::String m_gasUsed;
315 bool m_gasUsedHasBeenSet = false;
316
317 Aws::String m_cumulativeGasUsed;
318 bool m_cumulativeGasUsedHasBeenSet = false;
319
320 Aws::String m_effectiveGasPrice;
321 bool m_effectiveGasPriceHasBeenSet = false;
322
323 int m_signatureV{0};
324 bool m_signatureVHasBeenSet = false;
325
326 Aws::String m_signatureR;
327 bool m_signatureRHasBeenSet = false;
328
329 Aws::String m_signatureS;
330 bool m_signatureSHasBeenSet = false;
331
332 Aws::String m_transactionFee;
333 bool m_transactionFeeHasBeenSet = false;
334
335 Aws::String m_transactionId;
336 bool m_transactionIdHasBeenSet = false;
337
339 bool m_confirmationStatusHasBeenSet = false;
340
341 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
342 bool m_executionStatusHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace ManagedBlockchainQuery
347} // namespace Aws
Transaction & WithCumulativeGasUsed(CumulativeGasUsedT &&value)
const Aws::String & GetTransactionFee() const
Transaction & WithSignatureS(SignatureST &&value)
void SetTransactionHash(TransactionHashT &&value)
Definition Transaction.h:81
Transaction & WithSignatureR(SignatureRT &&value)
Transaction & WithTransactionTimestamp(TransactionTimestampT &&value)
Transaction & WithNumberOfTransactions(long long value)
Transaction & WithContractAddress(ContractAddressT &&value)
Transaction & WithExecutionStatus(ExecutionStatus value)
void SetExecutionStatus(ExecutionStatus value)
void SetEffectiveGasPrice(EffectiveGasPriceT &&value)
void SetTransactionTimestamp(TransactionTimestampT &&value)
Transaction & WithTransactionIndex(long long value)
AWS_MANAGEDBLOCKCHAINQUERY_API Transaction(Aws::Utils::Json::JsonView jsonValue)
Transaction & WithTransactionFee(TransactionFeeT &&value)
Transaction & WithGasUsed(GasUsedT &&value)
void SetTransactionFee(TransactionFeeT &&value)
void SetContractAddress(ContractAddressT &&value)
Transaction & WithConfirmationStatus(ConfirmationStatus value)
void SetTransactionId(TransactionIdT &&value)
const Aws::Utils::DateTime & GetTransactionTimestamp() const
ConfirmationStatus GetConfirmationStatus() const
Transaction & WithBlockHash(BlockHashT &&value)
Definition Transaction.h:71
Transaction & WithTransactionId(TransactionIdT &&value)
Transaction & WithTransactionHash(TransactionHashT &&value)
Definition Transaction.h:83
void SetCumulativeGasUsed(CumulativeGasUsedT &&value)
Transaction & WithBlockNumber(BlockNumberT &&value)
Definition Transaction.h:95
const Aws::String & GetEffectiveGasPrice() const
Transaction & WithNetwork(QueryNetwork value)
Definition Transaction.h:57
const Aws::String & GetTransactionId() const
const Aws::String & GetBlockNumber() const
Definition Transaction.h:90
Transaction & WithEffectiveGasPrice(EffectiveGasPriceT &&value)
const Aws::String & GetTransactionHash() const
Definition Transaction.h:78
const Aws::String & GetContractAddress() const
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConfirmationStatus(ConfirmationStatus value)
AWS_MANAGEDBLOCKCHAINQUERY_API Transaction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API Transaction()=default
const Aws::String & GetCumulativeGasUsed() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue