public CreateDetectorVersionRequest withModelVersions(java.util.Collection<ModelVersion> modelVersions) {
        setModelVersions(modelVersions);
        return this;
    }
<p>
The model versions to include in the detector version.
</p>

@param modelVersions
       The model versions to include in the detector version.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/CreateDetectorVersionRequest.java