AWS SDK for C++  1.8.71
AWS SDK for C++
BatchExecuteStatementRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDSDataService
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "BatchExecuteStatement"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetDatabase() const{ return m_database; }
45 
49  inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
50 
54  inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
55 
59  inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
60 
64  inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
65 
69  inline BatchExecuteStatementRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
70 
74  inline BatchExecuteStatementRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
75 
79  inline BatchExecuteStatementRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
80 
81 
91  inline const Aws::Vector<Aws::Vector<SqlParameter>>& GetParameterSets() const{ return m_parameterSets; }
92 
102  inline bool ParameterSetsHasBeenSet() const { return m_parameterSetsHasBeenSet; }
103 
113  inline void SetParameterSets(const Aws::Vector<Aws::Vector<SqlParameter>>& value) { m_parameterSetsHasBeenSet = true; m_parameterSets = value; }
114 
124  inline void SetParameterSets(Aws::Vector<Aws::Vector<SqlParameter>>&& value) { m_parameterSetsHasBeenSet = true; m_parameterSets = std::move(value); }
125 
135  inline BatchExecuteStatementRequest& WithParameterSets(const Aws::Vector<Aws::Vector<SqlParameter>>& value) { SetParameterSets(value); return *this;}
136 
146  inline BatchExecuteStatementRequest& WithParameterSets(Aws::Vector<Aws::Vector<SqlParameter>>&& value) { SetParameterSets(std::move(value)); return *this;}
147 
157  inline BatchExecuteStatementRequest& AddParameterSets(const Aws::Vector<SqlParameter>& value) { m_parameterSetsHasBeenSet = true; m_parameterSets.push_back(value); return *this; }
158 
168  inline BatchExecuteStatementRequest& AddParameterSets(Aws::Vector<SqlParameter>&& value) { m_parameterSetsHasBeenSet = true; m_parameterSets.push_back(std::move(value)); return *this; }
169 
170 
174  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
175 
179  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
180 
184  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
185 
189  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
190 
194  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
195 
199  inline BatchExecuteStatementRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
200 
204  inline BatchExecuteStatementRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
205 
209  inline BatchExecuteStatementRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
210 
211 
215  inline const Aws::String& GetSchema() const{ return m_schema; }
216 
220  inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
221 
225  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
226 
230  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
231 
235  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
236 
240  inline BatchExecuteStatementRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
241 
245  inline BatchExecuteStatementRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
246 
250  inline BatchExecuteStatementRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
251 
252 
256  inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
257 
261  inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
262 
266  inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
267 
271  inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
272 
276  inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
277 
281  inline BatchExecuteStatementRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
282 
286  inline BatchExecuteStatementRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
287 
291  inline BatchExecuteStatementRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
292 
293 
297  inline const Aws::String& GetSql() const{ return m_sql; }
298 
302  inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
303 
307  inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
308 
312  inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
313 
317  inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
318 
322  inline BatchExecuteStatementRequest& WithSql(const Aws::String& value) { SetSql(value); return *this;}
323 
327  inline BatchExecuteStatementRequest& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
328 
332  inline BatchExecuteStatementRequest& WithSql(const char* value) { SetSql(value); return *this;}
333 
334 
341  inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
342 
349  inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
350 
357  inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
358 
365  inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
366 
373  inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
374 
381  inline BatchExecuteStatementRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
382 
389  inline BatchExecuteStatementRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
390 
397  inline BatchExecuteStatementRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
398 
399  private:
400 
401  Aws::String m_database;
402  bool m_databaseHasBeenSet;
403 
404  Aws::Vector<Aws::Vector<SqlParameter>> m_parameterSets;
405  bool m_parameterSetsHasBeenSet;
406 
407  Aws::String m_resourceArn;
408  bool m_resourceArnHasBeenSet;
409 
410  Aws::String m_schema;
411  bool m_schemaHasBeenSet;
412 
413  Aws::String m_secretArn;
414  bool m_secretArnHasBeenSet;
415 
416  Aws::String m_sql;
417  bool m_sqlHasBeenSet;
418 
419  Aws::String m_transactionId;
420  bool m_transactionIdHasBeenSet;
421  };
422 
423 } // namespace Model
424 } // namespace RDSDataService
425 } // namespace Aws
const Aws::Vector< Aws::Vector< SqlParameter > > & GetParameterSets() const
BatchExecuteStatementRequest & WithSql(const Aws::String &value)
BatchExecuteStatementRequest & WithParameterSets(const Aws::Vector< Aws::Vector< SqlParameter >> &value)
BatchExecuteStatementRequest & WithResourceArn(const char *value)
BatchExecuteStatementRequest & AddParameterSets(Aws::Vector< SqlParameter > &&value)
BatchExecuteStatementRequest & WithDatabase(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
BatchExecuteStatementRequest & WithSecretArn(Aws::String &&value)
BatchExecuteStatementRequest & WithResourceArn(Aws::String &&value)
BatchExecuteStatementRequest & WithTransactionId(Aws::String &&value)
BatchExecuteStatementRequest & WithSql(const char *value)
BatchExecuteStatementRequest & WithTransactionId(const char *value)
BatchExecuteStatementRequest & WithSecretArn(const char *value)
BatchExecuteStatementRequest & WithSecretArn(const Aws::String &value)
void SetParameterSets(const Aws::Vector< Aws::Vector< SqlParameter >> &value)
BatchExecuteStatementRequest & AddParameterSets(const Aws::Vector< SqlParameter > &value)
void SetParameterSets(Aws::Vector< Aws::Vector< SqlParameter >> &&value)
BatchExecuteStatementRequest & WithSchema(const Aws::String &value)
BatchExecuteStatementRequest & WithSchema(Aws::String &&value)
BatchExecuteStatementRequest & WithResourceArn(const Aws::String &value)
#define AWS_RDSDATASERVICE_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BatchExecuteStatementRequest & WithDatabase(const char *value)
BatchExecuteStatementRequest & WithSql(Aws::String &&value)
BatchExecuteStatementRequest & WithDatabase(const Aws::String &value)
BatchExecuteStatementRequest & WithSchema(const char *value)
BatchExecuteStatementRequest & WithTransactionId(const Aws::String &value)
BatchExecuteStatementRequest & WithParameterSets(Aws::Vector< Aws::Vector< SqlParameter >> &&value)