public ListGroupsFilters withNamePrefix(String namePrefix) {
        setNamePrefix(namePrefix);
        return this;
    }
<p>
Filters only groups with the provided name prefix.
</p>

@param namePrefix
       Filters only groups with the provided name prefix.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/ListGroupsFilters.java