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

Contains the detections for each page analyzed through the Analyze Lending * API.

See Also:

AWS * API Reference

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

The page number for a page, with regard to whole submission.

*/ inline int GetPage() const{ return m_page; } /** *

The page number for a page, with regard to whole submission.

*/ inline bool PageHasBeenSet() const { return m_pageHasBeenSet; } /** *

The page number for a page, with regard to whole submission.

*/ inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; } /** *

The page number for a page, with regard to whole submission.

*/ inline LendingResult& WithPage(int value) { SetPage(value); return *this;} /** *

The classifier result for a given page.

*/ inline const PageClassification& GetPageClassification() const{ return m_pageClassification; } /** *

The classifier result for a given page.

*/ inline bool PageClassificationHasBeenSet() const { return m_pageClassificationHasBeenSet; } /** *

The classifier result for a given page.

*/ inline void SetPageClassification(const PageClassification& value) { m_pageClassificationHasBeenSet = true; m_pageClassification = value; } /** *

The classifier result for a given page.

*/ inline void SetPageClassification(PageClassification&& value) { m_pageClassificationHasBeenSet = true; m_pageClassification = std::move(value); } /** *

The classifier result for a given page.

*/ inline LendingResult& WithPageClassification(const PageClassification& value) { SetPageClassification(value); return *this;} /** *

The classifier result for a given page.

*/ inline LendingResult& WithPageClassification(PageClassification&& value) { SetPageClassification(std::move(value)); return *this;} /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline const Aws::Vector& GetExtractions() const{ return m_extractions; } /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline bool ExtractionsHasBeenSet() const { return m_extractionsHasBeenSet; } /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline void SetExtractions(const Aws::Vector& value) { m_extractionsHasBeenSet = true; m_extractions = value; } /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline void SetExtractions(Aws::Vector&& value) { m_extractionsHasBeenSet = true; m_extractions = std::move(value); } /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline LendingResult& WithExtractions(const Aws::Vector& value) { SetExtractions(value); return *this;} /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline LendingResult& WithExtractions(Aws::Vector&& value) { SetExtractions(std::move(value)); return *this;} /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline LendingResult& AddExtractions(const Extraction& value) { m_extractionsHasBeenSet = true; m_extractions.push_back(value); return *this; } /** *

An array of Extraction to hold structured data. e.g. normalized key value * pairs instead of raw OCR detections .

*/ inline LendingResult& AddExtractions(Extraction&& value) { m_extractionsHasBeenSet = true; m_extractions.push_back(std::move(value)); return *this; } private: int m_page; bool m_pageHasBeenSet = false; PageClassification m_pageClassification; bool m_pageClassificationHasBeenSet = false; Aws::Vector m_extractions; bool m_extractionsHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws