public Event withUsername(String username) {
        setUsername(username);
        return this;
    }
<p>
A user name or role name of the requester that called the API in the event returned.
</p>

@param username
       A user name or role name of the requester that called the API in the event returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/Event.java