Package com.amazonaws.services.ecs.model
Class ServiceEvent
- java.lang.Object
-
- com.amazonaws.services.ecs.model.ServiceEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ServiceEvent extends Object implements Serializable, Cloneable
Details on an event associated with a service.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceEvent
clone()
boolean
equals(Object obj)
Date
getCreatedAt()
The Unix time in seconds and milliseconds when the event was triggered.String
getId()
The ID string of the event.String
getMessage()
The event message.int
hashCode()
void
setCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.void
setId(String id)
The ID string of the event.void
setMessage(String message)
The event message.String
toString()
Returns a string representation of this object; useful for testing and debugging.ServiceEvent
withCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.ServiceEvent
withId(String id)
The ID string of the event.ServiceEvent
withMessage(String message)
The event message.
-
-
-
Method Detail
-
setId
public void setId(String id)
The ID string of the event.
- Parameters:
id
- The ID string of the event.
-
getId
public String getId()
The ID string of the event.
- Returns:
- The ID string of the event.
-
withId
public ServiceEvent withId(String id)
The ID string of the event.
- Parameters:
id
- The ID string of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.
- Parameters:
createdAt
- The Unix time in seconds and milliseconds when the event was triggered.
-
getCreatedAt
public Date getCreatedAt()
The Unix time in seconds and milliseconds when the event was triggered.
- Returns:
- The Unix time in seconds and milliseconds when the event was triggered.
-
withCreatedAt
public ServiceEvent withCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.
- Parameters:
createdAt
- The Unix time in seconds and milliseconds when the event was triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
The event message.
- Parameters:
message
- The event message.
-
getMessage
public String getMessage()
The event message.
- Returns:
- The event message.
-
withMessage
public ServiceEvent withMessage(String message)
The event message.
- Parameters:
message
- The event message.- 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()
-
clone
public ServiceEvent clone()
-
-