public class Event
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Log entry describing an event involving an Amazon GameLift resource (such as a fleet).
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
eventCode
Type of event being logged.
|
private java.lang.String |
eventId
Unique identifier for a fleet event.
|
private java.util.Date |
eventTime
Time stamp indicating when this event occurred.
|
private java.lang.String |
message
Additional information related to the event.
|
private java.lang.String |
resourceId
Unique identifier for the resource, such as a fleet ID.
|
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEventCode()
Type of event being logged.
|
java.lang.String |
getEventId()
Unique identifier for a fleet event.
|
java.util.Date |
getEventTime()
Time stamp indicating when this event occurred.
|
java.lang.String |
getMessage()
Additional information related to the event.
|
java.lang.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(java.lang.String eventCode)
Type of event being logged.
|
void |
setEventId(java.lang.String eventId)
Unique identifier for a fleet event.
|
void |
setEventTime(java.util.Date eventTime)
Time stamp indicating when this event occurred.
|
void |
setMessage(java.lang.String message)
Additional information related to the event.
|
void |
setResourceId(java.lang.String resourceId)
Unique identifier for the resource, such as a fleet ID.
|
java.lang.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(java.lang.String eventCode)
Type of event being logged.
|
Event |
withEventId(java.lang.String eventId)
Unique identifier for a fleet event.
|
Event |
withEventTime(java.util.Date eventTime)
Time stamp indicating when this event occurred.
|
Event |
withMessage(java.lang.String message)
Additional information related to the event.
|
Event |
withResourceId(java.lang.String resourceId)
Unique identifier for the resource, such as a fleet ID.
|
private java.lang.String eventId
Unique identifier for a fleet event.
private java.lang.String resourceId
Unique identifier for the resource, such as a fleet ID.
private java.lang.String eventCode
Type of event being logged.
private java.lang.String message
Additional information related to the event.
private java.util.Date eventTime
Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
public void setEventId(java.lang.String eventId)
Unique identifier for a fleet event.
eventId
- Unique identifier for a fleet event.public java.lang.String getEventId()
Unique identifier for a fleet event.
public Event withEventId(java.lang.String eventId)
Unique identifier for a fleet event.
eventId
- Unique identifier for a fleet event.public void setResourceId(java.lang.String resourceId)
Unique identifier for the resource, such as a fleet ID.
resourceId
- Unique identifier for the resource, such as a fleet ID.public java.lang.String getResourceId()
Unique identifier for the resource, such as a fleet ID.
public Event withResourceId(java.lang.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(java.lang.String eventCode)
Type of event being logged.
eventCode
- Type of event being logged.EventCode
public java.lang.String getEventCode()
Type of event being logged.
EventCode
public Event withEventCode(java.lang.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(java.lang.String message)
Additional information related to the event.
message
- Additional information related to the event.public java.lang.String getMessage()
Additional information related to the event.
public Event withMessage(java.lang.String message)
Additional information related to the event.
message
- Additional information related to the event.public void setEventTime(java.util.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 java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Event clone()
clone
in class java.lang.Object