AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTransactionRequest.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQueryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain-query/model/QueryNetwork.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ManagedBlockchainQuery
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MANAGEDBLOCKCHAINQUERY_API GetTransactionRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetTransaction"; }
32
33 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetTransactionHash() const{ return m_transactionHash; }
41 inline bool TransactionHashHasBeenSet() const { return m_transactionHashHasBeenSet; }
42 inline void SetTransactionHash(const Aws::String& value) { m_transactionHashHasBeenSet = true; m_transactionHash = value; }
43 inline void SetTransactionHash(Aws::String&& value) { m_transactionHashHasBeenSet = true; m_transactionHash = std::move(value); }
44 inline void SetTransactionHash(const char* value) { m_transactionHashHasBeenSet = true; m_transactionHash.assign(value); }
45 inline GetTransactionRequest& WithTransactionHash(const Aws::String& value) { SetTransactionHash(value); return *this;}
46 inline GetTransactionRequest& WithTransactionHash(Aws::String&& value) { SetTransactionHash(std::move(value)); return *this;}
47 inline GetTransactionRequest& WithTransactionHash(const char* value) { SetTransactionHash(value); return *this;}
49
51
56 inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
57 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
58 inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
59 inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
60 inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
61 inline GetTransactionRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
62 inline GetTransactionRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
63 inline GetTransactionRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
65
67
70 inline const QueryNetwork& GetNetwork() const{ return m_network; }
71 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
72 inline void SetNetwork(const QueryNetwork& value) { m_networkHasBeenSet = true; m_network = value; }
73 inline void SetNetwork(QueryNetwork&& value) { m_networkHasBeenSet = true; m_network = std::move(value); }
74 inline GetTransactionRequest& WithNetwork(const QueryNetwork& value) { SetNetwork(value); return *this;}
75 inline GetTransactionRequest& WithNetwork(QueryNetwork&& value) { SetNetwork(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_transactionHash;
80 bool m_transactionHashHasBeenSet = false;
81
82 Aws::String m_transactionId;
83 bool m_transactionIdHasBeenSet = false;
84
85 QueryNetwork m_network;
86 bool m_networkHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ManagedBlockchainQuery
91} // namespace Aws
GetTransactionRequest & WithTransactionId(const char *value)
GetTransactionRequest & WithNetwork(QueryNetwork &&value)
GetTransactionRequest & WithTransactionHash(const Aws::String &value)
GetTransactionRequest & WithTransactionId(Aws::String &&value)
GetTransactionRequest & WithTransactionHash(const char *value)
GetTransactionRequest & WithTransactionId(const Aws::String &value)
GetTransactionRequest & WithTransactionHash(Aws::String &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override
GetTransactionRequest & WithNetwork(const QueryNetwork &value)
AWS_MANAGEDBLOCKCHAINQUERY_API GetTransactionRequest()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String