/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RDSDataService { namespace Model { /** *

The response elements represent the output of a request to run a SQL * statement against a database.

See Also:

AWS * API Reference

*/ class AWS_RDSDATASERVICE_API ExecuteStatementResult { public: ExecuteStatementResult(); ExecuteStatementResult(const Aws::AmazonWebServiceResult& result); ExecuteStatementResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Metadata for the columns included in the results.

*/ inline const Aws::Vector& GetColumnMetadata() const{ return m_columnMetadata; } /** *

Metadata for the columns included in the results.

*/ inline void SetColumnMetadata(const Aws::Vector& value) { m_columnMetadata = value; } /** *

Metadata for the columns included in the results.

*/ inline void SetColumnMetadata(Aws::Vector&& value) { m_columnMetadata = std::move(value); } /** *

Metadata for the columns included in the results.

*/ inline ExecuteStatementResult& WithColumnMetadata(const Aws::Vector& value) { SetColumnMetadata(value); return *this;} /** *

Metadata for the columns included in the results.

*/ inline ExecuteStatementResult& WithColumnMetadata(Aws::Vector&& value) { SetColumnMetadata(std::move(value)); return *this;} /** *

Metadata for the columns included in the results.

*/ inline ExecuteStatementResult& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadata.push_back(value); return *this; } /** *

Metadata for the columns included in the results.

*/ inline ExecuteStatementResult& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadata.push_back(std::move(value)); return *this; } /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline const Aws::Vector& GetGeneratedFields() const{ return m_generatedFields; } /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline void SetGeneratedFields(const Aws::Vector& value) { m_generatedFields = value; } /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline void SetGeneratedFields(Aws::Vector&& value) { m_generatedFields = std::move(value); } /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline ExecuteStatementResult& WithGeneratedFields(const Aws::Vector& value) { SetGeneratedFields(value); return *this;} /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline ExecuteStatementResult& WithGeneratedFields(Aws::Vector&& value) { SetGeneratedFields(std::move(value)); return *this;} /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline ExecuteStatementResult& AddGeneratedFields(const Field& value) { m_generatedFields.push_back(value); return *this; } /** *

Values for fields generated during the request.

 <note>
     * <p>The <code>generatedFields</code> data isn't supported by
     * Aurora PostgreSQL. To get the values of generated fields, use the
     * <code>RETURNING</code> clause. For more information, see <a
     * href="https://www.postgresql.org/docs/10/dml-returning.html">Returning
     * Data From Modified Rows</a> in the PostgreSQL documentation.</p>
     * </note> 
*/ inline ExecuteStatementResult& AddGeneratedFields(Field&& value) { m_generatedFields.push_back(std::move(value)); return *this; } /** *

The number of records updated by the request.

*/ inline long long GetNumberOfRecordsUpdated() const{ return m_numberOfRecordsUpdated; } /** *

The number of records updated by the request.

*/ inline void SetNumberOfRecordsUpdated(long long value) { m_numberOfRecordsUpdated = value; } /** *

The number of records updated by the request.

*/ inline ExecuteStatementResult& WithNumberOfRecordsUpdated(long long value) { SetNumberOfRecordsUpdated(value); return *this;} /** *

The records returned by the SQL statement.

*/ inline const Aws::Vector>& GetRecords() const{ return m_records; } /** *

The records returned by the SQL statement.

*/ inline void SetRecords(const Aws::Vector>& value) { m_records = value; } /** *

The records returned by the SQL statement.

*/ inline void SetRecords(Aws::Vector>&& value) { m_records = std::move(value); } /** *

The records returned by the SQL statement.

*/ inline ExecuteStatementResult& WithRecords(const Aws::Vector>& value) { SetRecords(value); return *this;} /** *

The records returned by the SQL statement.

*/ inline ExecuteStatementResult& WithRecords(Aws::Vector>&& value) { SetRecords(std::move(value)); return *this;} /** *

The records returned by the SQL statement.

*/ inline ExecuteStatementResult& AddRecords(const Aws::Vector& value) { m_records.push_back(value); return *this; } /** *

The records returned by the SQL statement.

*/ inline ExecuteStatementResult& AddRecords(Aws::Vector&& value) { m_records.push_back(std::move(value)); return *this; } private: Aws::Vector m_columnMetadata; Aws::Vector m_generatedFields; long long m_numberOfRecordsUpdated; Aws::Vector> m_records; }; } // namespace Model } // namespace RDSDataService } // namespace Aws