java.lang.Object
com.amazonaws.services.gamelift.model.Event
All Implemented Interfaces:
Serializable, Cloneable

public class Event extends Object implements Serializable, Cloneable

Log entry describing an event involving an Amazon GameLift resource (such as a fleet).

See Also:
  • Constructor Details

    • Event

      public Event()
  • Method Details

    • 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:
    • getEventCode

      public String getEventCode()

      Type of event being logged.

      Returns:
      Type of event being logged.
      See Also:
    • 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:
    • setEventCode

      public void setEventCode(EventCode eventCode)

      Type of event being logged.

      Parameters:
      eventCode - Type of event being logged.
      See Also:
    • 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:
    • 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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Event clone()
      Overrides:
      clone in class Object