public BatchPutMetricsResult withErrors(java.util.Collection<BatchPutMetricsError> errors) {
        setErrors(errors);
        return this;
    }
<p>
Lists any errors that occur when inserting metric data.
</p>

@param errors
       Lists any errors that occur when inserting metric data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemakermetrics/src/main/java/com/amazonaws/services/sagemakermetrics/model/BatchPutMetricsResult.java