AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchExecuteStatementRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift-data/RedshiftDataAPIServiceRequest.h>
11#include <aws/redshift-data/RedshiftDataAPIService_EXPORTS.h>
12#include <aws/redshift-data/model/ExecutionMode.h>
13#include <aws/redshift-data/model/ResultFormatString.h>
14#include <aws/redshift-data/model/SqlParameter.h>
15
16#include <utility>
17
18namespace Aws {
19namespace RedshiftDataAPIService {
20namespace Model {
21
25 public:
26 AWS_REDSHIFTDATAAPISERVICE_API BatchExecuteStatementRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchExecuteStatement"; }
33
34 AWS_REDSHIFTDATAAPISERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_REDSHIFTDATAAPISERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
46 inline const Aws::Vector<Aws::String>& GetSqls() const { return m_sqls; }
47 inline bool SqlsHasBeenSet() const { return m_sqlsHasBeenSet; }
48 template <typename SqlsT = Aws::Vector<Aws::String>>
49 void SetSqls(SqlsT&& value) {
50 m_sqlsHasBeenSet = true;
51 m_sqls = std::forward<SqlsT>(value);
52 }
53 template <typename SqlsT = Aws::Vector<Aws::String>>
55 SetSqls(std::forward<SqlsT>(value));
56 return *this;
57 }
58 template <typename SqlsT = Aws::String>
60 m_sqlsHasBeenSet = true;
61 m_sqls.emplace_back(std::forward<SqlsT>(value));
62 return *this;
63 }
65
67
72 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
73 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
74 template <typename ClusterIdentifierT = Aws::String>
75 void SetClusterIdentifier(ClusterIdentifierT&& value) {
76 m_clusterIdentifierHasBeenSet = true;
77 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
78 }
79 template <typename ClusterIdentifierT = Aws::String>
81 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
92 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
93 template <typename SecretArnT = Aws::String>
94 void SetSecretArn(SecretArnT&& value) {
95 m_secretArnHasBeenSet = true;
96 m_secretArn = std::forward<SecretArnT>(value);
97 }
98 template <typename SecretArnT = Aws::String>
100 SetSecretArn(std::forward<SecretArnT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetDbUser() const { return m_dbUser; }
111 inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; }
112 template <typename DbUserT = Aws::String>
113 void SetDbUser(DbUserT&& value) {
114 m_dbUserHasBeenSet = true;
115 m_dbUser = std::forward<DbUserT>(value);
116 }
117 template <typename DbUserT = Aws::String>
119 SetDbUser(std::forward<DbUserT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetDatabase() const { return m_database; }
130 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
131 template <typename DatabaseT = Aws::String>
132 void SetDatabase(DatabaseT&& value) {
133 m_databaseHasBeenSet = true;
134 m_database = std::forward<DatabaseT>(value);
135 }
136 template <typename DatabaseT = Aws::String>
138 SetDatabase(std::forward<DatabaseT>(value));
139 return *this;
140 }
142
144
148 inline bool GetWithEvent() const { return m_withEvent; }
149 inline bool WithEventHasBeenSet() const { return m_withEventHasBeenSet; }
150 inline void SetWithEvent(bool value) {
151 m_withEventHasBeenSet = true;
152 m_withEvent = value;
153 }
155 SetWithEvent(value);
156 return *this;
157 }
159
161
165 inline const Aws::String& GetStatementName() const { return m_statementName; }
166 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
167 template <typename StatementNameT = Aws::String>
168 void SetStatementName(StatementNameT&& value) {
169 m_statementNameHasBeenSet = true;
170 m_statementName = std::forward<StatementNameT>(value);
171 }
172 template <typename StatementNameT = Aws::String>
174 SetStatementName(std::forward<StatementNameT>(value));
175 return *this;
176 }
178
180
186 inline const Aws::Vector<SqlParameter>& GetParameters() const { return m_parameters; }
187 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
188 template <typename ParametersT = Aws::Vector<SqlParameter>>
189 void SetParameters(ParametersT&& value) {
190 m_parametersHasBeenSet = true;
191 m_parameters = std::forward<ParametersT>(value);
192 }
193 template <typename ParametersT = Aws::Vector<SqlParameter>>
195 SetParameters(std::forward<ParametersT>(value));
196 return *this;
197 }
198 template <typename ParametersT = SqlParameter>
200 m_parametersHasBeenSet = true;
201 m_parameters.emplace_back(std::forward<ParametersT>(value));
202 return *this;
203 }
205
207
212 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
213 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
214 template <typename WorkgroupNameT = Aws::String>
215 void SetWorkgroupName(WorkgroupNameT&& value) {
216 m_workgroupNameHasBeenSet = true;
217 m_workgroupName = std::forward<WorkgroupNameT>(value);
218 }
219 template <typename WorkgroupNameT = Aws::String>
221 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetClientToken() const { return m_clientToken; }
232 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
233 template <typename ClientTokenT = Aws::String>
234 void SetClientToken(ClientTokenT&& value) {
235 m_clientTokenHasBeenSet = true;
236 m_clientToken = std::forward<ClientTokenT>(value);
237 }
238 template <typename ClientTokenT = Aws::String>
240 SetClientToken(std::forward<ClientTokenT>(value));
241 return *this;
242 }
244
246
250 inline ResultFormatString GetResultFormat() const { return m_resultFormat; }
251 inline bool ResultFormatHasBeenSet() const { return m_resultFormatHasBeenSet; }
253 m_resultFormatHasBeenSet = true;
254 m_resultFormat = value;
255 }
257 SetResultFormat(value);
258 return *this;
259 }
261
263
268 inline int GetSessionKeepAliveSeconds() const { return m_sessionKeepAliveSeconds; }
269 inline bool SessionKeepAliveSecondsHasBeenSet() const { return m_sessionKeepAliveSecondsHasBeenSet; }
270 inline void SetSessionKeepAliveSeconds(int value) {
271 m_sessionKeepAliveSecondsHasBeenSet = true;
272 m_sessionKeepAliveSeconds = value;
273 }
276 return *this;
277 }
279
281
284 inline const Aws::String& GetSessionId() const { return m_sessionId; }
285 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
286 template <typename SessionIdT = Aws::String>
287 void SetSessionId(SessionIdT&& value) {
288 m_sessionIdHasBeenSet = true;
289 m_sessionId = std::forward<SessionIdT>(value);
290 }
291 template <typename SessionIdT = Aws::String>
293 SetSessionId(std::forward<SessionIdT>(value));
294 return *this;
295 }
297
299
306 inline ExecutionMode GetExecutionMode() const { return m_executionMode; }
307 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
308 inline void SetExecutionMode(ExecutionMode value) {
309 m_executionModeHasBeenSet = true;
310 m_executionMode = value;
311 }
313 SetExecutionMode(value);
314 return *this;
315 }
317
319
325 inline int GetWaitTimeSeconds() const { return m_waitTimeSeconds; }
326 inline bool WaitTimeSecondsHasBeenSet() const { return m_waitTimeSecondsHasBeenSet; }
327 inline void SetWaitTimeSeconds(int value) {
328 m_waitTimeSecondsHasBeenSet = true;
329 m_waitTimeSeconds = value;
330 }
332 SetWaitTimeSeconds(value);
333 return *this;
334 }
336 private:
338
339 Aws::String m_clusterIdentifier;
340
341 Aws::String m_secretArn;
342
343 Aws::String m_dbUser;
344
345 Aws::String m_database;
346
347 bool m_withEvent{false};
348
349 Aws::String m_statementName;
350
351 Aws::Vector<SqlParameter> m_parameters;
352
353 Aws::String m_workgroupName;
354
356
358
359 int m_sessionKeepAliveSeconds{0};
360
361 Aws::String m_sessionId;
362
363 ExecutionMode m_executionMode{ExecutionMode::NOT_SET};
364
365 int m_waitTimeSeconds{0};
366 bool m_sqlsHasBeenSet = false;
367 bool m_clusterIdentifierHasBeenSet = false;
368 bool m_secretArnHasBeenSet = false;
369 bool m_dbUserHasBeenSet = false;
370 bool m_databaseHasBeenSet = false;
371 bool m_withEventHasBeenSet = false;
372 bool m_statementNameHasBeenSet = false;
373 bool m_parametersHasBeenSet = false;
374 bool m_workgroupNameHasBeenSet = false;
375 bool m_clientTokenHasBeenSet = true;
376 bool m_resultFormatHasBeenSet = false;
377 bool m_sessionKeepAliveSecondsHasBeenSet = false;
378 bool m_sessionIdHasBeenSet = false;
379 bool m_executionModeHasBeenSet = false;
380 bool m_waitTimeSecondsHasBeenSet = false;
381};
382
383} // namespace Model
384} // namespace RedshiftDataAPIService
385} // namespace Aws
AWS_REDSHIFTDATAAPISERVICE_API BatchExecuteStatementRequest()=default
BatchExecuteStatementRequest & WithClientToken(ClientTokenT &&value)
BatchExecuteStatementRequest & WithStatementName(StatementNameT &&value)
BatchExecuteStatementRequest & WithWorkgroupName(WorkgroupNameT &&value)
BatchExecuteStatementRequest & AddParameters(ParametersT &&value)
BatchExecuteStatementRequest & WithParameters(ParametersT &&value)
BatchExecuteStatementRequest & WithSecretArn(SecretArnT &&value)
AWS_REDSHIFTDATAAPISERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchExecuteStatementRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
BatchExecuteStatementRequest & WithResultFormat(ResultFormatString value)
BatchExecuteStatementRequest & WithExecutionMode(ExecutionMode value)
AWS_REDSHIFTDATAAPISERVICE_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector