public MetadataUpdates withRevertToVersionId(String revertToVersionId) {
        setRevertToVersionId(revertToVersionId);
        return this;
    }
<p>
Specifies the previous image set version ID to revert the current image set back to.
</p>
<note>
<p>
You must provide either <code>revertToVersionId</code> or <code>DICOMUpdates</code> in your request. A
<code>ValidationException</code> error is thrown if both parameters are provided at the same time.
</p>
</note>

@param revertToVersionId
       Specifies the previous image set version ID to revert the current image set back to.</p> <note>
       <p>
       You must provide either <code>revertToVersionId</code> or <code>DICOMUpdates</code> in your request. A
       <code>ValidationException</code> error is thrown if both parameters are provided at the same time.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-medicalimaging/src/main/java/com/amazonaws/services/medicalimaging/model/MetadataUpdates.java