public GetModelCustomizationJobResult withValidationMetrics(ValidatorMetric... validationMetrics) {
        if (this.validationMetrics == null) {
            setValidationMetrics(new java.util.ArrayList<ValidatorMetric>(validationMetrics.length));
        }
        for (ValidatorMetric ele : validationMetrics) {
            this.validationMetrics.add(ele);
        }
        return this;
    }
<p>
The loss metric for each validator that you provided in the createjob request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setValidationMetrics(java.util.Collection)} or {@link #withValidationMetrics(java.util.Collection)} if
you want to override the existing values.
</p>

@param validationMetrics
       The loss metric for each validator that you provided in the createjob request.
@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/GetModelCustomizationJobResult.java