public class FilteredLogEvent extends Object implements Serializable, Cloneable
Represents a matched event from a FilterLogEvents
request.
| Constructor and Description |
|---|
FilteredLogEvent() |
| Modifier and Type | Method and Description |
|---|---|
FilteredLogEvent |
clone() |
boolean |
equals(Object obj) |
String |
getEventId()
A unique identifier for this event.
|
Long |
getIngestionTime()
A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.
|
String |
getLogStreamName()
The name of the log stream this event belongs to.
|
String |
getMessage()
The data contained in the log event.
|
Long |
getTimestamp()
A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.
|
int |
hashCode() |
void |
setEventId(String eventId)
A unique identifier for this event.
|
void |
setIngestionTime(Long ingestionTime)
A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream this event belongs to.
|
void |
setMessage(String message)
The data contained in the log event.
|
void |
setTimestamp(Long timestamp)
A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FilteredLogEvent |
withEventId(String eventId)
A unique identifier for this event.
|
FilteredLogEvent |
withIngestionTime(Long ingestionTime)
A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.
|
FilteredLogEvent |
withLogStreamName(String logStreamName)
The name of the log stream this event belongs to.
|
FilteredLogEvent |
withMessage(String message)
The data contained in the log event.
|
FilteredLogEvent |
withTimestamp(Long timestamp)
A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.
|
public String getLogStreamName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setLogStreamName(String logStreamName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName - The name of the log stream this event belongs to.public FilteredLogEvent withLogStreamName(String logStreamName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName - The name of the log stream this event belongs to.public Long getTimestamp()
Constraints:
Range: 0 -
public void setTimestamp(Long timestamp)
Constraints:
Range: 0 -
timestamp - A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.public FilteredLogEvent withTimestamp(Long timestamp)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
timestamp - A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.public String getMessage()
Constraints:
Length: 1 -
public void setMessage(String message)
Constraints:
Length: 1 -
message - The data contained in the log event.public FilteredLogEvent withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
message - The data contained in the log event.public Long getIngestionTime()
Constraints:
Range: 0 -
public void setIngestionTime(Long ingestionTime)
Constraints:
Range: 0 -
ingestionTime - A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.public FilteredLogEvent withIngestionTime(Long ingestionTime)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
ingestionTime - A point in time expressed as the number of milliseconds since Jan 1,
1970 00:00:00 UTC.public String getEventId()
public void setEventId(String eventId)
eventId - A unique identifier for this event.public FilteredLogEvent withEventId(String eventId)
Returns a reference to this object so that method calls can be chained together.
eventId - A unique identifier for this event.public String toString()
toString in class ObjectObject.toString()public FilteredLogEvent clone()
Copyright © 2015. All rights reserved.