public void setMetricRegex(String metricRegex) {
        this.metricRegex = metricRegex;
    }
<p>
A regular expression for finding the metric in the training job logs.
</p>

@param metricRegex
       A regular expression for finding the metric in the training job logs.
aws-java-sdk-personalize/src/main/java/com/amazonaws/services/personalize/model/HPOObjective.java