public ListPackageGroupsRequest withPrefix(String prefix) {
        setPrefix(prefix);
        return this;
    }
<p>
A prefix for which to search package groups. When included, <code>ListPackageGroups</code> will return only
package groups with patterns that match the prefix.
</p>

@param prefix
       A prefix for which to search package groups. When included, <code>ListPackageGroups</code> will return
       only package groups with patterns that match the prefix.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/ListPackageGroupsRequest.java