public EvaluationDatasetMetricConfig withMetricNames(java.util.Collection<String> metricNames) {
        setMetricNames(metricNames);
        return this;
    }
<p>
The names of the metrics used. For automated model evaluation jobs valid values are
<code>"Builtin.Accuracy"</code>, <code>"Builtin.Robustness"</code>, and <code>"Builtin.Toxicity"</code>. In
human-based model evaluation jobs the array of strings must match the <code>name</code> parameter specified in
<code>HumanEvaluationCustomMetric</code>.
</p>

@param metricNames
       The names of the metrics used. For automated model evaluation jobs valid values are
       <code>"Builtin.Accuracy"</code>, <code>"Builtin.Robustness"</code>, and <code>"Builtin.Toxicity"</code>.
       In human-based model evaluation jobs the array of strings must match the <code>name</code> parameter
       specified in <code>HumanEvaluationCustomMetric</code>.
@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/EvaluationDatasetMetricConfig.java