/** * 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 { /** *

The structure that lists each document processed in an AnalyzeID * operation.

See Also:

AWS * API Reference

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

Denotes the placement of a document in the IdentityDocument list. The first * document is marked 1, the second 2 and so on.

*/ inline int GetDocumentIndex() const{ return m_documentIndex; } /** *

Denotes the placement of a document in the IdentityDocument list. The first * document is marked 1, the second 2 and so on.

*/ inline bool DocumentIndexHasBeenSet() const { return m_documentIndexHasBeenSet; } /** *

Denotes the placement of a document in the IdentityDocument list. The first * document is marked 1, the second 2 and so on.

*/ inline void SetDocumentIndex(int value) { m_documentIndexHasBeenSet = true; m_documentIndex = value; } /** *

Denotes the placement of a document in the IdentityDocument list. The first * document is marked 1, the second 2 and so on.

*/ inline IdentityDocument& WithDocumentIndex(int value) { SetDocumentIndex(value); return *this;} /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline const Aws::Vector& GetIdentityDocumentFields() const{ return m_identityDocumentFields; } /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline bool IdentityDocumentFieldsHasBeenSet() const { return m_identityDocumentFieldsHasBeenSet; } /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline void SetIdentityDocumentFields(const Aws::Vector& value) { m_identityDocumentFieldsHasBeenSet = true; m_identityDocumentFields = value; } /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline void SetIdentityDocumentFields(Aws::Vector&& value) { m_identityDocumentFieldsHasBeenSet = true; m_identityDocumentFields = std::move(value); } /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline IdentityDocument& WithIdentityDocumentFields(const Aws::Vector& value) { SetIdentityDocumentFields(value); return *this;} /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline IdentityDocument& WithIdentityDocumentFields(Aws::Vector&& value) { SetIdentityDocumentFields(std::move(value)); return *this;} /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline IdentityDocument& AddIdentityDocumentFields(const IdentityDocumentField& value) { m_identityDocumentFieldsHasBeenSet = true; m_identityDocumentFields.push_back(value); return *this; } /** *

The structure used to record information extracted from identity documents. * Contains both normalized field and value of the extracted text.

*/ inline IdentityDocument& AddIdentityDocumentFields(IdentityDocumentField&& value) { m_identityDocumentFieldsHasBeenSet = true; m_identityDocumentFields.push_back(std::move(value)); return *this; } /** *

Individual word recognition, as returned by document detection.

*/ inline const Aws::Vector& GetBlocks() const{ return m_blocks; } /** *

Individual word recognition, as returned by document detection.

*/ inline bool BlocksHasBeenSet() const { return m_blocksHasBeenSet; } /** *

Individual word recognition, as returned by document detection.

*/ inline void SetBlocks(const Aws::Vector& value) { m_blocksHasBeenSet = true; m_blocks = value; } /** *

Individual word recognition, as returned by document detection.

*/ inline void SetBlocks(Aws::Vector&& value) { m_blocksHasBeenSet = true; m_blocks = std::move(value); } /** *

Individual word recognition, as returned by document detection.

*/ inline IdentityDocument& WithBlocks(const Aws::Vector& value) { SetBlocks(value); return *this;} /** *

Individual word recognition, as returned by document detection.

*/ inline IdentityDocument& WithBlocks(Aws::Vector&& value) { SetBlocks(std::move(value)); return *this;} /** *

Individual word recognition, as returned by document detection.

*/ inline IdentityDocument& AddBlocks(const Block& value) { m_blocksHasBeenSet = true; m_blocks.push_back(value); return *this; } /** *

Individual word recognition, as returned by document detection.

*/ inline IdentityDocument& AddBlocks(Block&& value) { m_blocksHasBeenSet = true; m_blocks.push_back(std::move(value)); return *this; } private: int m_documentIndex; bool m_documentIndexHasBeenSet = false; Aws::Vector m_identityDocumentFields; bool m_identityDocumentFieldsHasBeenSet = false; Aws::Vector m_blocks; bool m_blocksHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws