AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/wisdom/ConnectWisdomService_EXPORTS.h>
10#include <aws/wisdom/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 ConnectWisdomService {
22namespace Model {
23
30 public:
31 AWS_CONNECTWISDOMSERVICE_API DocumentText() = default;
32 AWS_CONNECTWISDOMSERVICE_API DocumentText(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTWISDOMSERVICE_API DocumentText& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Highlight>& GetHighlights() const { return m_highlights; }
41 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
42 template <typename HighlightsT = Aws::Vector<Highlight>>
43 void SetHighlights(HighlightsT&& value) {
44 m_highlightsHasBeenSet = true;
45 m_highlights = std::forward<HighlightsT>(value);
46 }
47 template <typename HighlightsT = Aws::Vector<Highlight>>
48 DocumentText& WithHighlights(HighlightsT&& value) {
49 SetHighlights(std::forward<HighlightsT>(value));
50 return *this;
51 }
52 template <typename HighlightsT = Highlight>
53 DocumentText& AddHighlights(HighlightsT&& value) {
54 m_highlightsHasBeenSet = true;
55 m_highlights.emplace_back(std::forward<HighlightsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetText() const { return m_text; }
65 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
66 template <typename TextT = Aws::String>
67 void SetText(TextT&& value) {
68 m_textHasBeenSet = true;
69 m_text = std::forward<TextT>(value);
70 }
71 template <typename TextT = Aws::String>
72 DocumentText& WithText(TextT&& value) {
73 SetText(std::forward<TextT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<Highlight> m_highlights;
79
80 Aws::String m_text;
81 bool m_highlightsHasBeenSet = false;
82 bool m_textHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ConnectWisdomService
87} // namespace Aws
const Aws::Vector< Highlight > & GetHighlights() const
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTWISDOMSERVICE_API DocumentText & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API DocumentText(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API DocumentText()=default
DocumentText & AddHighlights(HighlightsT &&value)
DocumentText & WithText(TextT &&value)
DocumentText & WithHighlights(HighlightsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue