public DeleteDocumentVersionRequest withDeletePriorVersions(Boolean deletePriorVersions) {
        setDeletePriorVersions(deletePriorVersions);
        return this;
    }
<p>
Deletes all versions of a document prior to the current version.
</p>

@param deletePriorVersions
       Deletes all versions of a document prior to the current version.
@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/DeleteDocumentVersionRequest.java