public class Event extends Object implements Serializable, Cloneable
Log entry describing an event involving an Amazon 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.EventCode
public String getEventCode()
Type of event being logged.
EventCode
public Event withEventCode(String eventCode)
Type of event being logged.
eventCode
- Type of event being logged.EventCode
public void setEventCode(EventCode eventCode)
Type of event being logged.
eventCode
- Type of event being logged.EventCode
public Event withEventCode(EventCode eventCode)
Type of event being logged.
eventCode
- Type of event being logged.EventCode
public 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 the Unix epoch (Unix time).
eventTime
- Time stamp indicating when this event occurred. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).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).
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).
eventTime
- Time stamp indicating when this event occurred. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.