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

An excerpt from a table within a document. The table excerpt displays up to * five columns and three rows, depending on how many table cells are relevant to * the query and how many columns are available in the original table. The top most * relevant cell is displayed in the table excerpt, along with the next most * relevant cells.

See Also:

AWS * API Reference

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A list of rows in the table excerpt.

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

A count of the number of rows in the original table within the document.

*/ inline int GetTotalNumberOfRows() const{ return m_totalNumberOfRows; } /** *

A count of the number of rows in the original table within the document.

*/ inline bool TotalNumberOfRowsHasBeenSet() const { return m_totalNumberOfRowsHasBeenSet; } /** *

A count of the number of rows in the original table within the document.

*/ inline void SetTotalNumberOfRows(int value) { m_totalNumberOfRowsHasBeenSet = true; m_totalNumberOfRows = value; } /** *

A count of the number of rows in the original table within the document.

*/ inline TableExcerpt& WithTotalNumberOfRows(int value) { SetTotalNumberOfRows(value); return *this;} private: Aws::Vector m_rows; bool m_rowsHasBeenSet = false; int m_totalNumberOfRows; bool m_totalNumberOfRowsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws