/** * 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 Athena { namespace Model { /** *

The metadata and rows that make up a query result set. The metadata describes * the column structure and data types. To return a ResultSet object, * use GetQueryResults.

See Also:

AWS * API Reference

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

The rows in the table.

*/ inline const Aws::Vector& GetRows() const{ return m_rows; } /** *

The rows in the table.

*/ inline bool RowsHasBeenSet() const { return m_rowsHasBeenSet; } /** *

The rows in the table.

*/ inline void SetRows(const Aws::Vector& value) { m_rowsHasBeenSet = true; m_rows = value; } /** *

The rows in the table.

*/ inline void SetRows(Aws::Vector&& value) { m_rowsHasBeenSet = true; m_rows = std::move(value); } /** *

The rows in the table.

*/ inline ResultSet& WithRows(const Aws::Vector& value) { SetRows(value); return *this;} /** *

The rows in the table.

*/ inline ResultSet& WithRows(Aws::Vector&& value) { SetRows(std::move(value)); return *this;} /** *

The rows in the table.

*/ inline ResultSet& AddRows(const Row& value) { m_rowsHasBeenSet = true; m_rows.push_back(value); return *this; } /** *

The rows in the table.

*/ inline ResultSet& AddRows(Row&& value) { m_rowsHasBeenSet = true; m_rows.push_back(std::move(value)); return *this; } /** *

The metadata that describes the column structure and data types of a table of * query results.

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

The metadata that describes the column structure and data types of a table of * query results.

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

The metadata that describes the column structure and data types of a table of * query results.

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

The metadata that describes the column structure and data types of a table of * query results.

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

The metadata that describes the column structure and data types of a table of * query results.

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

The metadata that describes the column structure and data types of a table of * query results.

*/ inline ResultSet& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;} private: Aws::Vector m_rows; bool m_rowsHasBeenSet = false; ResultSetMetadata m_resultSetMetadata; bool m_resultSetMetadataHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws