Class Event

    • Constructor Detail

      • Event

        public Event()
    • Method Detail

      • setEventId

        public void setEventId​(String eventId)

        Unique identifier for a fleet event.

        Parameters:
        eventId - Unique identifier for a fleet event.
      • getEventId

        public String getEventId()

        Unique identifier for a fleet event.

        Returns:
        Unique identifier for a fleet event.
      • withEventId

        public Event withEventId​(String eventId)

        Unique identifier for a fleet event.

        Parameters:
        eventId - Unique identifier for a fleet event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResourceId

        public void setResourceId​(String resourceId)

        Unique identifier for the resource, such as a fleet ID.

        Parameters:
        resourceId - Unique identifier for the resource, such as a fleet ID.
      • getResourceId

        public String getResourceId()

        Unique identifier for the resource, such as a fleet ID.

        Returns:
        Unique identifier for the resource, such as a fleet ID.
      • withResourceId

        public Event withResourceId​(String resourceId)

        Unique identifier for the resource, such as a fleet ID.

        Parameters:
        resourceId - Unique identifier for the resource, such as a fleet ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEventCode

        public void setEventCode​(String eventCode)

        Type of event being logged.

        Parameters:
        eventCode - Type of event being logged.
        See Also:
        EventCode
      • getEventCode

        public String getEventCode()

        Type of event being logged.

        Returns:
        Type of event being logged.
        See Also:
        EventCode
      • withEventCode

        public Event withEventCode​(String eventCode)

        Type of event being logged.

        Parameters:
        eventCode - Type of event being logged.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EventCode
      • setEventCode

        public void setEventCode​(EventCode eventCode)

        Type of event being logged.

        Parameters:
        eventCode - Type of event being logged.
        See Also:
        EventCode
      • withEventCode

        public Event withEventCode​(EventCode eventCode)

        Type of event being logged.

        Parameters:
        eventCode - Type of event being logged.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EventCode
      • setMessage

        public void setMessage​(String message)

        Additional information related to the event.

        Parameters:
        message - Additional information related to the event.
      • getMessage

        public String getMessage()

        Additional information related to the event.

        Returns:
        Additional information related to the event.
      • withMessage

        public Event withMessage​(String message)

        Additional information related to the event.

        Parameters:
        message - Additional information related to the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEventTime

        public void setEventTime​(Date eventTime)

        Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

        Parameters:
        eventTime - Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
      • getEventTime

        public Date getEventTime()

        Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

        Returns:
        Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
      • withEventTime

        public Event withEventTime​(Date eventTime)

        Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

        Parameters:
        eventTime - Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
        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