public class InputLogEvent
extends java.lang.Object
implements java.io.Serializable
Represents a log event, which is a record of activity that was recorded by the application or resource being monitored.
Constructor and Description |
---|
InputLogEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage()
The raw event message.
|
java.lang.Long |
getTimestamp()
The time the event occurred, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
int |
hashCode() |
void |
setMessage(java.lang.String message)
The raw event message.
|
void |
setTimestamp(java.lang.Long timestamp)
The time the event occurred, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InputLogEvent |
withMessage(java.lang.String message)
The raw event message.
|
InputLogEvent |
withTimestamp(java.lang.Long timestamp)
The time the event occurred, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
public java.lang.Long getTimestamp()
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setTimestamp(java.lang.Long timestamp)
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
timestamp
- The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public InputLogEvent withTimestamp(java.lang.Long timestamp)
The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
timestamp
- The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.String getMessage()
The raw event message.
Constraints:
Length: 1 -
The raw event message.
public void setMessage(java.lang.String message)
The raw event message.
Constraints:
Length: 1 -
message
- The raw event message.
public InputLogEvent withMessage(java.lang.String message)
The raw event message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
message
- The raw event message.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.