/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RDSDataService { namespace Model { /** *

The result set returned by a SQL statement.

This data structure * is only used with the deprecated ExecuteSql operation. Use the * BatchExecuteStatement or ExecuteStatement operation * instead.

See Also:

AWS * API Reference

*/ class ResultFrame { public: AWS_RDSDATASERVICE_API ResultFrame(); AWS_RDSDATASERVICE_API ResultFrame(Aws::Utils::Json::JsonView jsonValue); AWS_RDSDATASERVICE_API ResultFrame& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The result-set metadata in the result set.

*/ inline const ResultSetMetadata& GetResultSetMetadata() const{ return m_resultSetMetadata; } /** *

The result-set metadata in the result set.

*/ inline bool ResultSetMetadataHasBeenSet() const { return m_resultSetMetadataHasBeenSet; } /** *

The result-set metadata in the result set.

*/ inline void SetResultSetMetadata(const ResultSetMetadata& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = value; } /** *

The result-set metadata in the result set.

*/ inline void SetResultSetMetadata(ResultSetMetadata&& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = std::move(value); } /** *

The result-set metadata in the result set.

*/ inline ResultFrame& WithResultSetMetadata(const ResultSetMetadata& value) { SetResultSetMetadata(value); return *this;} /** *

The result-set metadata in the result set.

*/ inline ResultFrame& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;} /** *

The records in the result set.

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

The records in the result set.

*/ inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; } /** *

The records in the result set.

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

The records in the result set.

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

The records in the result set.

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

The records in the result set.

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

The records in the result set.

*/ inline ResultFrame& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; } /** *

The records in the result set.

*/ inline ResultFrame& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; } private: ResultSetMetadata m_resultSetMetadata; bool m_resultSetMetadataHasBeenSet = false; Aws::Vector m_records; bool m_recordsHasBeenSet = false; }; } // namespace Model } // namespace RDSDataService } // namespace Aws