public GetUserRequest withUserName(String userName) {
        setUserName(userName);
        return this;
    }
<p>
The name of the user to get information about.
</p>
<p>
This parameter is optional. If it is not included, it defaults to the user making the request. This parameter
allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the
following characters: _+=,.@-
</p>

@param userName
       The name of the user to get information about.</p>
       <p>
       This parameter is optional. If it is not included, it defaults to the user making the request. This
       parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
       characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include
       any of the following characters: _+=,.@-
@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/GetUserRequest.java