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

Information about the input document.

See Also:

AWS * API Reference

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

The number of pages that are detected in the document.

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

The number of pages that are detected in the document.

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

The number of pages that are detected in the document.

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

The number of pages that are detected in the document.

*/ inline DocumentMetadata& WithPages(int value) { SetPages(value); return *this;} private: int m_pages; bool m_pagesHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws