public ListEntitiesForPolicyRequest withPathPrefix(String pathPrefix) {
        setPathPrefix(pathPrefix);
        return this;
    }
<p>
The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a
slash (/), listing all entities.
</p>
<p>
This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward
slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL
character (<code>\u007F</code>), including most punctuation characters, digits, and upper and lowercased letters.
</p>

@param pathPrefix
       The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults
       to a slash (/), listing all entities.</p>
       <p>
       This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string
       of characters consisting of either a forward slash (/) by itself or a string that must begin and end with
       forward slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through
       the DEL character (<code>\u007F</code>), including most punctuation characters, digits, and upper and
       lowercased letters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/ListEntitiesForPolicyRequest.java