public BatchDeleteDocumentRequest withDocumentIdList(String... documentIdList) {
        if (this.documentIdList == null) {
            setDocumentIdList(new java.util.ArrayList<String>(documentIdList.length));
        }
        for (String ele : documentIdList) {
            this.documentIdList.add(ele);
        }
        return this;
    }
<p>
One or more identifiers for documents to delete from the index.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocumentIdList(java.util.Collection)} or {@link #withDocumentIdList(java.util.Collection)} if you want
to override the existing values.
</p>

@param documentIdList
       One or more identifiers for documents to delete from the index.
@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/BatchDeleteDocumentRequest.java