public SearchInsightsFilters withStatuses(String... statuses) {
        if (this.statuses == null) {
            setStatuses(new java.util.ArrayList<String>(statuses.length));
        }
        for (String ele : statuses) {
            this.statuses.add(ele);
        }
        return this;
    }
<p>
An array of status values used to search for insights.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStatuses(java.util.Collection)} or {@link #withStatuses(java.util.Collection)} if you want to override
the existing values.
</p>

@param statuses
       An array of status values used to search for insights.
@return Returns a reference to this object so that method calls can be chained together.
@see InsightStatus
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/SearchInsightsFilters.java