public ListScheduleGroupsResult withScheduleGroups(ScheduleGroupSummary... scheduleGroups) {
        if (this.scheduleGroups == null) {
            setScheduleGroups(new java.util.ArrayList<ScheduleGroupSummary>(scheduleGroups.length));
        }
        for (ScheduleGroupSummary ele : scheduleGroups) {
            this.scheduleGroups.add(ele);
        }
        return this;
    }
<p>
The schedule groups that match the specified criteria.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setScheduleGroups(java.util.Collection)} or {@link #withScheduleGroups(java.util.Collection)} if you want
to override the existing values.
</p>

@param scheduleGroups
       The schedule groups that match the specified criteria.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-scheduler/src/main/java/com/amazonaws/services/scheduler/model/ListScheduleGroupsResult.java