public DescribeGroupsResult withGroups(java.util.Collection<GroupMetadata> groups) {
        setGroups(groups);
        return this;
    }
<p>
The list of groups.
</p>

@param groups
       The list of groups.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/DescribeGroupsResult.java