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

        this.errors = new com.amazonaws.internal.SdkInternalList<ValidationError>(errors);
    }
<p>
The error codes and error messages.
</p>

@param errors
       The error codes and error messages.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ValidationWarning.java