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

Provides information about a table cell in a table excerpt.

See * Also:

AWS * API Reference

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

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline TableCell& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline TableCell& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The actual value or content within a table cell. A table cell could contain a * date value of a year, or a string value of text, for example.

*/ inline TableCell& WithValue(const char* value) { SetValue(value); return *this;} /** *

TRUE if the response of the table cell is the top answer. This * is the cell value or content with the highest confidence score or is the most * relevant to the query.

*/ inline bool GetTopAnswer() const{ return m_topAnswer; } /** *

TRUE if the response of the table cell is the top answer. This * is the cell value or content with the highest confidence score or is the most * relevant to the query.

*/ inline bool TopAnswerHasBeenSet() const { return m_topAnswerHasBeenSet; } /** *

TRUE if the response of the table cell is the top answer. This * is the cell value or content with the highest confidence score or is the most * relevant to the query.

*/ inline void SetTopAnswer(bool value) { m_topAnswerHasBeenSet = true; m_topAnswer = value; } /** *

TRUE if the response of the table cell is the top answer. This * is the cell value or content with the highest confidence score or is the most * relevant to the query.

*/ inline TableCell& WithTopAnswer(bool value) { SetTopAnswer(value); return *this;} /** *

TRUE means that the table cell has a high enough confidence and * is relevant to the query, so the value or content should be highlighted.

*/ inline bool GetHighlighted() const{ return m_highlighted; } /** *

TRUE means that the table cell has a high enough confidence and * is relevant to the query, so the value or content should be highlighted.

*/ inline bool HighlightedHasBeenSet() const { return m_highlightedHasBeenSet; } /** *

TRUE means that the table cell has a high enough confidence and * is relevant to the query, so the value or content should be highlighted.

*/ inline void SetHighlighted(bool value) { m_highlightedHasBeenSet = true; m_highlighted = value; } /** *

TRUE means that the table cell has a high enough confidence and * is relevant to the query, so the value or content should be highlighted.

*/ inline TableCell& WithHighlighted(bool value) { SetHighlighted(value); return *this;} /** *

TRUE means that the table cell should be treated as a * header.

*/ inline bool GetHeader() const{ return m_header; } /** *

TRUE means that the table cell should be treated as a * header.

*/ inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; } /** *

TRUE means that the table cell should be treated as a * header.

*/ inline void SetHeader(bool value) { m_headerHasBeenSet = true; m_header = value; } /** *

TRUE means that the table cell should be treated as a * header.

*/ inline TableCell& WithHeader(bool value) { SetHeader(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; bool m_topAnswer; bool m_topAnswerHasBeenSet = false; bool m_highlighted; bool m_highlightedHasBeenSet = false; bool m_header; bool m_headerHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws