public CreateRoleRequest withPath(String path) {
        setPath(path);
        return this;
    }
<p>
The path to the role. For more information about paths, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the <i>IAM
User Guide</i>.
</p>
<p>
This parameter is optional. If it is not included, it defaults to a slash (/).
</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 path
       The path to the role. For more information about paths, see <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the
       <i>IAM User Guide</i>.</p>
       <p>
       This parameter is optional. If it is not included, it defaults to a slash (/).
       </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/CreateRoleRequest.java