/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Textract { namespace Model { /** *

Holds the structured data returned by AnalyzeDocument for lending * documents.

See Also:

AWS * API Reference

*/ class LendingDocument { public: AWS_TEXTRACT_API LendingDocument(); AWS_TEXTRACT_API LendingDocument(Aws::Utils::Json::JsonView jsonValue); AWS_TEXTRACT_API LendingDocument& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array of LendingField objects.

*/ inline const Aws::Vector& GetLendingFields() const{ return m_lendingFields; } /** *

An array of LendingField objects.

*/ inline bool LendingFieldsHasBeenSet() const { return m_lendingFieldsHasBeenSet; } /** *

An array of LendingField objects.

*/ inline void SetLendingFields(const Aws::Vector& value) { m_lendingFieldsHasBeenSet = true; m_lendingFields = value; } /** *

An array of LendingField objects.

*/ inline void SetLendingFields(Aws::Vector&& value) { m_lendingFieldsHasBeenSet = true; m_lendingFields = std::move(value); } /** *

An array of LendingField objects.

*/ inline LendingDocument& WithLendingFields(const Aws::Vector& value) { SetLendingFields(value); return *this;} /** *

An array of LendingField objects.

*/ inline LendingDocument& WithLendingFields(Aws::Vector&& value) { SetLendingFields(std::move(value)); return *this;} /** *

An array of LendingField objects.

*/ inline LendingDocument& AddLendingFields(const LendingField& value) { m_lendingFieldsHasBeenSet = true; m_lendingFields.push_back(value); return *this; } /** *

An array of LendingField objects.

*/ inline LendingDocument& AddLendingFields(LendingField&& value) { m_lendingFieldsHasBeenSet = true; m_lendingFields.push_back(std::move(value)); return *this; } /** *

A list of signatures detected in a lending document.

*/ inline const Aws::Vector& GetSignatureDetections() const{ return m_signatureDetections; } /** *

A list of signatures detected in a lending document.

*/ inline bool SignatureDetectionsHasBeenSet() const { return m_signatureDetectionsHasBeenSet; } /** *

A list of signatures detected in a lending document.

*/ inline void SetSignatureDetections(const Aws::Vector& value) { m_signatureDetectionsHasBeenSet = true; m_signatureDetections = value; } /** *

A list of signatures detected in a lending document.

*/ inline void SetSignatureDetections(Aws::Vector&& value) { m_signatureDetectionsHasBeenSet = true; m_signatureDetections = std::move(value); } /** *

A list of signatures detected in a lending document.

*/ inline LendingDocument& WithSignatureDetections(const Aws::Vector& value) { SetSignatureDetections(value); return *this;} /** *

A list of signatures detected in a lending document.

*/ inline LendingDocument& WithSignatureDetections(Aws::Vector&& value) { SetSignatureDetections(std::move(value)); return *this;} /** *

A list of signatures detected in a lending document.

*/ inline LendingDocument& AddSignatureDetections(const SignatureDetection& value) { m_signatureDetectionsHasBeenSet = true; m_signatureDetections.push_back(value); return *this; } /** *

A list of signatures detected in a lending document.

*/ inline LendingDocument& AddSignatureDetections(SignatureDetection&& value) { m_signatureDetectionsHasBeenSet = true; m_signatureDetections.push_back(std::move(value)); return *this; } private: Aws::Vector m_lendingFields; bool m_lendingFieldsHasBeenSet = false; Aws::Vector m_signatureDetections; bool m_signatureDetectionsHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws