public class ServiceEvent
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Details on an event associated with a service.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
createdAt
The Unix time in seconds and milliseconds when the event was triggered.
|
private java.lang.String |
id
The ID string of the event.
|
private java.lang.String |
message
The event message.
|
Constructor and Description |
---|
ServiceEvent() |
Modifier and Type | Method and Description |
---|---|
ServiceEvent |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreatedAt()
The Unix time in seconds and milliseconds when the event was triggered.
|
java.lang.String |
getId()
The ID string of the event.
|
java.lang.String |
getMessage()
The event message.
|
int |
hashCode() |
void |
setCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.
|
void |
setId(java.lang.String id)
The ID string of the event.
|
void |
setMessage(java.lang.String message)
The event message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ServiceEvent |
withCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.
|
ServiceEvent |
withId(java.lang.String id)
The ID string of the event.
|
ServiceEvent |
withMessage(java.lang.String message)
The event message.
|
private java.lang.String id
The ID string of the event.
private java.util.Date createdAt
The Unix time in seconds and milliseconds when the event was triggered.
private java.lang.String message
The event message.
public void setId(java.lang.String id)
The ID string of the event.
id
- The ID string of the event.public java.lang.String getId()
The ID string of the event.
public ServiceEvent withId(java.lang.String id)
The ID string of the event.
id
- The ID string of the event.public void setCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.
createdAt
- The Unix time in seconds and milliseconds when the event was
triggered.public java.util.Date getCreatedAt()
The Unix time in seconds and milliseconds when the event was triggered.
public ServiceEvent withCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the event was triggered.
createdAt
- The Unix time in seconds and milliseconds when the event was
triggered.public void setMessage(java.lang.String message)
The event message.
message
- The event message.public java.lang.String getMessage()
The event message.
public ServiceEvent withMessage(java.lang.String message)
The event message.
message
- The event message.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 ServiceEvent clone()
clone
in class java.lang.Object