public ListDocumentVersionsResult withDocumentVersions(DocumentVersionInfo... documentVersions) {
        if (this.documentVersions == null) {
            setDocumentVersions(new com.amazonaws.internal.SdkInternalList<DocumentVersionInfo>(documentVersions.length));
        }
        for (DocumentVersionInfo 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ListDocumentVersionsResult.java