/** * 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 { /** *

An attribute returned with a document from a search.

See Also:

* AWS * API Reference

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

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