/** * 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 GetLendingAnalysisSummaryResult { public: AWS_TEXTRACT_API GetLendingAnalysisSummaryResult(); AWS_TEXTRACT_API GetLendingAnalysisSummaryResult(const Aws::AmazonWebServiceResult& result); AWS_TEXTRACT_API GetLendingAnalysisSummaryResult& 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 GetLendingAnalysisSummaryResult& WithDocumentMetadata(const DocumentMetadata& value) { SetDocumentMetadata(value); return *this;} inline GetLendingAnalysisSummaryResult& 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 GetLendingAnalysisSummaryResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} /** *

The current status of the lending analysis job.

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

Contains summary information for documents grouped by type.

*/ inline const LendingSummary& GetSummary() const{ return m_summary; } /** *

Contains summary information for documents grouped by type.

*/ inline void SetSummary(const LendingSummary& value) { m_summary = value; } /** *

Contains summary information for documents grouped by type.

*/ inline void SetSummary(LendingSummary&& value) { m_summary = std::move(value); } /** *

Contains summary information for documents grouped by type.

*/ inline GetLendingAnalysisSummaryResult& WithSummary(const LendingSummary& value) { SetSummary(value); return *this;} /** *

Contains summary information for documents grouped by type.

*/ inline GetLendingAnalysisSummaryResult& WithSummary(LendingSummary&& value) { SetSummary(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 GetLendingAnalysisSummaryResult& WithWarnings(const Aws::Vector& value) { SetWarnings(value); return *this;} /** *

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

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

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

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

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

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

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

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

Returns if the lending analysis 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 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 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 could not be completed. Contains explanation * for what error occurred.

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

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

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

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

*/ inline GetLendingAnalysisSummaryResult& 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 GetLendingAnalysisSummaryResult& WithAnalyzeLendingModelVersion(const Aws::String& value) { SetAnalyzeLendingModelVersion(value); return *this;} /** *

The current model version of the Analyze Lending API.

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

The current model version of the Analyze Lending API.

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