/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConnectWisdomService { namespace Model { /** *

The text of the document.

See Also:

AWS * API Reference

*/ class DocumentText { public: AWS_CONNECTWISDOMSERVICE_API DocumentText(); AWS_CONNECTWISDOMSERVICE_API DocumentText(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECTWISDOMSERVICE_API DocumentText& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Highlights in the document text.

*/ inline const Aws::Vector& GetHighlights() const{ return m_highlights; } /** *

Highlights in the document text.

*/ inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; } /** *

Highlights in the document text.

*/ inline void SetHighlights(const Aws::Vector& value) { m_highlightsHasBeenSet = true; m_highlights = value; } /** *

Highlights in the document text.

*/ inline void SetHighlights(Aws::Vector&& value) { m_highlightsHasBeenSet = true; m_highlights = std::move(value); } /** *

Highlights in the document text.

*/ inline DocumentText& WithHighlights(const Aws::Vector& value) { SetHighlights(value); return *this;} /** *

Highlights in the document text.

*/ inline DocumentText& WithHighlights(Aws::Vector&& value) { SetHighlights(std::move(value)); return *this;} /** *

Highlights in the document text.

*/ inline DocumentText& AddHighlights(const Highlight& value) { m_highlightsHasBeenSet = true; m_highlights.push_back(value); return *this; } /** *

Highlights in the document text.

*/ inline DocumentText& AddHighlights(Highlight&& value) { m_highlightsHasBeenSet = true; m_highlights.push_back(std::move(value)); return *this; } /** *

Text in the document.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

Text in the document.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

Text in the document.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

Text in the document.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

Text in the document.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

Text in the document.

*/ inline DocumentText& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

Text in the document.

*/ inline DocumentText& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

Text in the document.

*/ inline DocumentText& WithText(const char* value) { SetText(value); return *this;} private: Aws::Vector m_highlights; bool m_highlightsHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws