public ValidationException withFields(ValidationExceptionField... fields) {
        if (this.fields == null) {
            setFields(new java.util.ArrayList<ValidationExceptionField>(fields.length));
        }
        for (ValidationExceptionField ele : fields) {
            this.fields.add(ele);
        }
        return this;
    }
<p>
The list of fields that are invalid.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFields(java.util.Collection)} or {@link #withFields(java.util.Collection)} if you want to override the
existing values.
</p>

@param fields
       The list of fields that are invalid.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bcmdataexports/src/main/java/com/amazonaws/services/bcmdataexports/model/ValidationException.java