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
FilterLogEventsrequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilteredLogEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilteredLogEventclone()booleanequals(Object obj)StringgetEventId()A unique identifier for this event.LonggetIngestionTime()StringgetLogStreamName()The name of the log stream this event belongs to.StringgetMessage()The data contained in the log event.LonggetTimestamp()inthashCode()voidsetEventId(String eventId)A unique identifier for this event.voidsetIngestionTime(Long ingestionTime)voidsetLogStreamName(String logStreamName)The name of the log stream this event belongs to.voidsetMessage(String message)The data contained in the log event.voidsetTimestamp(Long timestamp)StringtoString()Returns a string representation of this object; useful for testing and debugging.FilteredLogEventwithEventId(String eventId)A unique identifier for this event.FilteredLogEventwithIngestionTime(Long ingestionTime)FilteredLogEventwithLogStreamName(String logStreamName)The name of the log stream this event belongs to.FilteredLogEventwithMessage(String message)The data contained in the log event.FilteredLogEventwithTimestamp(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public FilteredLogEvent clone()
-
-