/** * 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 normalized key-value pairs returned by AnalyzeDocument, including * the document type, detected text, and geometry.

See Also:

AWS * API Reference

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

The type of the lending document.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the lending document.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the lending document.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the lending document.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the lending document.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the lending document.

*/ inline LendingField& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the lending document.

*/ inline LendingField& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the lending document.

*/ inline LendingField& WithType(const char* value) { SetType(value); return *this;} inline const LendingDetection& GetKeyDetection() const{ return m_keyDetection; } inline bool KeyDetectionHasBeenSet() const { return m_keyDetectionHasBeenSet; } inline void SetKeyDetection(const LendingDetection& value) { m_keyDetectionHasBeenSet = true; m_keyDetection = value; } inline void SetKeyDetection(LendingDetection&& value) { m_keyDetectionHasBeenSet = true; m_keyDetection = std::move(value); } inline LendingField& WithKeyDetection(const LendingDetection& value) { SetKeyDetection(value); return *this;} inline LendingField& WithKeyDetection(LendingDetection&& value) { SetKeyDetection(std::move(value)); return *this;} /** *

An array of LendingDetection objects.

*/ inline const Aws::Vector& GetValueDetections() const{ return m_valueDetections; } /** *

An array of LendingDetection objects.

*/ inline bool ValueDetectionsHasBeenSet() const { return m_valueDetectionsHasBeenSet; } /** *

An array of LendingDetection objects.

*/ inline void SetValueDetections(const Aws::Vector& value) { m_valueDetectionsHasBeenSet = true; m_valueDetections = value; } /** *

An array of LendingDetection objects.

*/ inline void SetValueDetections(Aws::Vector&& value) { m_valueDetectionsHasBeenSet = true; m_valueDetections = std::move(value); } /** *

An array of LendingDetection objects.

*/ inline LendingField& WithValueDetections(const Aws::Vector& value) { SetValueDetections(value); return *this;} /** *

An array of LendingDetection objects.

*/ inline LendingField& WithValueDetections(Aws::Vector&& value) { SetValueDetections(std::move(value)); return *this;} /** *

An array of LendingDetection objects.

*/ inline LendingField& AddValueDetections(const LendingDetection& value) { m_valueDetectionsHasBeenSet = true; m_valueDetections.push_back(value); return *this; } /** *

An array of LendingDetection objects.

*/ inline LendingField& AddValueDetections(LendingDetection&& value) { m_valueDetectionsHasBeenSet = true; m_valueDetections.push_back(std::move(value)); return *this; } private: Aws::String m_type; bool m_typeHasBeenSet = false; LendingDetection m_keyDetection; bool m_keyDetectionHasBeenSet = false; Aws::Vector m_valueDetections; bool m_valueDetectionsHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws