public SessionIssuer withUserName(String userName) {
        setUserName(userName);
        return this;
    }
<p>
The name or alias of the user or role that issued the session. This value is null if the credentials were
obtained from a root account that doesn't have an alias.
</p>

@param userName
       The name or alias of the user or role that issued the session. This value is null if the credentials were
       obtained from a root account that doesn't have an alias.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/SessionIssuer.java