public class InputLogEvent
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message |
private java.lang.Long |
timestamp |
Constructor and Description |
---|
InputLogEvent() |
Modifier and Type | Method and Description |
---|---|
InputLogEvent |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage() |
java.lang.Long |
getTimestamp() |
int |
hashCode() |
void |
setMessage(java.lang.String message) |
void |
setTimestamp(java.lang.Long timestamp) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InputLogEvent |
withMessage(java.lang.String message) |
InputLogEvent |
withTimestamp(java.lang.Long timestamp) |
public void setTimestamp(java.lang.Long timestamp)
timestamp
- public java.lang.Long getTimestamp()
public InputLogEvent withTimestamp(java.lang.Long timestamp)
timestamp
- public void setMessage(java.lang.String message)
message
- public java.lang.String getMessage()
public InputLogEvent withMessage(java.lang.String message)
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 InputLogEvent clone()
clone
in class java.lang.Object