public IamUser withUserName(String userName) {
        setUserName(userName);
        return this;
    }
<p>
The username of the IAM user who performed the action.
</p>

@param userName
       The username of the IAM user who performed the action.
@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/IamUser.java