/** * 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 GetLendingAnalysisResult { public: AWS_TEXTRACT_API GetLendingAnalysisResult(); AWS_TEXTRACT_API GetLendingAnalysisResult(const Aws::AmazonWebServiceResult& result); AWS_TEXTRACT_API GetLendingAnalysisResult& operator=(const Aws::AmazonWebServiceResult& result); inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; } inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadata = value; } inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadata = std::move(value); } inline GetLendingAnalysisResult& WithDocumentMetadata(const DocumentMetadata& value) { SetDocumentMetadata(value); return *this;} inline GetLendingAnalysisResult& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;} /** *

The current status of the lending analysis job.

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

The current status of the lending analysis job.

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

The current status of the lending analysis job.

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

The current status of the lending analysis job.

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

The current status of the lending analysis job.

*/ inline GetLendingAnalysisResult& 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 lending * 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 lending * 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 lending * 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 lending * 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 lending * results.

*/ inline GetLendingAnalysisResult& 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 lending * results.

*/ inline GetLendingAnalysisResult& 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 lending * results.

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

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } /** *

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

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

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

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

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

*/ inline GetLendingAnalysisResult& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} /** *

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

*/ inline GetLendingAnalysisResult& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} /** *

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

*/ inline GetLendingAnalysisResult& AddResults(const LendingResult& value) { m_results.push_back(value); return *this; } /** *

Holds the information returned by one of AmazonTextract's document analysis * operations for the pinstripe.

*/ inline GetLendingAnalysisResult& AddResults(LendingResult&& value) { m_results.push_back(std::move(value)); return *this; } /** *

A list of warnings that occurred during the lending analysis operation.

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

A list of warnings that occurred during the lending analysis operation.

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

A list of warnings that occurred during the lending analysis operation.

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

A list of warnings that occurred during the lending analysis operation.

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

A list of warnings that occurred during the lending analysis operation.

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

A list of warnings that occurred during the lending analysis operation.

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

A list of warnings that occurred during the lending analysis operation.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

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

Returns if the lending analysis job could not be completed. Contains * explanation for what error occurred.

*/ inline GetLendingAnalysisResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The current model version of the Analyze Lending API.

*/ inline const Aws::String& GetAnalyzeLendingModelVersion() const{ return m_analyzeLendingModelVersion; } /** *

The current model version of the Analyze Lending API.

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

The current model version of the Analyze Lending API.

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

The current model version of the Analyze Lending API.

*/ inline void SetAnalyzeLendingModelVersion(const char* value) { m_analyzeLendingModelVersion.assign(value); } /** *

The current model version of the Analyze Lending API.

*/ inline GetLendingAnalysisResult& WithAnalyzeLendingModelVersion(const Aws::String& value) { SetAnalyzeLendingModelVersion(value); return *this;} /** *

The current model version of the Analyze Lending API.

*/ inline GetLendingAnalysisResult& WithAnalyzeLendingModelVersion(Aws::String&& value) { SetAnalyzeLendingModelVersion(std::move(value)); return *this;} /** *

The current model version of the Analyze Lending API.

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