public SearchInsightsFilters withStatuses(InsightStatus... statuses) {
        java.util.ArrayList<String> statusesCopy = new java.util.ArrayList<String>(statuses.length);
        for (InsightStatus value : statuses) {
            statusesCopy.add(value.toString());
        }
        if (getStatuses() == null) {
            setStatuses(statusesCopy);
        } else {
            getStatuses().addAll(statusesCopy);
        }
        return this;
    }
<p>
An array of status values used to search for insights.
</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