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()booleanType 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.inthashCode()voidsetEventCode(EventCode eventCode) Type of event being logged.voidsetEventCode(String eventCode) Type of event being logged.voidsetEventId(String eventId) Unique identifier for a fleet event.voidsetEventTime(Date eventTime) Time stamp indicating when this event occurred.voidsetMessage(String message) Additional information related to the event.voidsetResourceId(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
-
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
-
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
-
setEventCode
Type of event being logged.
- Parameters:
eventCode- Type of event being logged.- See Also:
-
withEventCode
-
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
-
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
-
equals
-
hashCode
-
clone
-