public TitleAggregation withTitles(StringFilter... titles) {
        if (this.titles == null) {
            setTitles(new java.util.ArrayList<StringFilter>(titles.length));
        }
        for (StringFilter ele : titles) {
            this.titles.add(ele);
        }
        return this;
    }
<p>
The finding titles to aggregate on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTitles(java.util.Collection)} or {@link #withTitles(java.util.Collection)} if you want to override the
existing values.
</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