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

Information about the document, discovered during text * extraction.

See Also:

AWS * API Reference

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

Number of pages in the document.

*/ inline int GetPages() const{ return m_pages; } /** *

Number of pages in the document.

*/ inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; } /** *

Number of pages in the document.

*/ inline void SetPages(int value) { m_pagesHasBeenSet = true; m_pages = value; } /** *

Number of pages in the document.

*/ inline DocumentMetadata& WithPages(int value) { SetPages(value); return *this;} /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline const Aws::Vector& GetExtractedCharacters() const{ return m_extractedCharacters; } /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline bool ExtractedCharactersHasBeenSet() const { return m_extractedCharactersHasBeenSet; } /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline void SetExtractedCharacters(const Aws::Vector& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters = value; } /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline void SetExtractedCharacters(Aws::Vector&& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters = std::move(value); } /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline DocumentMetadata& WithExtractedCharacters(const Aws::Vector& value) { SetExtractedCharacters(value); return *this;} /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline DocumentMetadata& WithExtractedCharacters(Aws::Vector&& value) { SetExtractedCharacters(std::move(value)); return *this;} /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline DocumentMetadata& AddExtractedCharacters(const ExtractedCharactersListItem& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters.push_back(value); return *this; } /** *

List of pages in the document, with the number of characters extracted from * each page.

*/ inline DocumentMetadata& AddExtractedCharacters(ExtractedCharactersListItem&& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters.push_back(std::move(value)); return *this; } private: int m_pages; bool m_pagesHasBeenSet = false; Aws::Vector m_extractedCharacters; bool m_extractedCharactersHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws