public GetEC2InstanceRecommendationsResult withErrors(java.util.Collection<GetRecommendationError> errors) {
        setErrors(errors);
        return this;
    }
<p>
An array of objects that describe errors of the request.
</p>
<p>
For example, an error is returned if you request recommendations for an instance of an unsupported instance
family.
</p>

@param errors
       An array of objects that describe errors of the request.</p>
       <p>
       For example, an error is returned if you request recommendations for an instance of an unsupported
       instance family.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/GetEC2InstanceRecommendationsResult.java