public DescribeDocumentVersionsResult withDocumentVersions(DocumentVersionMetadata... documentVersions) {
        if (this.documentVersions == null) {
            setDocumentVersions(new java.util.ArrayList<DocumentVersionMetadata>(documentVersions.length));
        }
        for (DocumentVersionMetadata ele : documentVersions) {
            this.documentVersions.add(ele);
        }
        return this;
    }
<p>
The document versions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocumentVersions(java.util.Collection)} or {@link #withDocumentVersions(java.util.Collection)} if you
want to override the existing values.
</p>

@param documentVersions
       The document versions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/DescribeDocumentVersionsResult.java