/** * 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 GetExpenseAnalysisResult { public: AWS_TEXTRACT_API GetExpenseAnalysisResult(); AWS_TEXTRACT_API GetExpenseAnalysisResult(const Aws::AmazonWebServiceResult& result); AWS_TEXTRACT_API GetExpenseAnalysisResult& 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 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 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 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 operation.

*/ inline GetExpenseAnalysisResult& 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 operation.

*/ inline GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} /** *

The current status of the text detection job.

*/ inline GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The expenses detected by Amazon Textract.

*/ inline const Aws::Vector& GetExpenseDocuments() const{ return m_expenseDocuments; } /** *

The expenses detected by Amazon Textract.

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

The expenses detected by Amazon Textract.

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

The expenses detected by Amazon Textract.

*/ inline GetExpenseAnalysisResult& WithExpenseDocuments(const Aws::Vector& value) { SetExpenseDocuments(value); return *this;} /** *

The expenses detected by Amazon Textract.

*/ inline GetExpenseAnalysisResult& WithExpenseDocuments(Aws::Vector&& value) { SetExpenseDocuments(std::move(value)); return *this;} /** *

The expenses detected by Amazon Textract.

*/ inline GetExpenseAnalysisResult& AddExpenseDocuments(const ExpenseDocument& value) { m_expenseDocuments.push_back(value); return *this; } /** *

The expenses detected by Amazon Textract.

*/ inline GetExpenseAnalysisResult& AddExpenseDocuments(ExpenseDocument&& value) { m_expenseDocuments.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 GetExpenseAnalysisResult& WithWarnings(const Aws::Vector& value) { SetWarnings(value); return *this;} /** *

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

*/ inline GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& 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 GetExpenseAnalysisResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The current model version of AnalyzeExpense.

*/ inline const Aws::String& GetAnalyzeExpenseModelVersion() const{ return m_analyzeExpenseModelVersion; } /** *

The current model version of AnalyzeExpense.

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

The current model version of AnalyzeExpense.

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

The current model version of AnalyzeExpense.

*/ inline void SetAnalyzeExpenseModelVersion(const char* value) { m_analyzeExpenseModelVersion.assign(value); } /** *

The current model version of AnalyzeExpense.

*/ inline GetExpenseAnalysisResult& WithAnalyzeExpenseModelVersion(const Aws::String& value) { SetAnalyzeExpenseModelVersion(value); return *this;} /** *

The current model version of AnalyzeExpense.

*/ inline GetExpenseAnalysisResult& WithAnalyzeExpenseModelVersion(Aws::String&& value) { SetAnalyzeExpenseModelVersion(std::move(value)); return *this;} /** *

The current model version of AnalyzeExpense.

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