Class Event

    • Constructor Detail

      • Event

        public Event()
    • Method Detail

      • setSourceIdentifier

        public void setSourceIdentifier​(String sourceIdentifier)

        Provides the identifier for the source of the event.

        Parameters:
        sourceIdentifier - Provides the identifier for the source of the event.
      • getSourceIdentifier

        public String getSourceIdentifier()

        Provides the identifier for the source of the event.

        Returns:
        Provides the identifier for the source of the event.
      • withSourceIdentifier

        public Event withSourceIdentifier​(String sourceIdentifier)

        Provides the identifier for the source of the event.

        Parameters:
        sourceIdentifier - Provides the identifier for the source of the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSourceType

        public void setSourceType​(String sourceType)

        Specifies the source type for this event.

        Parameters:
        sourceType - Specifies the source type for this event.
        See Also:
        SourceType
      • getSourceType

        public String getSourceType()

        Specifies the source type for this event.

        Returns:
        Specifies the source type for this event.
        See Also:
        SourceType
      • withSourceType

        public Event withSourceType​(String sourceType)

        Specifies the source type for this event.

        Parameters:
        sourceType - Specifies the source type for this event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SourceType
      • setSourceType

        public void setSourceType​(SourceType sourceType)

        Specifies the source type for this event.

        Parameters:
        sourceType - Specifies the source type for this event.
        See Also:
        SourceType
      • withSourceType

        public Event withSourceType​(SourceType sourceType)

        Specifies the source type for this event.

        Parameters:
        sourceType - Specifies the source type for this event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SourceType
      • setMessage

        public void setMessage​(String message)

        Provides the text of this event.

        Parameters:
        message - Provides the text of this event.
      • getMessage

        public String getMessage()

        Provides the text of this event.

        Returns:
        Provides the text of this event.
      • withMessage

        public Event withMessage​(String message)

        Provides the text of this event.

        Parameters:
        message - Provides the text of this event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getEventCategories

        public List<String> getEventCategories()

        Specifies the category for the event.

        Returns:
        Specifies the category for the event.
      • setEventCategories

        public void setEventCategories​(Collection<String> eventCategories)

        Specifies the category for the event.

        Parameters:
        eventCategories - Specifies the category for the event.
      • withEventCategories

        public Event withEventCategories​(String... eventCategories)

        Specifies the category for the event.

        NOTE: This method appends the values to the existing list (if any). Use setEventCategories(java.util.Collection) or withEventCategories(java.util.Collection) if you want to override the existing values.

        Parameters:
        eventCategories - Specifies the category for the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withEventCategories

        public Event withEventCategories​(Collection<String> eventCategories)

        Specifies the category for the event.

        Parameters:
        eventCategories - Specifies the category for the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDate

        public void setDate​(Date dateValue)

        Specifies the date and time of the event.

        Parameters:
        dateValue - Specifies the date and time of the event.
      • getDate

        public Date getDate()

        Specifies the date and time of the event.

        Returns:
        Specifies the date and time of the event.
      • withDate

        public Event withDate​(Date dateValue)

        Specifies the date and time of the event.

        Parameters:
        dateValue - Specifies the date and time of the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object