public class FilteredLogEvent
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a matched event from a FilterLogEvents
request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
eventId
A unique identifier for this event.
|
private java.lang.Long |
ingestionTime |
private java.lang.String |
logStreamName
The name of the log stream this event belongs to.
|
private java.lang.String |
message
The data contained in the log event.
|
private java.lang.Long |
timestamp |
Constructor and Description |
---|
FilteredLogEvent() |
Modifier and Type | Method and Description |
---|---|
FilteredLogEvent |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEventId()
A unique identifier for this event.
|
java.lang.Long |
getIngestionTime() |
java.lang.String |
getLogStreamName()
The name of the log stream this event belongs to.
|
java.lang.String |
getMessage()
The data contained in the log event.
|
java.lang.Long |
getTimestamp() |
int |
hashCode() |
void |
setEventId(java.lang.String eventId)
A unique identifier for this event.
|
void |
setIngestionTime(java.lang.Long ingestionTime) |
void |
setLogStreamName(java.lang.String logStreamName)
The name of the log stream this event belongs to.
|
void |
setMessage(java.lang.String message)
The data contained in the log event.
|
void |
setTimestamp(java.lang.Long timestamp) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FilteredLogEvent |
withEventId(java.lang.String eventId)
A unique identifier for this event.
|
FilteredLogEvent |
withIngestionTime(java.lang.Long ingestionTime) |
FilteredLogEvent |
withLogStreamName(java.lang.String logStreamName)
The name of the log stream this event belongs to.
|
FilteredLogEvent |
withMessage(java.lang.String message)
The data contained in the log event.
|
FilteredLogEvent |
withTimestamp(java.lang.Long timestamp) |
private java.lang.String logStreamName
The name of the log stream this event belongs to.
private java.lang.Long timestamp
private java.lang.String message
The data contained in the log event.
private java.lang.Long ingestionTime
private java.lang.String eventId
A unique identifier for this event.
public void setLogStreamName(java.lang.String logStreamName)
The name of the log stream this event belongs to.
logStreamName
- The name of the log stream this event belongs to.public java.lang.String getLogStreamName()
The name of the log stream this event belongs to.
public FilteredLogEvent withLogStreamName(java.lang.String logStreamName)
The name of the log stream this event belongs to.
logStreamName
- The name of the log stream this event belongs to.public void setTimestamp(java.lang.Long timestamp)
timestamp
- public java.lang.Long getTimestamp()
public FilteredLogEvent withTimestamp(java.lang.Long timestamp)
timestamp
- public void setMessage(java.lang.String message)
The data contained in the log event.
message
- The data contained in the log event.public java.lang.String getMessage()
The data contained in the log event.
public FilteredLogEvent withMessage(java.lang.String message)
The data contained in the log event.
message
- The data contained in the log event.public void setIngestionTime(java.lang.Long ingestionTime)
ingestionTime
- public java.lang.Long getIngestionTime()
public FilteredLogEvent withIngestionTime(java.lang.Long ingestionTime)
ingestionTime
- public void setEventId(java.lang.String eventId)
A unique identifier for this event.
eventId
- A unique identifier for this event.public java.lang.String getEventId()
A unique identifier for this event.
public FilteredLogEvent withEventId(java.lang.String eventId)
A unique identifier for this event.
eventId
- A unique identifier for this event.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 FilteredLogEvent clone()
clone
in class java.lang.Object