public TitleAggregation withTitles(java.util.Collection<StringFilter> titles) {
        setTitles(titles);
        return this;
    }
<p>
The finding titles to aggregate on.
</p>

@param titles
       The finding titles to aggregate on.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/TitleAggregation.java