Class Event
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.Event
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Event extends Object implements Serializable, Cloneable
Log entry describing an event involving an Amazon GameLift resource (such as a fleet).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setEventId
public void setEventId(String eventId)
Unique identifier for a fleet event.
- Parameters:
eventId
- Unique identifier for a fleet event.
-
getEventId
public String getEventId()
Unique identifier for a fleet event.
- Returns:
- Unique identifier for a fleet event.
-
withEventId
public Event withEventId(String eventId)
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
public void setResourceId(String resourceId)
Unique identifier for the resource, such as a fleet ID.
- Parameters:
resourceId
- Unique identifier for the resource, such as a fleet ID.
-
getResourceId
public String getResourceId()
Unique identifier for the resource, such as a fleet ID.
- Returns:
- Unique identifier for the resource, such as a fleet ID.
-
withResourceId
public Event withResourceId(String resourceId)
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
public void setEventCode(String eventCode)
Type of event being logged.
- Parameters:
eventCode
- Type of event being logged.- See Also:
EventCode
-
getEventCode
public String getEventCode()
Type of event being logged.
- Returns:
- Type of event being logged.
- See Also:
EventCode
-
withEventCode
public Event withEventCode(String eventCode)
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:
EventCode
-
setEventCode
public void setEventCode(EventCode eventCode)
Type of event being logged.
- Parameters:
eventCode
- Type of event being logged.- See Also:
EventCode
-
withEventCode
public Event withEventCode(EventCode eventCode)
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:
EventCode
-
setMessage
public void setMessage(String message)
Additional information related to the event.
- Parameters:
message
- Additional information related to the event.
-
getMessage
public String getMessage()
Additional information related to the event.
- Returns:
- Additional information related to the event.
-
withMessage
public Event withMessage(String message)
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
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).
- 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
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).
- Returns:
- Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
-
withEventTime
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).
- 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-