AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const QueryNetwork& GetNetwork() const{ return m_network; }
55 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
56 inline void SetNetwork(const QueryNetwork& value) { m_networkHasBeenSet = true; m_network = value; }
57 inline void SetNetwork(QueryNetwork&& value) { m_networkHasBeenSet = true; m_network = std::move(value); }
58 inline Transaction& WithNetwork(const QueryNetwork& value) { SetNetwork(value); return *this;}
59 inline Transaction& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;}
61
63
68 inline const Aws::String& GetBlockHash() const{ return m_blockHash; }
69 inline bool BlockHashHasBeenSet() const { return m_blockHashHasBeenSet; }
70 inline void SetBlockHash(const Aws::String& value) { m_blockHashHasBeenSet = true; m_blockHash = value; }
71 inline void SetBlockHash(Aws::String&& value) { m_blockHashHasBeenSet = true; m_blockHash = std::move(value); }
72 inline void SetBlockHash(const char* value) { m_blockHashHasBeenSet = true; m_blockHash.assign(value); }
73 inline Transaction& WithBlockHash(const Aws::String& value) { SetBlockHash(value); return *this;}
74 inline Transaction& WithBlockHash(Aws::String&& value) { SetBlockHash(std::move(value)); return *this;}
75 inline Transaction& WithBlockHash(const char* value) { SetBlockHash(value); return *this;}
77
79
82 inline const Aws::String& GetTransactionHash() const{ return m_transactionHash; }
83 inline bool TransactionHashHasBeenSet() const { return m_transactionHashHasBeenSet; }
84 inline void SetTransactionHash(const Aws::String& value) { m_transactionHashHasBeenSet = true; m_transactionHash = value; }
85 inline void SetTransactionHash(Aws::String&& value) { m_transactionHashHasBeenSet = true; m_transactionHash = std::move(value); }
86 inline void SetTransactionHash(const char* value) { m_transactionHashHasBeenSet = true; m_transactionHash.assign(value); }
87 inline Transaction& WithTransactionHash(const Aws::String& value) { SetTransactionHash(value); return *this;}
88 inline Transaction& WithTransactionHash(Aws::String&& value) { SetTransactionHash(std::move(value)); return *this;}
89 inline Transaction& WithTransactionHash(const char* value) { SetTransactionHash(value); return *this;}
91
93
96 inline const Aws::String& GetBlockNumber() const{ return m_blockNumber; }
97 inline bool BlockNumberHasBeenSet() const { return m_blockNumberHasBeenSet; }
98 inline void SetBlockNumber(const Aws::String& value) { m_blockNumberHasBeenSet = true; m_blockNumber = value; }
99 inline void SetBlockNumber(Aws::String&& value) { m_blockNumberHasBeenSet = true; m_blockNumber = std::move(value); }
100 inline void SetBlockNumber(const char* value) { m_blockNumberHasBeenSet = true; m_blockNumber.assign(value); }
101 inline Transaction& WithBlockNumber(const Aws::String& value) { SetBlockNumber(value); return *this;}
102 inline Transaction& WithBlockNumber(Aws::String&& value) { SetBlockNumber(std::move(value)); return *this;}
103 inline Transaction& WithBlockNumber(const char* value) { SetBlockNumber(value); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetTransactionTimestamp() const{ return m_transactionTimestamp; }
111 inline bool TransactionTimestampHasBeenSet() const { return m_transactionTimestampHasBeenSet; }
112 inline void SetTransactionTimestamp(const Aws::Utils::DateTime& value) { m_transactionTimestampHasBeenSet = true; m_transactionTimestamp = value; }
113 inline void SetTransactionTimestamp(Aws::Utils::DateTime&& value) { m_transactionTimestampHasBeenSet = true; m_transactionTimestamp = std::move(value); }
115 inline Transaction& WithTransactionTimestamp(Aws::Utils::DateTime&& value) { SetTransactionTimestamp(std::move(value)); return *this;}
117
119
122 inline long long GetTransactionIndex() const{ return m_transactionIndex; }
123 inline bool TransactionIndexHasBeenSet() const { return m_transactionIndexHasBeenSet; }
124 inline void SetTransactionIndex(long long value) { m_transactionIndexHasBeenSet = true; m_transactionIndex = value; }
125 inline Transaction& WithTransactionIndex(long long value) { SetTransactionIndex(value); return *this;}
127
129
132 inline long long GetNumberOfTransactions() const{ return m_numberOfTransactions; }
133 inline bool NumberOfTransactionsHasBeenSet() const { return m_numberOfTransactionsHasBeenSet; }
134 inline void SetNumberOfTransactions(long long value) { m_numberOfTransactionsHasBeenSet = true; m_numberOfTransactions = value; }
135 inline Transaction& WithNumberOfTransactions(long long value) { SetNumberOfTransactions(value); return *this;}
137
139
143 inline const Aws::String& GetTo() const{ return m_to; }
144 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
145 inline void SetTo(const Aws::String& value) { m_toHasBeenSet = true; m_to = value; }
146 inline void SetTo(Aws::String&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
147 inline void SetTo(const char* value) { m_toHasBeenSet = true; m_to.assign(value); }
148 inline Transaction& WithTo(const Aws::String& value) { SetTo(value); return *this;}
149 inline Transaction& WithTo(Aws::String&& value) { SetTo(std::move(value)); return *this;}
150 inline Transaction& WithTo(const char* value) { SetTo(value); return *this;}
152
154
158 inline const Aws::String& GetFrom() const{ return m_from; }
159 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
160 inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
161 inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
162 inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
163 inline Transaction& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
164 inline Transaction& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
165 inline Transaction& WithFrom(const char* value) { SetFrom(value); return *this;}
167
169
172 inline const Aws::String& GetContractAddress() const{ return m_contractAddress; }
173 inline bool ContractAddressHasBeenSet() const { return m_contractAddressHasBeenSet; }
174 inline void SetContractAddress(const Aws::String& value) { m_contractAddressHasBeenSet = true; m_contractAddress = value; }
175 inline void SetContractAddress(Aws::String&& value) { m_contractAddressHasBeenSet = true; m_contractAddress = std::move(value); }
176 inline void SetContractAddress(const char* value) { m_contractAddressHasBeenSet = true; m_contractAddress.assign(value); }
177 inline Transaction& WithContractAddress(const Aws::String& value) { SetContractAddress(value); return *this;}
178 inline Transaction& WithContractAddress(Aws::String&& value) { SetContractAddress(std::move(value)); return *this;}
179 inline Transaction& WithContractAddress(const char* value) { SetContractAddress(value); return *this;}
181
183
186 inline const Aws::String& GetGasUsed() const{ return m_gasUsed; }
187 inline bool GasUsedHasBeenSet() const { return m_gasUsedHasBeenSet; }
188 inline void SetGasUsed(const Aws::String& value) { m_gasUsedHasBeenSet = true; m_gasUsed = value; }
189 inline void SetGasUsed(Aws::String&& value) { m_gasUsedHasBeenSet = true; m_gasUsed = std::move(value); }
190 inline void SetGasUsed(const char* value) { m_gasUsedHasBeenSet = true; m_gasUsed.assign(value); }
191 inline Transaction& WithGasUsed(const Aws::String& value) { SetGasUsed(value); return *this;}
192 inline Transaction& WithGasUsed(Aws::String&& value) { SetGasUsed(std::move(value)); return *this;}
193 inline Transaction& WithGasUsed(const char* value) { SetGasUsed(value); return *this;}
195
197
200 inline const Aws::String& GetCumulativeGasUsed() const{ return m_cumulativeGasUsed; }
201 inline bool CumulativeGasUsedHasBeenSet() const { return m_cumulativeGasUsedHasBeenSet; }
202 inline void SetCumulativeGasUsed(const Aws::String& value) { m_cumulativeGasUsedHasBeenSet = true; m_cumulativeGasUsed = value; }
203 inline void SetCumulativeGasUsed(Aws::String&& value) { m_cumulativeGasUsedHasBeenSet = true; m_cumulativeGasUsed = std::move(value); }
204 inline void SetCumulativeGasUsed(const char* value) { m_cumulativeGasUsedHasBeenSet = true; m_cumulativeGasUsed.assign(value); }
205 inline Transaction& WithCumulativeGasUsed(const Aws::String& value) { SetCumulativeGasUsed(value); return *this;}
206 inline Transaction& WithCumulativeGasUsed(Aws::String&& value) { SetCumulativeGasUsed(std::move(value)); return *this;}
207 inline Transaction& WithCumulativeGasUsed(const char* value) { SetCumulativeGasUsed(value); return *this;}
209
211
214 inline const Aws::String& GetEffectiveGasPrice() const{ return m_effectiveGasPrice; }
215 inline bool EffectiveGasPriceHasBeenSet() const { return m_effectiveGasPriceHasBeenSet; }
216 inline void SetEffectiveGasPrice(const Aws::String& value) { m_effectiveGasPriceHasBeenSet = true; m_effectiveGasPrice = value; }
217 inline void SetEffectiveGasPrice(Aws::String&& value) { m_effectiveGasPriceHasBeenSet = true; m_effectiveGasPrice = std::move(value); }
218 inline void SetEffectiveGasPrice(const char* value) { m_effectiveGasPriceHasBeenSet = true; m_effectiveGasPrice.assign(value); }
219 inline Transaction& WithEffectiveGasPrice(const Aws::String& value) { SetEffectiveGasPrice(value); return *this;}
220 inline Transaction& WithEffectiveGasPrice(Aws::String&& value) { SetEffectiveGasPrice(std::move(value)); return *this;}
221 inline Transaction& WithEffectiveGasPrice(const char* value) { SetEffectiveGasPrice(value); return *this;}
223
225
228 inline int GetSignatureV() const{ return m_signatureV; }
229 inline bool SignatureVHasBeenSet() const { return m_signatureVHasBeenSet; }
230 inline void SetSignatureV(int value) { m_signatureVHasBeenSet = true; m_signatureV = value; }
231 inline Transaction& WithSignatureV(int value) { SetSignatureV(value); return *this;}
233
235
238 inline const Aws::String& GetSignatureR() const{ return m_signatureR; }
239 inline bool SignatureRHasBeenSet() const { return m_signatureRHasBeenSet; }
240 inline void SetSignatureR(const Aws::String& value) { m_signatureRHasBeenSet = true; m_signatureR = value; }
241 inline void SetSignatureR(Aws::String&& value) { m_signatureRHasBeenSet = true; m_signatureR = std::move(value); }
242 inline void SetSignatureR(const char* value) { m_signatureRHasBeenSet = true; m_signatureR.assign(value); }
243 inline Transaction& WithSignatureR(const Aws::String& value) { SetSignatureR(value); return *this;}
244 inline Transaction& WithSignatureR(Aws::String&& value) { SetSignatureR(std::move(value)); return *this;}
245 inline Transaction& WithSignatureR(const char* value) { SetSignatureR(value); return *this;}
247
249
252 inline const Aws::String& GetSignatureS() const{ return m_signatureS; }
253 inline bool SignatureSHasBeenSet() const { return m_signatureSHasBeenSet; }
254 inline void SetSignatureS(const Aws::String& value) { m_signatureSHasBeenSet = true; m_signatureS = value; }
255 inline void SetSignatureS(Aws::String&& value) { m_signatureSHasBeenSet = true; m_signatureS = std::move(value); }
256 inline void SetSignatureS(const char* value) { m_signatureSHasBeenSet = true; m_signatureS.assign(value); }
257 inline Transaction& WithSignatureS(const Aws::String& value) { SetSignatureS(value); return *this;}
258 inline Transaction& WithSignatureS(Aws::String&& value) { SetSignatureS(std::move(value)); return *this;}
259 inline Transaction& WithSignatureS(const char* value) { SetSignatureS(value); return *this;}
261
263
266 inline const Aws::String& GetTransactionFee() const{ return m_transactionFee; }
267 inline bool TransactionFeeHasBeenSet() const { return m_transactionFeeHasBeenSet; }
268 inline void SetTransactionFee(const Aws::String& value) { m_transactionFeeHasBeenSet = true; m_transactionFee = value; }
269 inline void SetTransactionFee(Aws::String&& value) { m_transactionFeeHasBeenSet = true; m_transactionFee = std::move(value); }
270 inline void SetTransactionFee(const char* value) { m_transactionFeeHasBeenSet = true; m_transactionFee.assign(value); }
271 inline Transaction& WithTransactionFee(const Aws::String& value) { SetTransactionFee(value); return *this;}
272 inline Transaction& WithTransactionFee(Aws::String&& value) { SetTransactionFee(std::move(value)); return *this;}
273 inline Transaction& WithTransactionFee(const char* value) { SetTransactionFee(value); return *this;}
275
277
281 inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
282 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
283 inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
284 inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
285 inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
286 inline Transaction& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
287 inline Transaction& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
288 inline Transaction& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
290
292
295 inline const ConfirmationStatus& GetConfirmationStatus() const{ return m_confirmationStatus; }
296 inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; }
297 inline void SetConfirmationStatus(const ConfirmationStatus& value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = value; }
298 inline void SetConfirmationStatus(ConfirmationStatus&& value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = std::move(value); }
299 inline Transaction& WithConfirmationStatus(const ConfirmationStatus& value) { SetConfirmationStatus(value); return *this;}
300 inline Transaction& WithConfirmationStatus(ConfirmationStatus&& value) { SetConfirmationStatus(std::move(value)); return *this;}
302
304
307 inline const ExecutionStatus& GetExecutionStatus() const{ return m_executionStatus; }
308 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
309 inline void SetExecutionStatus(const ExecutionStatus& value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
310 inline void SetExecutionStatus(ExecutionStatus&& value) { m_executionStatusHasBeenSet = true; m_executionStatus = std::move(value); }
311 inline Transaction& WithExecutionStatus(const ExecutionStatus& value) { SetExecutionStatus(value); return *this;}
312 inline Transaction& WithExecutionStatus(ExecutionStatus&& value) { SetExecutionStatus(std::move(value)); return *this;}
314 private:
315
316 QueryNetwork m_network;
317 bool m_networkHasBeenSet = false;
318
319 Aws::String m_blockHash;
320 bool m_blockHashHasBeenSet = false;
321
322 Aws::String m_transactionHash;
323 bool m_transactionHashHasBeenSet = false;
324
325 Aws::String m_blockNumber;
326 bool m_blockNumberHasBeenSet = false;
327
328 Aws::Utils::DateTime m_transactionTimestamp;
329 bool m_transactionTimestampHasBeenSet = false;
330
331 long long m_transactionIndex;
332 bool m_transactionIndexHasBeenSet = false;
333
334 long long m_numberOfTransactions;
335 bool m_numberOfTransactionsHasBeenSet = false;
336
337 Aws::String m_to;
338 bool m_toHasBeenSet = false;
339
340 Aws::String m_from;
341 bool m_fromHasBeenSet = false;
342
343 Aws::String m_contractAddress;
344 bool m_contractAddressHasBeenSet = false;
345
346 Aws::String m_gasUsed;
347 bool m_gasUsedHasBeenSet = false;
348
349 Aws::String m_cumulativeGasUsed;
350 bool m_cumulativeGasUsedHasBeenSet = false;
351
352 Aws::String m_effectiveGasPrice;
353 bool m_effectiveGasPriceHasBeenSet = false;
354
355 int m_signatureV;
356 bool m_signatureVHasBeenSet = false;
357
358 Aws::String m_signatureR;
359 bool m_signatureRHasBeenSet = false;
360
361 Aws::String m_signatureS;
362 bool m_signatureSHasBeenSet = false;
363
364 Aws::String m_transactionFee;
365 bool m_transactionFeeHasBeenSet = false;
366
367 Aws::String m_transactionId;
368 bool m_transactionIdHasBeenSet = false;
369
370 ConfirmationStatus m_confirmationStatus;
371 bool m_confirmationStatusHasBeenSet = false;
372
373 ExecutionStatus m_executionStatus;
374 bool m_executionStatusHasBeenSet = false;
375 };
376
377} // namespace Model
378} // namespace ManagedBlockchainQuery
379} // namespace Aws
Transaction & WithNetwork(QueryNetwork &&value)
Definition Transaction.h:59
Transaction & WithSignatureS(const Aws::String &value)
Transaction & WithTransactionTimestamp(Aws::Utils::DateTime &&value)
void SetConfirmationStatus(const ConfirmationStatus &value)
const Aws::String & GetTransactionFee() const
void SetExecutionStatus(ExecutionStatus &&value)
void SetContractAddress(const Aws::String &value)
Transaction & WithSignatureS(Aws::String &&value)
Transaction & WithTransactionHash(const char *value)
Definition Transaction.h:89
Transaction & WithTransactionFee(const Aws::String &value)
Transaction & WithNumberOfTransactions(long long value)
Transaction & WithTransactionTimestamp(const Aws::Utils::DateTime &value)
Transaction & WithFrom(Aws::String &&value)
Transaction & WithTransactionHash(const Aws::String &value)
Definition Transaction.h:87
Transaction & WithTransactionFee(Aws::String &&value)
Transaction & WithTransactionIndex(long long value)
Transaction & WithTransactionHash(Aws::String &&value)
Definition Transaction.h:88
Transaction & WithTo(const Aws::String &value)
AWS_MANAGEDBLOCKCHAINQUERY_API Transaction(Aws::Utils::Json::JsonView jsonValue)
Transaction & WithContractAddress(const Aws::String &value)
void SetTransactionId(const Aws::String &value)
void SetConfirmationStatus(ConfirmationStatus &&value)
Transaction & WithEffectiveGasPrice(const char *value)
void SetTransactionTimestamp(Aws::Utils::DateTime &&value)
const QueryNetwork & GetNetwork() const
Definition Transaction.h:54
Transaction & WithTo(const char *value)
Transaction & WithContractAddress(const char *value)
const ExecutionStatus & GetExecutionStatus() const
Transaction & WithGasUsed(const Aws::String &value)
Transaction & WithBlockHash(Aws::String &&value)
Definition Transaction.h:74
Transaction & WithTransactionId(const char *value)
void SetTransactionTimestamp(const Aws::Utils::DateTime &value)
Transaction & WithFrom(const char *value)
void SetCumulativeGasUsed(const Aws::String &value)
AWS_MANAGEDBLOCKCHAINQUERY_API Transaction()
void SetTransactionFee(const Aws::String &value)
Transaction & WithExecutionStatus(ExecutionStatus &&value)
void SetBlockHash(const Aws::String &value)
Definition Transaction.h:70
Transaction & WithEffectiveGasPrice(const Aws::String &value)
Transaction & WithTo(Aws::String &&value)
Transaction & WithSignatureR(Aws::String &&value)
void SetEffectiveGasPrice(const Aws::String &value)
Transaction & WithTransactionFee(const char *value)
void SetExecutionStatus(const ExecutionStatus &value)
Transaction & WithGasUsed(Aws::String &&value)
Transaction & WithBlockHash(const Aws::String &value)
Definition Transaction.h:73
void SetBlockNumber(const Aws::String &value)
Definition Transaction.h:98
Transaction & WithCumulativeGasUsed(Aws::String &&value)
Transaction & WithTransactionId(Aws::String &&value)
Transaction & WithTransactionId(const Aws::String &value)
const Aws::Utils::DateTime & GetTransactionTimestamp() const
Transaction & WithConfirmationStatus(const ConfirmationStatus &value)
const ConfirmationStatus & GetConfirmationStatus() const
Transaction & WithSignatureR(const Aws::String &value)
Transaction & WithConfirmationStatus(ConfirmationStatus &&value)
Transaction & WithGasUsed(const char *value)
Transaction & WithNetwork(const QueryNetwork &value)
Definition Transaction.h:58
Transaction & WithExecutionStatus(const ExecutionStatus &value)
Transaction & WithCumulativeGasUsed(const char *value)
Transaction & WithBlockNumber(const Aws::String &value)
Transaction & WithBlockNumber(const char *value)
void SetSignatureR(const Aws::String &value)
Transaction & WithBlockNumber(Aws::String &&value)
void SetFrom(const Aws::String &value)
const Aws::String & GetEffectiveGasPrice() const
void SetGasUsed(const Aws::String &value)
const Aws::String & GetTransactionId() const
Transaction & WithSignatureR(const char *value)
const Aws::String & GetBlockNumber() const
Definition Transaction.h:96
Transaction & WithBlockHash(const char *value)
Definition Transaction.h:75
Transaction & WithFrom(const Aws::String &value)
const Aws::String & GetTransactionHash() const
Definition Transaction.h:82
Transaction & WithEffectiveGasPrice(Aws::String &&value)
const Aws::String & GetContractAddress() const
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNetwork(const QueryNetwork &value)
Definition Transaction.h:56
Transaction & WithContractAddress(Aws::String &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Transaction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSignatureS(const Aws::String &value)
Transaction & WithSignatureS(const char *value)
Transaction & WithCumulativeGasUsed(const Aws::String &value)
void SetTransactionHash(const Aws::String &value)
Definition Transaction.h:84
const Aws::String & GetCumulativeGasUsed() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue