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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/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 ConnectWisdomService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CONNECTWISDOMSERVICE_API DocumentText() = default;
37 AWS_CONNECTWISDOMSERVICE_API DocumentText(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API DocumentText& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Highlight>& GetHighlights() const { return m_highlights; }
47 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
48 template<typename HighlightsT = Aws::Vector<Highlight>>
49 void SetHighlights(HighlightsT&& value) { m_highlightsHasBeenSet = true; m_highlights = std::forward<HighlightsT>(value); }
50 template<typename HighlightsT = Aws::Vector<Highlight>>
51 DocumentText& WithHighlights(HighlightsT&& value) { SetHighlights(std::forward<HighlightsT>(value)); return *this;}
52 template<typename HighlightsT = Highlight>
53 DocumentText& AddHighlights(HighlightsT&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace_back(std::forward<HighlightsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetText() const { return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
62 template<typename TextT = Aws::String>
63 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
64 template<typename TextT = Aws::String>
65 DocumentText& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
67 private:
68
69 Aws::Vector<Highlight> m_highlights;
70 bool m_highlightsHasBeenSet = false;
71
72 Aws::String m_text;
73 bool m_textHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ConnectWisdomService
78} // 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