/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DetectDocumentTextResult { public: AWS_TEXTRACT_API DetectDocumentTextResult(); AWS_TEXTRACT_API DetectDocumentTextResult(const Aws::AmazonWebServiceResult& result); AWS_TEXTRACT_API DetectDocumentTextResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Metadata about the document. It contains the number of pages that are * detected in the document.

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

Metadata about the document. It contains the number of pages that are * detected in the document.

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

Metadata about the document. It contains the number of pages that are * detected in the document.

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

Metadata about the document. It contains the number of pages that are * detected in the document.

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

Metadata about the document. It contains the number of pages that are * detected in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

An array of Block objects that contain the text that's detected * in the document.

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

*/ inline const Aws::String& GetDetectDocumentTextModelVersion() const{ return m_detectDocumentTextModelVersion; } /** *

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

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

*/ inline void SetDetectDocumentTextModelVersion(const char* value) { m_detectDocumentTextModelVersion.assign(value); } /** *

*/ inline DetectDocumentTextResult& WithDetectDocumentTextModelVersion(const Aws::String& value) { SetDetectDocumentTextModelVersion(value); return *this;} /** *

*/ inline DetectDocumentTextResult& WithDetectDocumentTextModelVersion(Aws::String&& value) { SetDetectDocumentTextModelVersion(std::move(value)); return *this;} /** *

*/ inline DetectDocumentTextResult& WithDetectDocumentTextModelVersion(const char* value) { SetDetectDocumentTextModelVersion(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 DetectDocumentTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectDocumentTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectDocumentTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DocumentMetadata m_documentMetadata; Aws::Vector m_blocks; Aws::String m_detectDocumentTextModelVersion; Aws::String m_requestId; }; } // namespace Model } // namespace Textract } // namespace Aws