Interface PutEventsRequest.Builder

    • Method Detail

      • trackingId

        PutEventsRequest.Builder trackingId​(String trackingId)

        The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.

        Parameters:
        trackingId - The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userId

        PutEventsRequest.Builder userId​(String userId)

        The user associated with the event.

        Parameters:
        userId - The user associated with the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionId

        PutEventsRequest.Builder sessionId​(String sessionId)

        The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording item interaction events.

        Parameters:
        sessionId - The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording item interaction events.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventList

        PutEventsRequest.Builder eventList​(Collection<Event> eventList)

        A list of event data from the session.

        Parameters:
        eventList - A list of event data from the session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventList

        PutEventsRequest.Builder eventList​(Event... eventList)

        A list of event data from the session.

        Parameters:
        eventList - A list of event data from the session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventList

        PutEventsRequest.Builder eventList​(Consumer<Event.Builder>... eventList)

        A list of event data from the session.

        This is a convenience method that creates an instance of the Event.Builder avoiding the need to create one manually via Event.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #eventList(List).

        Parameters:
        eventList - a consumer that will call methods on Event.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #eventList(java.util.Collection)