public CalculateRouteMatrixSummary withErrorCount(Integer errorCount) {
        setErrorCount(errorCount);
        return this;
    }
<p>
The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.
</p>

@param errorCount
       The count of error results in the route matrix. If this number is 0, all routes were calculated
       successfully.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/CalculateRouteMatrixSummary.java