/** * 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 Textract { namespace Model { /** *

The class assigned to a Page object detected in an input document. Contains * information regarding the predicted type/class of a document's page and the page * number that the Page object was detected on.

See Also:

AWS * API Reference

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

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline const Aws::Vector& GetPageType() const{ return m_pageType; } /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline bool PageTypeHasBeenSet() const { return m_pageTypeHasBeenSet; } /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline void SetPageType(const Aws::Vector& value) { m_pageTypeHasBeenSet = true; m_pageType = value; } /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline void SetPageType(Aws::Vector&& value) { m_pageTypeHasBeenSet = true; m_pageType = std::move(value); } /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline PageClassification& WithPageType(const Aws::Vector& value) { SetPageType(value); return *this;} /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline PageClassification& WithPageType(Aws::Vector&& value) { SetPageType(std::move(value)); return *this;} /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline PageClassification& AddPageType(const Prediction& value) { m_pageTypeHasBeenSet = true; m_pageType.push_back(value); return *this; } /** *

The class, or document type, assigned to a detected Page object. The class, * or document type, assigned to a detected Page object.

*/ inline PageClassification& AddPageType(Prediction&& value) { m_pageTypeHasBeenSet = true; m_pageType.push_back(std::move(value)); return *this; } /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline const Aws::Vector& GetPageNumber() const{ return m_pageNumber; } /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline bool PageNumberHasBeenSet() const { return m_pageNumberHasBeenSet; } /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline void SetPageNumber(const Aws::Vector& value) { m_pageNumberHasBeenSet = true; m_pageNumber = value; } /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline void SetPageNumber(Aws::Vector&& value) { m_pageNumberHasBeenSet = true; m_pageNumber = std::move(value); } /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline PageClassification& WithPageNumber(const Aws::Vector& value) { SetPageNumber(value); return *this;} /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline PageClassification& WithPageNumber(Aws::Vector&& value) { SetPageNumber(std::move(value)); return *this;} /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline PageClassification& AddPageNumber(const Prediction& value) { m_pageNumberHasBeenSet = true; m_pageNumber.push_back(value); return *this; } /** *

The page number the value was detected on, relative to Amazon Textract's * starting position.

*/ inline PageClassification& AddPageNumber(Prediction&& value) { m_pageNumberHasBeenSet = true; m_pageNumber.push_back(std::move(value)); return *this; } private: Aws::Vector m_pageType; bool m_pageTypeHasBeenSet = false; Aws::Vector m_pageNumber; bool m_pageNumberHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws