public Event withEventId(String eventId) {
        setEventId(eventId);
        return this;
    }
<p>
An ID associated with the event. If an event ID is not provided, Amazon Personalize generates a unique ID for the
event. An event ID is not used as an input to the model. Amazon Personalize uses the event ID to distinguish
unique events. Any subsequent events after the first with the same event ID are not used in model training.
</p>

@param eventId
       An ID associated with the event. If an event ID is not provided, Amazon Personalize generates a unique ID
       for the event. An event ID is not used as an input to the model. Amazon Personalize uses the event ID to
       distinguish unique events. Any subsequent events after the first with the same event ID are not used in
       model training.
@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/Event.java