AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentText.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qconnect/model/Highlight.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_QCONNECT_API DocumentText() = default;
39 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetText() const { return m_text; }
47 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
48 template<typename TextT = Aws::String>
49 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
50 template<typename TextT = Aws::String>
51 DocumentText& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
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) { m_highlightsHasBeenSet = true; m_highlights = std::forward<HighlightsT>(value); }
62 template<typename HighlightsT = Aws::Vector<Highlight>>
63 DocumentText& WithHighlights(HighlightsT&& value) { SetHighlights(std::forward<HighlightsT>(value)); return *this;}
64 template<typename HighlightsT = Highlight>
65 DocumentText& AddHighlights(HighlightsT&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace_back(std::forward<HighlightsT>(value)); return *this; }
67 private:
68
69 Aws::String m_text;
70 bool m_textHasBeenSet = false;
71
72 Aws::Vector<Highlight> m_highlights;
73 bool m_highlightsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace QConnect
78} // 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