public InvalidParameterException withFields(java.util.Collection<ValidationExceptionField> fields) {
        setFields(fields);
        return this;
    }
<p>
Fields that caused the exception.
</p>

@param fields
       Fields that caused the exception.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/InvalidParameterException.java