AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DocumentText.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/Highlight.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23
30 public:
31 AWS_QCONNECT_API DocumentText() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::String>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::String>
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Highlight>& GetHighlights() const { return m_highlights; }
59 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
60 template <typename HighlightsT = Aws::Vector<Highlight>>
61 void SetHighlights(HighlightsT&& value) {
62 m_highlightsHasBeenSet = true;
63 m_highlights = std::forward<HighlightsT>(value);
64 }
65 template <typename HighlightsT = Aws::Vector<Highlight>>
67 SetHighlights(std::forward<HighlightsT>(value));
68 return *this;
69 }
70 template <typename HighlightsT = Highlight>
72 m_highlightsHasBeenSet = true;
73 m_highlights.emplace_back(std::forward<HighlightsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_text;
79
80 Aws::Vector<Highlight> m_highlights;
81 bool m_textHasBeenSet = false;
82 bool m_highlightsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace QConnect
87} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetText() const
AWS_QCONNECT_API DocumentText()=default
AWS_QCONNECT_API DocumentText(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API DocumentText & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHighlights(HighlightsT &&value)
DocumentText & WithText(TextT &&value)
DocumentText & AddHighlights(HighlightsT &&value)
const Aws::Vector< Highlight > & GetHighlights() const
DocumentText & WithHighlights(HighlightsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue