/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Textract { namespace Model { class GetDocumentTextDetectionResult { public: AWS_TEXTRACT_API GetDocumentTextDetectionResult(); AWS_TEXTRACT_API GetDocumentTextDetectionResult(const Aws::AmazonWebServiceResult& result); AWS_TEXTRACT_API GetDocumentTextDetectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about a document that Amazon Textract processed. * DocumentMetadata is returned in every page of paginated responses * from an Amazon Textract video operation.

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

Information about a document that Amazon Textract processed. * DocumentMetadata is returned in every page of paginated responses * from an Amazon Textract video operation.

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

Information about a document that Amazon Textract processed. * DocumentMetadata is returned in every page of paginated responses * from an Amazon Textract video operation.

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

Information about a document that Amazon Textract processed. * DocumentMetadata is returned in every page of paginated responses * from an Amazon Textract video operation.

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

Information about a document that Amazon Textract processed. * DocumentMetadata is returned in every page of paginated responses * from an Amazon Textract video operation.

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

The current status of the text detection job.

*/ inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } /** *

The current status of the text detection job.

*/ inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; } /** *

The current status of the text detection job.

*/ inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); } /** *

The current status of the text detection job.

*/ inline GetDocumentTextDetectionResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} /** *

The current status of the text detection job.

*/ inline GetDocumentTextDetectionResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} /** *

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

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

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

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

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

*/ inline GetDocumentTextDetectionResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

*/ inline GetDocumentTextDetectionResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the response is truncated, Amazon Textract returns this token. You can use * this token in the subsequent request to retrieve the next set of text-detection * results.

*/ inline GetDocumentTextDetectionResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The results of the text-detection operation.

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

The results of the text-detection operation.

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

The results of the text-detection operation.

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

The results of the text-detection operation.

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

The results of the text-detection operation.

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

The results of the text-detection operation.

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

The results of the text-detection operation.

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

A list of warnings that occurred during the text-detection operation for the * document.

*/ inline const Aws::Vector& GetWarnings() const{ return m_warnings; } /** *

A list of warnings that occurred during the text-detection operation for the * document.

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

A list of warnings that occurred during the text-detection operation for the * document.

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

A list of warnings that occurred during the text-detection operation for the * document.

*/ inline GetDocumentTextDetectionResult& WithWarnings(const Aws::Vector& value) { SetWarnings(value); return *this;} /** *

A list of warnings that occurred during the text-detection operation for the * document.

*/ inline GetDocumentTextDetectionResult& WithWarnings(Aws::Vector&& value) { SetWarnings(std::move(value)); return *this;} /** *

A list of warnings that occurred during the text-detection operation for the * document.

*/ inline GetDocumentTextDetectionResult& AddWarnings(const Warning& value) { m_warnings.push_back(value); return *this; } /** *

A list of warnings that occurred during the text-detection operation for the * document.

*/ inline GetDocumentTextDetectionResult& AddWarnings(Warning&& value) { m_warnings.push_back(std::move(value)); return *this; } /** *

Returns if the detection job could not be completed. Contains explanation for * what error occured.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

Returns if the detection job could not be completed. Contains explanation for * what error occured.

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

Returns if the detection job could not be completed. Contains explanation for * what error occured.

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

Returns if the detection job could not be completed. Contains explanation for * what error occured.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

Returns if the detection job could not be completed. Contains explanation for * what error occured.

*/ inline GetDocumentTextDetectionResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

Returns if the detection job could not be completed. Contains explanation for * what error occured.

*/ inline GetDocumentTextDetectionResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

Returns if the detection job could not be completed. Contains explanation for * what error occured.

*/ inline GetDocumentTextDetectionResult& WithStatusMessage(const char* value) { SetStatusMessage(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 GetDocumentTextDetectionResult& WithDetectDocumentTextModelVersion(const Aws::String& value) { SetDetectDocumentTextModelVersion(value); return *this;} /** *

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

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