public ListDocumentsResult withDocumentDetailList(DocumentDetails... documentDetailList) {
        if (this.documentDetailList == null) {
            setDocumentDetailList(new java.util.ArrayList<DocumentDetails>(documentDetailList.length));
        }
        for (DocumentDetails ele : documentDetailList) {
            this.documentDetailList.add(ele);
        }
        return this;
    }
<p>
A list of document details.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocumentDetailList(java.util.Collection)} or {@link #withDocumentDetailList(java.util.Collection)} if
you want to override the existing values.
</p>

@param documentDetailList
       A list of document details.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/ListDocumentsResult.java