public EvaluationInferenceConfig withModels(EvaluationModelConfig... models) {
        if (this.models == null) {
            setModels(new java.util.ArrayList<EvaluationModelConfig>(models.length));
        }
        for (EvaluationModelConfig ele : models) {
            this.models.add(ele);
        }
        return this;
    }
<p>
Used to specify the models.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setModels(java.util.Collection)} or {@link #withModels(java.util.Collection)} if you want to override the
existing values.
</p>

@param models
       Used to specify the models.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrock/src/main/java/com/amazonaws/services/bedrock/model/EvaluationInferenceConfig.java