7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/Highlight.h>
43 template <
typename TextT = Aws::String>
45 m_textHasBeenSet =
true;
46 m_text = std::forward<TextT>(value);
48 template <
typename TextT = Aws::String>
50 SetText(std::forward<TextT>(value));
61 template <
typename HighlightsT = Aws::Vector<Highlight>>
63 m_highlightsHasBeenSet =
true;
64 m_highlights = std::forward<HighlightsT>(value);
66 template <
typename HighlightsT = Aws::Vector<Highlight>>
71 template <
typename HighlightsT = Highlight>
73 m_highlightsHasBeenSet =
true;
74 m_highlights.emplace_back(std::forward<HighlightsT>(value));
82 bool m_textHasBeenSet =
false;
83 bool m_highlightsHasBeenSet =
false;
AWS_KENDRA_API TextWithHighlights()=default
bool HighlightsHasBeenSet() const
const Aws::Vector< Highlight > & GetHighlights() const
bool TextHasBeenSet() const
void SetHighlights(HighlightsT &&value)
TextWithHighlights & WithHighlights(HighlightsT &&value)
AWS_KENDRA_API TextWithHighlights(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetText(TextT &&value)
AWS_KENDRA_API TextWithHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
TextWithHighlights & WithText(TextT &&value)
TextWithHighlights & AddHighlights(HighlightsT &&value)
const Aws::String & GetText() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue