AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListTransactionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQueryRequest.h>
9#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
10#include <aws/managedblockchain-query/model/BlockchainInstant.h>
11#include <aws/managedblockchain-query/model/ConfirmationStatusFilter.h>
12#include <aws/managedblockchain-query/model/ListTransactionsSort.h>
13#include <aws/managedblockchain-query/model/QueryNetwork.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ManagedBlockchainQuery {
19namespace Model {
20
24 public:
25 AWS_MANAGEDBLOCKCHAINQUERY_API ListTransactionsRequest() = default;
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 "ListTransactions"; }
32
33 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAddress() const { return m_address; }
41 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
42 template <typename AddressT = Aws::String>
43 void SetAddress(AddressT&& value) {
44 m_addressHasBeenSet = true;
45 m_address = std::forward<AddressT>(value);
46 }
47 template <typename AddressT = Aws::String>
49 SetAddress(std::forward<AddressT>(value));
50 return *this;
51 }
53
55
58 inline QueryNetwork GetNetwork() const { return m_network; }
59 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
60 inline void SetNetwork(QueryNetwork value) {
61 m_networkHasBeenSet = true;
62 m_network = value;
63 }
65 SetNetwork(value);
66 return *this;
67 }
69
71
72 inline const BlockchainInstant& GetFromBlockchainInstant() const { return m_fromBlockchainInstant; }
73 inline bool FromBlockchainInstantHasBeenSet() const { return m_fromBlockchainInstantHasBeenSet; }
74 template <typename FromBlockchainInstantT = BlockchainInstant>
75 void SetFromBlockchainInstant(FromBlockchainInstantT&& value) {
76 m_fromBlockchainInstantHasBeenSet = true;
77 m_fromBlockchainInstant = std::forward<FromBlockchainInstantT>(value);
78 }
79 template <typename FromBlockchainInstantT = BlockchainInstant>
80 ListTransactionsRequest& WithFromBlockchainInstant(FromBlockchainInstantT&& value) {
81 SetFromBlockchainInstant(std::forward<FromBlockchainInstantT>(value));
82 return *this;
83 }
85
87
88 inline const BlockchainInstant& GetToBlockchainInstant() const { return m_toBlockchainInstant; }
89 inline bool ToBlockchainInstantHasBeenSet() const { return m_toBlockchainInstantHasBeenSet; }
90 template <typename ToBlockchainInstantT = BlockchainInstant>
91 void SetToBlockchainInstant(ToBlockchainInstantT&& value) {
92 m_toBlockchainInstantHasBeenSet = true;
93 m_toBlockchainInstant = std::forward<ToBlockchainInstantT>(value);
94 }
95 template <typename ToBlockchainInstantT = BlockchainInstant>
96 ListTransactionsRequest& WithToBlockchainInstant(ToBlockchainInstantT&& value) {
97 SetToBlockchainInstant(std::forward<ToBlockchainInstantT>(value));
98 return *this;
99 }
101
103
106 inline const ListTransactionsSort& GetSort() const { return m_sort; }
107 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
108 template <typename SortT = ListTransactionsSort>
109 void SetSort(SortT&& value) {
110 m_sortHasBeenSet = true;
111 m_sort = std::forward<SortT>(value);
112 }
113 template <typename SortT = ListTransactionsSort>
115 SetSort(std::forward<SortT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137
139
147 inline int GetMaxResults() const { return m_maxResults; }
148 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
149 inline void SetMaxResults(int value) {
150 m_maxResultsHasBeenSet = true;
151 m_maxResults = value;
152 }
154 SetMaxResults(value);
155 return *this;
156 }
158
160
167 inline const ConfirmationStatusFilter& GetConfirmationStatusFilter() const { return m_confirmationStatusFilter; }
168 inline bool ConfirmationStatusFilterHasBeenSet() const { return m_confirmationStatusFilterHasBeenSet; }
169 template <typename ConfirmationStatusFilterT = ConfirmationStatusFilter>
170 void SetConfirmationStatusFilter(ConfirmationStatusFilterT&& value) {
171 m_confirmationStatusFilterHasBeenSet = true;
172 m_confirmationStatusFilter = std::forward<ConfirmationStatusFilterT>(value);
173 }
174 template <typename ConfirmationStatusFilterT = ConfirmationStatusFilter>
175 ListTransactionsRequest& WithConfirmationStatusFilter(ConfirmationStatusFilterT&& value) {
176 SetConfirmationStatusFilter(std::forward<ConfirmationStatusFilterT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_address;
182
184
185 BlockchainInstant m_fromBlockchainInstant;
186
187 BlockchainInstant m_toBlockchainInstant;
188
189 ListTransactionsSort m_sort;
190
191 Aws::String m_nextToken;
192
193 int m_maxResults{0};
194
195 ConfirmationStatusFilter m_confirmationStatusFilter;
196 bool m_addressHasBeenSet = false;
197 bool m_networkHasBeenSet = false;
198 bool m_fromBlockchainInstantHasBeenSet = false;
199 bool m_toBlockchainInstantHasBeenSet = false;
200 bool m_sortHasBeenSet = false;
201 bool m_nextTokenHasBeenSet = false;
202 bool m_maxResultsHasBeenSet = false;
203 bool m_confirmationStatusFilterHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace ManagedBlockchainQuery
208} // 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