Class Event
- All Implemented Interfaces:
Serializable
,Cloneable
Log entry describing an event involving an Amazon GameLift resource (such as a fleet).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Type of event being logged.Unique identifier for a fleet event.Time stamp indicating when this event occurred.Additional information related to the event.Unique identifier for the resource, such as a fleet ID.int
hashCode()
void
setEventCode
(EventCode eventCode) Type of event being logged.void
setEventCode
(String eventCode) Type of event being logged.void
setEventId
(String eventId) Unique identifier for a fleet event.void
setEventTime
(Date eventTime) Time stamp indicating when this event occurred.void
setMessage
(String message) Additional information related to the event.void
setResourceId
(String resourceId) Unique identifier for the resource, such as a fleet ID.toString()
Returns a string representation of this object; useful for testing and debugging.withEventCode
(EventCode eventCode) Type of event being logged.withEventCode
(String eventCode) Type of event being logged.withEventId
(String eventId) Unique identifier for a fleet event.withEventTime
(Date eventTime) Time stamp indicating when this event occurred.withMessage
(String message) Additional information related to the event.withResourceId
(String resourceId) Unique identifier for the resource, such as a fleet ID.
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setEventId
Unique identifier for a fleet event.
- Parameters:
eventId
- Unique identifier for a fleet event.
-
getEventId
Unique identifier for a fleet event.
- Returns:
- Unique identifier for a fleet event.
-
withEventId
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
Unique identifier for the resource, such as a fleet ID.
- Parameters:
resourceId
- Unique identifier for the resource, such as a fleet ID.
-
getResourceId
Unique identifier for the resource, such as a fleet ID.
- Returns:
- Unique identifier for the resource, such as a fleet ID.
-
withResourceId
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
Type of event being logged.
- Parameters:
eventCode
- Type of event being logged.- See Also:
-
getEventCode
Type of event being logged.
- Returns:
- Type of event being logged.
- See Also:
-
withEventCode
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
Type of event being logged.
- Parameters:
eventCode
- Type of event being logged.- See Also:
-
withEventCode
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
Additional information related to the event.
- Parameters:
message
- Additional information related to the event.
-
getMessage
Additional information related to the event.
- Returns:
- Additional information related to the event.
-
withMessage
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-