Class DataEvent.Builder

    • Method Detail

      • eventName

        public DataEvent.CreatedAtStage eventName​(@NotNull
                                                  java.lang.String eventName)

        The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example updated-plan.

        The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example updated-plan.

        Specified by:
        eventName in interface DataEvent.EventNameStage
        Returns:
        Reference to this so that method calls can be chained together.
      • createdAt

        public DataEvent._FinalStage createdAt​(int createdAt)

        The time the event occurred as a UTC Unix timestamp

        The time the event occurred as a UTC Unix timestamp

        Specified by:
        createdAt in interface DataEvent.CreatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • metadata

        public DataEvent._FinalStage metadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)

        Optional metadata about the event.

        Specified by:
        metadata in interface DataEvent._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • email

        public DataEvent._FinalStage email​(java.lang.String email)

        An email address for your user. An email should only be used where your application uses email to uniquely identify users.

        Specified by:
        email in interface DataEvent._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • email

        public DataEvent._FinalStage email​(java.util.Optional<java.lang.String> email)

        An email address for your user. An email should only be used where your application uses email to uniquely identify users.

        Specified by:
        email in interface DataEvent._FinalStage
      • id

        public DataEvent._FinalStage id​(java.lang.String id)

        Your identifier for a lead or a user.

        Specified by:
        id in interface DataEvent._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.