public ValidationException withFields(java.util.Collection<ValidationExceptionDetail> fields) {
        setFields(fields);
        return this;
    }
<p>
The list of fields that are invalid.
</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-costoptimizationhub/src/main/java/com/amazonaws/services/costoptimizationhub/model/ValidationException.java