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 Eventclone()booleanequals(Object obj)StringgetEventCode()Type of event being logged.StringgetEventId()Unique identifier for a fleet event.DategetEventTime()Time stamp indicating when this event occurred.StringgetMessage()Additional information related to the event.StringgetResourceId()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.StringtoString()Returns a string representation of this object; useful for testing and debugging.EventwithEventCode(EventCode eventCode)Type of event being logged.EventwithEventCode(String eventCode)Type of event being logged.EventwithEventId(String eventId)Unique identifier for a fleet event.EventwithEventTime(Date eventTime)Time stamp indicating when this event occurred.EventwithMessage(String message)Additional information related to the event.EventwithResourceId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-