/**
* 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
{
/**
* The SuggestionTextWithHighlights
structure
* information.
See Also:
AWS
* API Reference
*/
class SuggestionValue
{
public:
AWS_KENDRA_API SuggestionValue();
AWS_KENDRA_API SuggestionValue(Aws::Utils::Json::JsonView jsonValue);
AWS_KENDRA_API SuggestionValue& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The SuggestionTextWithHighlights
structure that contains the
* query suggestion text and highlights.
*/
inline const SuggestionTextWithHighlights& GetText() const{ return m_text; }
/**
* The SuggestionTextWithHighlights
structure that contains the
* query suggestion text and highlights.
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* The SuggestionTextWithHighlights
structure that contains the
* query suggestion text and highlights.
*/
inline void SetText(const SuggestionTextWithHighlights& value) { m_textHasBeenSet = true; m_text = value; }
/**
* The SuggestionTextWithHighlights
structure that contains the
* query suggestion text and highlights.
*/
inline void SetText(SuggestionTextWithHighlights&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* The SuggestionTextWithHighlights
structure that contains the
* query suggestion text and highlights.
*/
inline SuggestionValue& WithText(const SuggestionTextWithHighlights& value) { SetText(value); return *this;}
/**
* The SuggestionTextWithHighlights
structure that contains the
* query suggestion text and highlights.
*/
inline SuggestionValue& WithText(SuggestionTextWithHighlights&& value) { SetText(std::move(value)); return *this;}
private:
SuggestionTextWithHighlights m_text;
bool m_textHasBeenSet = false;
};
} // namespace Model
} // namespace kendra
} // namespace Aws