AWS SDK for C++  1.9.72
AWS SDK for C++
ExecuteStatementResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace RDSDataService
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<ColumnMetadata>& GetColumnMetadata() const{ return m_columnMetadata; }
47 
51  inline void SetColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { m_columnMetadata = value; }
52 
56  inline void SetColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { m_columnMetadata = std::move(value); }
57 
61  inline ExecuteStatementResult& WithColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { SetColumnMetadata(value); return *this;}
62 
66  inline ExecuteStatementResult& WithColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { SetColumnMetadata(std::move(value)); return *this;}
67 
71  inline ExecuteStatementResult& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadata.push_back(value); return *this; }
72 
76  inline ExecuteStatementResult& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadata.push_back(std::move(value)); return *this; }
77 
78 
88  inline const Aws::Vector<Field>& GetGeneratedFields() const{ return m_generatedFields; }
89 
99  inline void SetGeneratedFields(const Aws::Vector<Field>& value) { m_generatedFields = value; }
100 
110  inline void SetGeneratedFields(Aws::Vector<Field>&& value) { m_generatedFields = std::move(value); }
111 
121  inline ExecuteStatementResult& WithGeneratedFields(const Aws::Vector<Field>& value) { SetGeneratedFields(value); return *this;}
122 
132  inline ExecuteStatementResult& WithGeneratedFields(Aws::Vector<Field>&& value) { SetGeneratedFields(std::move(value)); return *this;}
133 
143  inline ExecuteStatementResult& AddGeneratedFields(const Field& value) { m_generatedFields.push_back(value); return *this; }
144 
154  inline ExecuteStatementResult& AddGeneratedFields(Field&& value) { m_generatedFields.push_back(std::move(value)); return *this; }
155 
156 
160  inline long long GetNumberOfRecordsUpdated() const{ return m_numberOfRecordsUpdated; }
161 
165  inline void SetNumberOfRecordsUpdated(long long value) { m_numberOfRecordsUpdated = value; }
166 
170  inline ExecuteStatementResult& WithNumberOfRecordsUpdated(long long value) { SetNumberOfRecordsUpdated(value); return *this;}
171 
172 
176  inline const Aws::Vector<Aws::Vector<Field>>& GetRecords() const{ return m_records; }
177 
181  inline void SetRecords(const Aws::Vector<Aws::Vector<Field>>& value) { m_records = value; }
182 
186  inline void SetRecords(Aws::Vector<Aws::Vector<Field>>&& value) { m_records = std::move(value); }
187 
191  inline ExecuteStatementResult& WithRecords(const Aws::Vector<Aws::Vector<Field>>& value) { SetRecords(value); return *this;}
192 
196  inline ExecuteStatementResult& WithRecords(Aws::Vector<Aws::Vector<Field>>&& value) { SetRecords(std::move(value)); return *this;}
197 
201  inline ExecuteStatementResult& AddRecords(const Aws::Vector<Field>& value) { m_records.push_back(value); return *this; }
202 
206  inline ExecuteStatementResult& AddRecords(Aws::Vector<Field>&& value) { m_records.push_back(std::move(value)); return *this; }
207 
208  private:
209 
210  Aws::Vector<ColumnMetadata> m_columnMetadata;
211 
212  Aws::Vector<Field> m_generatedFields;
213 
214  long long m_numberOfRecordsUpdated;
215 
217  };
218 
219 } // namespace Model
220 } // namespace RDSDataService
221 } // namespace Aws
Aws::RDSDataService::Model::ExecuteStatementResult::SetRecords
void SetRecords(const Aws::Vector< Aws::Vector< Field >> &value)
Definition: ExecuteStatementResult.h:181
Aws::RDSDataService::Model::ExecuteStatementResult::AddRecords
ExecuteStatementResult & AddRecords(Aws::Vector< Field > &&value)
Definition: ExecuteStatementResult.h:206
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::RDSDataService::Model::ExecuteStatementResult::WithRecords
ExecuteStatementResult & WithRecords(const Aws::Vector< Aws::Vector< Field >> &value)
Definition: ExecuteStatementResult.h:191
Aws::RDSDataService::Model::ExecuteStatementResult
Definition: ExecuteStatementResult.h:36
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
Aws::RDSDataService::Model::ExecuteStatementResult::GetColumnMetadata
const Aws::Vector< ColumnMetadata > & GetColumnMetadata() const
Definition: ExecuteStatementResult.h:46
Aws::RDSDataService::Model::ExecuteStatementResult::SetRecords
void SetRecords(Aws::Vector< Aws::Vector< Field >> &&value)
Definition: ExecuteStatementResult.h:186
ColumnMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDSDataService::Model::ExecuteStatementResult::AddRecords
ExecuteStatementResult & AddRecords(const Aws::Vector< Field > &value)
Definition: ExecuteStatementResult.h:201
Aws::RDSDataService::Model::ExecuteStatementResult::AddGeneratedFields
ExecuteStatementResult & AddGeneratedFields(Field &&value)
Definition: ExecuteStatementResult.h:154
AWSVector.h
Aws::RDSDataService::Model::ExecuteStatementResult::AddGeneratedFields
ExecuteStatementResult & AddGeneratedFields(const Field &value)
Definition: ExecuteStatementResult.h:143
Aws::RDSDataService::Model::ExecuteStatementResult::GetRecords
const Aws::Vector< Aws::Vector< Field > > & GetRecords() const
Definition: ExecuteStatementResult.h:176
Aws::RDSDataService::Model::ExecuteStatementResult::SetColumnMetadata
void SetColumnMetadata(Aws::Vector< ColumnMetadata > &&value)
Definition: ExecuteStatementResult.h:56
Aws::RDSDataService::Model::ExecuteStatementResult::operator=
ExecuteStatementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::RDSDataService::Model::ExecuteStatementResult::AddColumnMetadata
ExecuteStatementResult & AddColumnMetadata(const ColumnMetadata &value)
Definition: ExecuteStatementResult.h:71
Aws::RDSDataService::Model::ColumnMetadata
Definition: ColumnMetadata.h:32
Aws::RDSDataService::Model::ExecuteStatementResult::SetGeneratedFields
void SetGeneratedFields(const Aws::Vector< Field > &value)
Definition: ExecuteStatementResult.h:99
Aws::RDSDataService::Model::ExecuteStatementResult::ExecuteStatementResult
ExecuteStatementResult()
Aws::RDSDataService::Model::ExecuteStatementResult::WithColumnMetadata
ExecuteStatementResult & WithColumnMetadata(Aws::Vector< ColumnMetadata > &&value)
Definition: ExecuteStatementResult.h:66
Aws::RDSDataService::Model::ExecuteStatementResult::ExecuteStatementResult
ExecuteStatementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::RDSDataService::Model::ExecuteStatementResult::WithNumberOfRecordsUpdated
ExecuteStatementResult & WithNumberOfRecordsUpdated(long long value)
Definition: ExecuteStatementResult.h:170
Aws::RDSDataService::Model::Field
Definition: Field.h:34
Aws::RDSDataService::Model::ExecuteStatementResult::GetGeneratedFields
const Aws::Vector< Field > & GetGeneratedFields() const
Definition: ExecuteStatementResult.h:88
Aws::RDSDataService::Model::ExecuteStatementResult::WithGeneratedFields
ExecuteStatementResult & WithGeneratedFields(Aws::Vector< Field > &&value)
Definition: ExecuteStatementResult.h:132
RDSDataService_EXPORTS.h
Aws::RDSDataService::Model::ExecuteStatementResult::GetNumberOfRecordsUpdated
long long GetNumberOfRecordsUpdated() const
Definition: ExecuteStatementResult.h:160
Aws::RDSDataService::Model::ExecuteStatementResult::SetGeneratedFields
void SetGeneratedFields(Aws::Vector< Field > &&value)
Definition: ExecuteStatementResult.h:110
Aws::RDSDataService::Model::ExecuteStatementResult::WithRecords
ExecuteStatementResult & WithRecords(Aws::Vector< Aws::Vector< Field >> &&value)
Definition: ExecuteStatementResult.h:196
Aws::RDSDataService::Model::ExecuteStatementResult::SetColumnMetadata
void SetColumnMetadata(const Aws::Vector< ColumnMetadata > &value)
Definition: ExecuteStatementResult.h:51
Aws
Definition: AccessManagementClient.h:15
Field.h
Aws::RDSDataService::Model::ExecuteStatementResult::WithGeneratedFields
ExecuteStatementResult & WithGeneratedFields(const Aws::Vector< Field > &value)
Definition: ExecuteStatementResult.h:121
Aws::RDSDataService::Model::ExecuteStatementResult::WithColumnMetadata
ExecuteStatementResult & WithColumnMetadata(const Aws::Vector< ColumnMetadata > &value)
Definition: ExecuteStatementResult.h:61
Aws::RDSDataService::Model::ExecuteStatementResult::AddColumnMetadata
ExecuteStatementResult & AddColumnMetadata(ColumnMetadata &&value)
Definition: ExecuteStatementResult.h:76
Aws::RDSDataService::Model::ExecuteStatementResult::SetNumberOfRecordsUpdated
void SetNumberOfRecordsUpdated(long long value)
Definition: ExecuteStatementResult.h:165