public BatchGetDocumentStatusResult withDocumentStatusList(Status... documentStatusList) {
        if (this.documentStatusList == null) {
            setDocumentStatusList(new java.util.ArrayList<Status>(documentStatusList.length));
        }
        for (Status ele : documentStatusList) {
            this.documentStatusList.add(ele);
        }
        return this;
    }
<p>
The status of documents. The status indicates if the document is waiting to be indexed, is in the process of
indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the
reason why.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocumentStatusList(java.util.Collection)} or {@link #withDocumentStatusList(java.util.Collection)} if
you want to override the existing values.
</p>

@param documentStatusList
       The status of documents. The status indicates if the document is waiting to be indexed, is in the process
       of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status
       provides the reason why.
@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