/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An attribute returned with a document from a search.See Also:
* AWS
* API Reference
The text associated with the attribute and information about the highlight to * apply to the text.
*/ inline const TextWithHighlights& GetTextWithHighlightsValue() const{ return m_textWithHighlightsValue; } /** *The text associated with the attribute and information about the highlight to * apply to the text.
*/ inline bool TextWithHighlightsValueHasBeenSet() const { return m_textWithHighlightsValueHasBeenSet; } /** *The text associated with the attribute and information about the highlight to * apply to the text.
*/ inline void SetTextWithHighlightsValue(const TextWithHighlights& value) { m_textWithHighlightsValueHasBeenSet = true; m_textWithHighlightsValue = value; } /** *The text associated with the attribute and information about the highlight to * apply to the text.
*/ inline void SetTextWithHighlightsValue(TextWithHighlights&& value) { m_textWithHighlightsValueHasBeenSet = true; m_textWithHighlightsValue = std::move(value); } /** *The text associated with the attribute and information about the highlight to * apply to the text.
*/ inline AdditionalResultAttributeValue& WithTextWithHighlightsValue(const TextWithHighlights& value) { SetTextWithHighlightsValue(value); return *this;} /** *The text associated with the attribute and information about the highlight to * apply to the text.
*/ inline AdditionalResultAttributeValue& WithTextWithHighlightsValue(TextWithHighlights&& value) { SetTextWithHighlightsValue(std::move(value)); return *this;} private: TextWithHighlights m_textWithHighlightsValue; bool m_textWithHighlightsValueHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws