public class ServiceEvent extends Object implements Serializable, Cloneable
Constructor and Description |
---|
ServiceEvent() |
Modifier and Type | Method and 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.
|
public String getId()
public void setId(String id)
id
- The ID string of the event.public ServiceEvent withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The ID string of the event.public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
createdAt
- The Unix time in seconds and milliseconds when the event was
triggered.public ServiceEvent withCreatedAt(Date createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt
- The Unix time in seconds and milliseconds when the event was
triggered.public String getMessage()
public void setMessage(String message)
message
- The event message.public ServiceEvent withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- The event message.public String toString()
toString
in class Object
Object.toString()
public ServiceEvent clone()
Copyright © 2015. All rights reserved.