/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.textract.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The structure that lists each document processed in an AnalyzeID operation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IdentityDocument implements Serializable, Cloneable, StructuredPojo { /** ** Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the second 2 * and so on. *
*/ private Integer documentIndex; /** ** The structure used to record information extracted from identity documents. Contains both normalized field and * value of the extracted text. *
*/ private java.util.List* Individual word recognition, as returned by document detection. *
*/ private java.util.List* Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the second 2 * and so on. *
* * @param documentIndex * Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the * second 2 and so on. */ public void setDocumentIndex(Integer documentIndex) { this.documentIndex = documentIndex; } /** ** Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the second 2 * and so on. *
* * @return Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the * second 2 and so on. */ public Integer getDocumentIndex() { return this.documentIndex; } /** ** Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the second 2 * and so on. *
* * @param documentIndex * Denotes the placement of a document in the IdentityDocument list. The first document is marked 1, the * second 2 and so on. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityDocument withDocumentIndex(Integer documentIndex) { setDocumentIndex(documentIndex); return this; } /** ** The structure used to record information extracted from identity documents. Contains both normalized field and * value of the extracted text. *
* * @return The structure used to record information extracted from identity documents. Contains both normalized * field and value of the extracted text. */ public java.util.List* The structure used to record information extracted from identity documents. Contains both normalized field and * value of the extracted text. *
* * @param identityDocumentFields * The structure used to record information extracted from identity documents. Contains both normalized field * and value of the extracted text. */ public void setIdentityDocumentFields(java.util.Collection* The structure used to record information extracted from identity documents. Contains both normalized field and * value of the extracted text. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIdentityDocumentFields(java.util.Collection)} or * {@link #withIdentityDocumentFields(java.util.Collection)} if you want to override the existing values. *
* * @param identityDocumentFields * The structure used to record information extracted from identity documents. Contains both normalized field * and value of the extracted text. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityDocument withIdentityDocumentFields(IdentityDocumentField... identityDocumentFields) { if (this.identityDocumentFields == null) { setIdentityDocumentFields(new java.util.ArrayList* The structure used to record information extracted from identity documents. Contains both normalized field and * value of the extracted text. *
* * @param identityDocumentFields * The structure used to record information extracted from identity documents. Contains both normalized field * and value of the extracted text. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityDocument withIdentityDocumentFields(java.util.Collection* Individual word recognition, as returned by document detection. *
* * @return Individual word recognition, as returned by document detection. */ public java.util.List* Individual word recognition, as returned by document detection. *
* * @param blocks * Individual word recognition, as returned by document detection. */ public void setBlocks(java.util.Collection* Individual word recognition, as returned by document detection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBlocks(java.util.Collection)} or {@link #withBlocks(java.util.Collection)} if you want to override the * existing values. *
* * @param blocks * Individual word recognition, as returned by document detection. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityDocument withBlocks(Block... blocks) { if (this.blocks == null) { setBlocks(new java.util.ArrayList* Individual word recognition, as returned by document detection. *
* * @param blocks * Individual word recognition, as returned by document detection. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityDocument withBlocks(java.util.Collection