public BatchGetReportGroupsResult withReportGroups(ReportGroup... reportGroups) {
        if (this.reportGroups == null) {
            setReportGroups(new java.util.ArrayList<ReportGroup>(reportGroups.length));
        }
        for (ReportGroup ele : reportGroups) {
            this.reportGroups.add(ele);
        }
        return this;
    }
<p>
The array of report groups returned by <code>BatchGetReportGroups</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReportGroups(java.util.Collection)} or {@link #withReportGroups(java.util.Collection)} if you want to
override the existing values.
</p>

@param reportGroups
       The array of report groups returned by <code>BatchGetReportGroups</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/BatchGetReportGroupsResult.java