AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
ListStatementsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-data/RedshiftDataAPIServiceRequest.h>
9#include <aws/redshift-data/RedshiftDataAPIService_EXPORTS.h>
10#include <aws/redshift-data/model/StatusString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RedshiftDataAPIService {
16namespace Model {
17
21 public:
22 AWS_REDSHIFTDATAAPISERVICE_API ListStatementsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListStatements"; }
29
30 AWS_REDSHIFTDATAAPISERVICE_API Aws::String SerializePayload() const override;
31
32 AWS_REDSHIFTDATAAPISERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 template <typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) {
46 m_nextTokenHasBeenSet = true;
47 m_nextToken = std::forward<NextTokenT>(value);
48 }
49 template <typename NextTokenT = Aws::String>
50 ListStatementsRequest& WithNextToken(NextTokenT&& value) {
51 SetNextToken(std::forward<NextTokenT>(value));
52 return *this;
53 }
55
57
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) {
65 m_maxResultsHasBeenSet = true;
66 m_maxResults = value;
67 }
69 SetMaxResults(value);
70 return *this;
71 }
73
75
84 inline const Aws::String& GetStatementName() const { return m_statementName; }
85 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
86 template <typename StatementNameT = Aws::String>
87 void SetStatementName(StatementNameT&& value) {
88 m_statementNameHasBeenSet = true;
89 m_statementName = std::forward<StatementNameT>(value);
90 }
91 template <typename StatementNameT = Aws::String>
92 ListStatementsRequest& WithStatementName(StatementNameT&& value) {
93 SetStatementName(std::forward<StatementNameT>(value));
94 return *this;
95 }
97
99
109 inline StatusString GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(StatusString value) {
112 m_statusHasBeenSet = true;
113 m_status = value;
114 }
116 SetStatus(value);
117 return *this;
118 }
120
122
128 inline bool GetRoleLevel() const { return m_roleLevel; }
129 inline bool RoleLevelHasBeenSet() const { return m_roleLevelHasBeenSet; }
130 inline void SetRoleLevel(bool value) {
131 m_roleLevelHasBeenSet = true;
132 m_roleLevel = value;
133 }
135 SetRoleLevel(value);
136 return *this;
137 }
139
141
145 inline const Aws::String& GetDatabase() const { return m_database; }
146 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
147 template <typename DatabaseT = Aws::String>
148 void SetDatabase(DatabaseT&& value) {
149 m_databaseHasBeenSet = true;
150 m_database = std::forward<DatabaseT>(value);
151 }
152 template <typename DatabaseT = Aws::String>
154 SetDatabase(std::forward<DatabaseT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
166 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
167 template <typename ClusterIdentifierT = Aws::String>
168 void SetClusterIdentifier(ClusterIdentifierT&& value) {
169 m_clusterIdentifierHasBeenSet = true;
170 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
171 }
172 template <typename ClusterIdentifierT = Aws::String>
173 ListStatementsRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
174 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
175 return *this;
176 }
178
180
186 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
187 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
188 template <typename WorkgroupNameT = Aws::String>
189 void SetWorkgroupName(WorkgroupNameT&& value) {
190 m_workgroupNameHasBeenSet = true;
191 m_workgroupName = std::forward<WorkgroupNameT>(value);
192 }
193 template <typename WorkgroupNameT = Aws::String>
194 ListStatementsRequest& WithWorkgroupName(WorkgroupNameT&& value) {
195 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_nextToken;
201
202 int m_maxResults{0};
203
204 Aws::String m_statementName;
205
207
208 bool m_roleLevel{false};
209
210 Aws::String m_database;
211
212 Aws::String m_clusterIdentifier;
213
214 Aws::String m_workgroupName;
215 bool m_nextTokenHasBeenSet = false;
216 bool m_maxResultsHasBeenSet = false;
217 bool m_statementNameHasBeenSet = false;
218 bool m_statusHasBeenSet = false;
219 bool m_roleLevelHasBeenSet = false;
220 bool m_databaseHasBeenSet = false;
221 bool m_clusterIdentifierHasBeenSet = false;
222 bool m_workgroupNameHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace RedshiftDataAPIService
227} // namespace Aws
ListStatementsRequest & WithWorkgroupName(WorkgroupNameT &&value)
ListStatementsRequest & WithNextToken(NextTokenT &&value)
ListStatementsRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
AWS_REDSHIFTDATAAPISERVICE_API Aws::String SerializePayload() const override
AWS_REDSHIFTDATAAPISERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListStatementsRequest & WithStatementName(StatementNameT &&value)
ListStatementsRequest & WithDatabase(DatabaseT &&value)
AWS_REDSHIFTDATAAPISERVICE_API ListStatementsRequest()=default
ListStatementsRequest & WithStatus(StatusString value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String