AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListTransactionsRequest.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 <aws/managedblockchain-query/model/BlockchainInstant.h>
12#include <aws/managedblockchain-query/model/ListTransactionsSort.h>
13#include <aws/managedblockchain-query/model/ConfirmationStatusFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ManagedBlockchainQuery
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MANAGEDBLOCKCHAINQUERY_API ListTransactionsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListTransactions"; }
35
36 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetAddress() const { return m_address; }
45 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
46 template<typename AddressT = Aws::String>
47 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
48 template<typename AddressT = Aws::String>
49 ListTransactionsRequest& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
51
53
56 inline QueryNetwork GetNetwork() const { return m_network; }
57 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
58 inline void SetNetwork(QueryNetwork value) { m_networkHasBeenSet = true; m_network = value; }
59 inline ListTransactionsRequest& WithNetwork(QueryNetwork value) { SetNetwork(value); return *this;}
61
63
64 inline const BlockchainInstant& GetFromBlockchainInstant() const { return m_fromBlockchainInstant; }
65 inline bool FromBlockchainInstantHasBeenSet() const { return m_fromBlockchainInstantHasBeenSet; }
66 template<typename FromBlockchainInstantT = BlockchainInstant>
67 void SetFromBlockchainInstant(FromBlockchainInstantT&& value) { m_fromBlockchainInstantHasBeenSet = true; m_fromBlockchainInstant = std::forward<FromBlockchainInstantT>(value); }
68 template<typename FromBlockchainInstantT = BlockchainInstant>
69 ListTransactionsRequest& WithFromBlockchainInstant(FromBlockchainInstantT&& value) { SetFromBlockchainInstant(std::forward<FromBlockchainInstantT>(value)); return *this;}
71
73
74 inline const BlockchainInstant& GetToBlockchainInstant() const { return m_toBlockchainInstant; }
75 inline bool ToBlockchainInstantHasBeenSet() const { return m_toBlockchainInstantHasBeenSet; }
76 template<typename ToBlockchainInstantT = BlockchainInstant>
77 void SetToBlockchainInstant(ToBlockchainInstantT&& value) { m_toBlockchainInstantHasBeenSet = true; m_toBlockchainInstant = std::forward<ToBlockchainInstantT>(value); }
78 template<typename ToBlockchainInstantT = BlockchainInstant>
79 ListTransactionsRequest& WithToBlockchainInstant(ToBlockchainInstantT&& value) { SetToBlockchainInstant(std::forward<ToBlockchainInstantT>(value)); return *this;}
81
83
86 inline const ListTransactionsSort& GetSort() const { return m_sort; }
87 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
88 template<typename SortT = ListTransactionsSort>
89 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
90 template<typename SortT = ListTransactionsSort>
91 ListTransactionsRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
93
95
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template<typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
102 template<typename NextTokenT = Aws::String>
103 ListTransactionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
105
107
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 inline ListTransactionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120
122
129 inline const ConfirmationStatusFilter& GetConfirmationStatusFilter() const { return m_confirmationStatusFilter; }
130 inline bool ConfirmationStatusFilterHasBeenSet() const { return m_confirmationStatusFilterHasBeenSet; }
131 template<typename ConfirmationStatusFilterT = ConfirmationStatusFilter>
132 void SetConfirmationStatusFilter(ConfirmationStatusFilterT&& value) { m_confirmationStatusFilterHasBeenSet = true; m_confirmationStatusFilter = std::forward<ConfirmationStatusFilterT>(value); }
133 template<typename ConfirmationStatusFilterT = ConfirmationStatusFilter>
134 ListTransactionsRequest& WithConfirmationStatusFilter(ConfirmationStatusFilterT&& value) { SetConfirmationStatusFilter(std::forward<ConfirmationStatusFilterT>(value)); return *this;}
136 private:
137
138 Aws::String m_address;
139 bool m_addressHasBeenSet = false;
140
142 bool m_networkHasBeenSet = false;
143
144 BlockchainInstant m_fromBlockchainInstant;
145 bool m_fromBlockchainInstantHasBeenSet = false;
146
147 BlockchainInstant m_toBlockchainInstant;
148 bool m_toBlockchainInstantHasBeenSet = false;
149
150 ListTransactionsSort m_sort;
151 bool m_sortHasBeenSet = false;
152
153 Aws::String m_nextToken;
154 bool m_nextTokenHasBeenSet = false;
155
156 int m_maxResults{0};
157 bool m_maxResultsHasBeenSet = false;
158
159 ConfirmationStatusFilter m_confirmationStatusFilter;
160 bool m_confirmationStatusFilterHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace ManagedBlockchainQuery
165} // namespace Aws
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override
AWS_MANAGEDBLOCKCHAINQUERY_API ListTransactionsRequest()=default
ListTransactionsRequest & WithToBlockchainInstant(ToBlockchainInstantT &&value)
ListTransactionsRequest & WithNetwork(QueryNetwork value)
ListTransactionsRequest & WithFromBlockchainInstant(FromBlockchainInstantT &&value)
ListTransactionsRequest & WithConfirmationStatusFilter(ConfirmationStatusFilterT &&value)
void SetConfirmationStatusFilter(ConfirmationStatusFilterT &&value)
const ConfirmationStatusFilter & GetConfirmationStatusFilter() const
ListTransactionsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String