/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The response elements represent the output of a request to run a SQL
* statement against a database.See Also:
AWS
* API Reference
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
The records returned by the SQL statement. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
Metadata for the columns included in the results. This field is blank if the
* formatRecordsAs
parameter is set to JSON
.
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;} /** *Values for fields generated during a DML 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::VectorValues for fields generated during a DML 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::VectorValues for fields generated during a DML 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::VectorValues for fields generated during a DML 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::VectorValues for fields generated during a DML 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::VectorValues for fields generated during a DML 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 a DML 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; }
/**
* A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline const Aws::String& GetFormattedRecords() const{ return m_formattedRecords; } /** *A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline void SetFormattedRecords(const Aws::String& value) { m_formattedRecords = value; } /** *A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline void SetFormattedRecords(Aws::String&& value) { m_formattedRecords = std::move(value); } /** *A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline void SetFormattedRecords(const char* value) { m_formattedRecords.assign(value); } /** *A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline ExecuteStatementResult& WithFormattedRecords(const Aws::String& value) { SetFormattedRecords(value); return *this;} /** *A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline ExecuteStatementResult& WithFormattedRecords(Aws::String&& value) { SetFormattedRecords(std::move(value)); return *this;} /** *A string value that represents the result set of a SELECT
* statement in JSON format. This value is only present when the
* formatRecordsAs
parameter is set to JSON
.
The * size limit for this field is currently 10 MB. If the JSON-formatted string * representing the result set requires more than 10 MB, the call returns an * error.
*/ inline ExecuteStatementResult& WithFormattedRecords(const char* value) { SetFormattedRecords(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ExecuteStatementResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ExecuteStatementResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ExecuteStatementResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector