AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentText.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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();
37 AWS_QCONNECT_API DocumentText(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QCONNECT_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 inline void SetHighlights(const Aws::Vector<Highlight>& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
49 inline void SetHighlights(Aws::Vector<Highlight>&& value) { m_highlightsHasBeenSet = true; m_highlights = std::move(value); }
50 inline DocumentText& WithHighlights(const Aws::Vector<Highlight>& value) { SetHighlights(value); return *this;}
51 inline DocumentText& WithHighlights(Aws::Vector<Highlight>&& value) { SetHighlights(std::move(value)); return *this;}
52 inline DocumentText& AddHighlights(const Highlight& value) { m_highlightsHasBeenSet = true; m_highlights.push_back(value); return *this; }
53 inline DocumentText& AddHighlights(Highlight&& value) { m_highlightsHasBeenSet = true; m_highlights.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::String& GetText() const{ return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
62 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
63 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
64 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
65 inline DocumentText& WithText(const Aws::String& value) { SetText(value); return *this;}
66 inline DocumentText& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
67 inline DocumentText& WithText(const char* value) { SetText(value); return *this;}
69 private:
70
71 Aws::Vector<Highlight> m_highlights;
72 bool m_highlightsHasBeenSet = false;
73
74 Aws::String m_text;
75 bool m_textHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace QConnect
80} // namespace Aws
DocumentText & WithText(const Aws::String &value)
void SetText(const Aws::String &value)
void SetHighlights(const Aws::Vector< Highlight > &value)
DocumentText & WithText(Aws::String &&value)
void SetHighlights(Aws::Vector< Highlight > &&value)
DocumentText & WithHighlights(const Aws::Vector< Highlight > &value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetText() const
DocumentText & WithHighlights(Aws::Vector< Highlight > &&value)
DocumentText & WithText(const char *value)
AWS_QCONNECT_API DocumentText(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API DocumentText & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetText(Aws::String &&value)
void SetText(const char *value)
DocumentText & AddHighlights(Highlight &&value)
const Aws::Vector< Highlight > & GetHighlights() const
DocumentText & AddHighlights(const Highlight &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