public void setErrors(java.util.Collection<BatchPutMetricsError> errors) {
        if (errors == null) {
            this.errors = null;
            return;
        }

        this.errors = new java.util.ArrayList<BatchPutMetricsError>(errors);
    }
<p>
Lists any errors that occur when inserting metric data.
</p>

@param errors
       Lists any errors that occur when inserting metric data.
aws-java-sdk-sagemakermetrics/src/main/java/com/amazonaws/services/sagemakermetrics/model/BatchPutMetricsResult.java