public BatchCreateDelegationByAssessmentResult withErrors(BatchCreateDelegationByAssessmentError... errors) {
        if (this.errors == null) {
            setErrors(new java.util.ArrayList<BatchCreateDelegationByAssessmentError>(errors.length));
        }
        for (BatchCreateDelegationByAssessmentError ele : errors) {
            this.errors.add(ele);
        }
        return this;
    }
<p>
A list of errors that the <code>BatchCreateDelegationByAssessment</code> API returned.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the
existing values.
</p>

@param errors
       A list of errors that the <code>BatchCreateDelegationByAssessment</code> API returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-auditmanager/src/main/java/com/amazonaws/services/auditmanager/model/BatchCreateDelegationByAssessmentResult.java