Class Event

    • Constructor Detail

      • Event

        public Event()
    • Method Detail

      • setSourceIdentifier

        public void setSourceIdentifier​(String sourceIdentifier)

        The identifier for the source of the event.

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

        public String getSourceIdentifier()

        The identifier for the source of the event.

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

        public Event withSourceIdentifier​(String sourceIdentifier)

        The identifier for the source of the event.

        Parameters:
        sourceIdentifier - 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)

        The source type for this event.

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

        public String getSourceType()

        The source type for this event.

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

        public Event withSourceType​(String sourceType)

        The source type for this event.

        Parameters:
        sourceType - 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)

        The source type for this event.

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

        public Event withSourceType​(SourceType sourceType)

        The source type for this event.

        Parameters:
        sourceType - 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)

        The text of this event.

        Parameters:
        message - The text of this event.
      • getMessage

        public String getMessage()

        The text of this event.

        Returns:
        The text of this event.
      • withMessage

        public Event withMessage​(String message)

        The text of this event.

        Parameters:
        message - 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()

        A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

        Returns:
        A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

      • setEventCategories

        public void setEventCategories​(Collection<String> eventCategories)

        A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

        Parameters:
        eventCategories - A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

      • withEventCategories

        public Event withEventCategories​(String... eventCategories)

        A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

        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 - A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withEventCategories

        public Event withEventCategories​(Collection<String> eventCategories)

        A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

        Parameters:
        eventCategories - A list of the event categories.

        Values: Configuration, Management, Monitoring, Security

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSeverity

        public void setSeverity​(String severity)

        The severity of the event.

        Values: ERROR, INFO

        Parameters:
        severity - The severity of the event.

        Values: ERROR, INFO

      • getSeverity

        public String getSeverity()

        The severity of the event.

        Values: ERROR, INFO

        Returns:
        The severity of the event.

        Values: ERROR, INFO

      • withSeverity

        public Event withSeverity​(String severity)

        The severity of the event.

        Values: ERROR, INFO

        Parameters:
        severity - The severity of the event.

        Values: ERROR, INFO

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDate

        public void setDate​(Date dateValue)

        The date and time of the event.

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

        public Date getDate()

        The date and time of the event.

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

        public Event withDate​(Date dateValue)

        The date and time of the event.

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

        public void setEventId​(String eventId)

        The identifier of the event.

        Parameters:
        eventId - The identifier of the event.
      • getEventId

        public String getEventId()

        The identifier of the event.

        Returns:
        The identifier of the event.
      • withEventId

        public Event withEventId​(String eventId)

        The identifier of the event.

        Parameters:
        eventId - The identifier 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