public class Event extends Object implements Serializable, Cloneable
Log entry describing an event involving a GameLift resource (such as a fleet).
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getEventCode()
Type of event being logged.
|
String |
getEventId()
Unique identifier for a fleet event.
|
Date |
getEventTime()
Time stamp indicating when this event occurred.
|
String |
getMessage()
Additional information related to the event.
|
String |
getResourceId()
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withEventCode(EventCode eventCode)
Type of event being logged.
|
Event |
withEventCode(String eventCode)
Type of event being logged.
|
Event |
withEventId(String eventId)
Unique identifier for a fleet event.
|
Event |
withEventTime(Date eventTime)
Time stamp indicating when this event occurred.
|
Event |
withMessage(String message)
Additional information related to the event.
|
Event |
withResourceId(String resourceId)
Unique identifier for the resource, such as a fleet ID.
|
public void setEventId(String eventId)
Unique identifier for a fleet event.
eventId - Unique identifier for a fleet event.public String getEventId()
Unique identifier for a fleet event.
public Event withEventId(String eventId)
Unique identifier for a fleet event.
eventId - Unique identifier for a fleet event.public void setResourceId(String resourceId)
Unique identifier for the resource, such as a fleet ID.
resourceId - Unique identifier for the resource, such as a fleet ID.public String getResourceId()
Unique identifier for the resource, such as a fleet ID.
public Event withResourceId(String resourceId)
Unique identifier for the resource, such as a fleet ID.
resourceId - Unique identifier for the resource, such as a fleet ID.public void setEventCode(String eventCode)
Type of event being logged.
eventCode - Type of event being logged.EventCodepublic String getEventCode()
Type of event being logged.
EventCodepublic Event withEventCode(String eventCode)
Type of event being logged.
eventCode - Type of event being logged.EventCodepublic void setEventCode(EventCode eventCode)
Type of event being logged.
eventCode - Type of event being logged.EventCodepublic Event withEventCode(EventCode eventCode)
Type of event being logged.
eventCode - Type of event being logged.EventCodepublic void setMessage(String message)
Additional information related to the event.
message - Additional information related to the event.public String getMessage()
Additional information related to the event.
public Event withMessage(String message)
Additional information related to the event.
message - Additional information related to the event.public void setEventTime(Date eventTime)
Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since epoch.
eventTime - Time stamp indicating when this event occurred. Format is an
integer representing the number of seconds since epoch.public Date getEventTime()
Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since epoch.
public Event withEventTime(Date eventTime)
Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since epoch.
eventTime - Time stamp indicating when this event occurred. Format is an
integer representing the number of seconds since epoch.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.