public GetDetectorVersionResult withModelVersions(ModelVersion... modelVersions) {
        if (this.modelVersions == null) {
            setModelVersions(new java.util.ArrayList<ModelVersion>(modelVersions.length));
        }
        for (ModelVersion ele : modelVersions) {
            this.modelVersions.add(ele);
        }
        return this;
    }
<p>
The model versions included in the detector version.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setModelVersions(java.util.Collection)} or {@link #withModelVersions(java.util.Collection)} if you want
to override the existing values.
</p>

@param modelVersions
       The model versions included 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/GetDetectorVersionResult.java