public CreateDetectorVersionRequest withExternalModelEndpoints(String... externalModelEndpoints) {
        if (this.externalModelEndpoints == null) {
            setExternalModelEndpoints(new java.util.ArrayList<String>(externalModelEndpoints.length));
        }
        for (String ele : externalModelEndpoints) {
            this.externalModelEndpoints.add(ele);
        }
        return this;
    }
<p>
The Amazon Sagemaker model endpoints to include in the detector version.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExternalModelEndpoints(java.util.Collection)} or
{@link #withExternalModelEndpoints(java.util.Collection)} if you want to override the existing values.
</p>

@param externalModelEndpoints
       The Amazon Sagemaker model endpoints 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