public ListInstanceGroupsResult withInstanceGroups(java.util.Collection<InstanceGroup> instanceGroups) {
        setInstanceGroups(instanceGroups);
        return this;
    }
<p>
The list of instance groups for the cluster and given filters.
</p>

@param instanceGroups
       The list of instance groups for the cluster and given filters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/ListInstanceGroupsResult.java