public ValidationException withFields(java.util.Collection<ValidationExceptionField> fields) {
        setFields(fields);
        return this;
    }
<p>
The fields that caused the error, if applicable.
</p>

@param fields
       The fields that caused the error, if applicable.
@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/ValidationException.java