public BatchGetDocumentStatusResult withErrors(BatchGetDocumentStatusResponseError... errors) {
        if (this.errors == null) {
            setErrors(new java.util.ArrayList<BatchGetDocumentStatusResponseError>(errors.length));
        }
        for (BatchGetDocumentStatusResponseError ele : errors) {
            this.errors.add(ele);
        }
        return this;
    }
<p>
A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and
the reason that the status couldn't be found.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the
existing values.
</p>

@param errors
       A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the
       document and the reason that the status couldn't be found.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/BatchGetDocumentStatusResult.java