Class FilteredLogEvent
- java.lang.Object
-
- com.amazonaws.services.logs.model.FilteredLogEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class FilteredLogEvent extends Object implements Serializable, Cloneable
Represents a matched event from a
FilterLogEvents
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilteredLogEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilteredLogEvent
clone()
boolean
equals(Object obj)
String
getEventId()
A unique identifier for this event.Long
getIngestionTime()
String
getLogStreamName()
The name of the log stream this event belongs to.String
getMessage()
The data contained in the log event.Long
getTimestamp()
int
hashCode()
void
setEventId(String eventId)
A unique identifier for this event.void
setIngestionTime(Long ingestionTime)
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)
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)
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)
-
-
-
Method Detail
-
setLogStreamName
public void setLogStreamName(String logStreamName)
The name of the log stream this event belongs to.
- Parameters:
logStreamName
- The name of the log stream this event belongs to.
-
getLogStreamName
public String getLogStreamName()
The name of the log stream this event belongs to.
- Returns:
- The name of the log stream this event belongs to.
-
withLogStreamName
public FilteredLogEvent withLogStreamName(String logStreamName)
The name of the log stream this event belongs to.
- Parameters:
logStreamName
- The name of the log stream this event belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
public void setTimestamp(Long timestamp)
- Parameters:
timestamp
-
-
getTimestamp
public Long getTimestamp()
- Returns:
-
withTimestamp
public FilteredLogEvent withTimestamp(Long timestamp)
- Parameters:
timestamp
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
The data contained in the log event.
- Parameters:
message
- The data contained in the log event.
-
getMessage
public String getMessage()
The data contained in the log event.
- Returns:
- The data contained in the log event.
-
withMessage
public FilteredLogEvent withMessage(String message)
The data contained in the log event.
- Parameters:
message
- The data contained in the log event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIngestionTime
public void setIngestionTime(Long ingestionTime)
- Parameters:
ingestionTime
-
-
getIngestionTime
public Long getIngestionTime()
- Returns:
-
withIngestionTime
public FilteredLogEvent withIngestionTime(Long ingestionTime)
- Parameters:
ingestionTime
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventId
public void setEventId(String eventId)
A unique identifier for this event.
- Parameters:
eventId
- A unique identifier for this event.
-
getEventId
public String getEventId()
A unique identifier for this event.
- Returns:
- A unique identifier for this event.
-
withEventId
public FilteredLogEvent withEventId(String eventId)
A unique identifier for this event.
- Parameters:
eventId
- A unique identifier for this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public FilteredLogEvent clone()
-
-