public PutEventsRequest withUserId(String userId) {
        setUserId(userId);
        return this;
    }
<p>
The user associated with the event.
</p>

@param userId
       The user associated with the event.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-personalizeevents/src/main/java/com/amazonaws/services/personalizeevents/model/PutEventsRequest.java