/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Textract { namespace Model { class AnalyzeDocumentResult { public: AWS_TEXTRACT_API AnalyzeDocumentResult(); AWS_TEXTRACT_API AnalyzeDocumentResult(const Aws::AmazonWebServiceResult& result); AWS_TEXTRACT_API AnalyzeDocumentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Metadata about the analyzed document. An example is the number of pages.

*/ inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; } /** *

Metadata about the analyzed document. An example is the number of pages.

*/ inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadata = value; } /** *

Metadata about the analyzed document. An example is the number of pages.

*/ inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadata = std::move(value); } /** *

Metadata about the analyzed document. An example is the number of pages.

*/ inline AnalyzeDocumentResult& WithDocumentMetadata(const DocumentMetadata& value) { SetDocumentMetadata(value); return *this;} /** *

Metadata about the analyzed document. An example is the number of pages.

*/ inline AnalyzeDocumentResult& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;} /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline const Aws::Vector& GetBlocks() const{ return m_blocks; } /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline void SetBlocks(const Aws::Vector& value) { m_blocks = value; } /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline void SetBlocks(Aws::Vector&& value) { m_blocks = std::move(value); } /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline AnalyzeDocumentResult& WithBlocks(const Aws::Vector& value) { SetBlocks(value); return *this;} /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline AnalyzeDocumentResult& WithBlocks(Aws::Vector&& value) { SetBlocks(std::move(value)); return *this;} /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline AnalyzeDocumentResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; } /** *

The items that are detected and analyzed by AnalyzeDocument.

*/ inline AnalyzeDocumentResult& AddBlocks(Block&& value) { m_blocks.push_back(std::move(value)); return *this; } /** *

Shows the results of the human in the loop evaluation.

*/ inline const HumanLoopActivationOutput& GetHumanLoopActivationOutput() const{ return m_humanLoopActivationOutput; } /** *

Shows the results of the human in the loop evaluation.

*/ inline void SetHumanLoopActivationOutput(const HumanLoopActivationOutput& value) { m_humanLoopActivationOutput = value; } /** *

Shows the results of the human in the loop evaluation.

*/ inline void SetHumanLoopActivationOutput(HumanLoopActivationOutput&& value) { m_humanLoopActivationOutput = std::move(value); } /** *

Shows the results of the human in the loop evaluation.

*/ inline AnalyzeDocumentResult& WithHumanLoopActivationOutput(const HumanLoopActivationOutput& value) { SetHumanLoopActivationOutput(value); return *this;} /** *

Shows the results of the human in the loop evaluation.

*/ inline AnalyzeDocumentResult& WithHumanLoopActivationOutput(HumanLoopActivationOutput&& value) { SetHumanLoopActivationOutput(std::move(value)); return *this;} /** *

The version of the model used to analyze the document.

*/ inline const Aws::String& GetAnalyzeDocumentModelVersion() const{ return m_analyzeDocumentModelVersion; } /** *

The version of the model used to analyze the document.

*/ inline void SetAnalyzeDocumentModelVersion(const Aws::String& value) { m_analyzeDocumentModelVersion = value; } /** *

The version of the model used to analyze the document.

*/ inline void SetAnalyzeDocumentModelVersion(Aws::String&& value) { m_analyzeDocumentModelVersion = std::move(value); } /** *

The version of the model used to analyze the document.

*/ inline void SetAnalyzeDocumentModelVersion(const char* value) { m_analyzeDocumentModelVersion.assign(value); } /** *

The version of the model used to analyze the document.

*/ inline AnalyzeDocumentResult& WithAnalyzeDocumentModelVersion(const Aws::String& value) { SetAnalyzeDocumentModelVersion(value); return *this;} /** *

The version of the model used to analyze the document.

*/ inline AnalyzeDocumentResult& WithAnalyzeDocumentModelVersion(Aws::String&& value) { SetAnalyzeDocumentModelVersion(std::move(value)); return *this;} /** *

The version of the model used to analyze the document.

*/ inline AnalyzeDocumentResult& WithAnalyzeDocumentModelVersion(const char* value) { SetAnalyzeDocumentModelVersion(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline AnalyzeDocumentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AnalyzeDocumentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AnalyzeDocumentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DocumentMetadata m_documentMetadata; Aws::Vector m_blocks; HumanLoopActivationOutput m_humanLoopActivationOutput; Aws::String m_analyzeDocumentModelVersion; Aws::String m_requestId; }; } // namespace Model } // namespace Textract } // namespace Aws