Class FilterLogEventsResult
- java.lang.Object
-
- com.amazonaws.services.logs.model.FilterLogEventsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class FilterLogEventsResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterLogEventsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterLogEventsResult
clone()
boolean
equals(Object obj)
List<FilteredLogEvent>
getEvents()
A list ofFilteredLogEvent
objects representing the matched events from the request.String
getNextToken()
A pagination token obtained from aFilterLogEvents
response to continue paginating the FilterLogEvents results.List<SearchedLogStream>
getSearchedLogStreams()
A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.int
hashCode()
void
setEvents(Collection<FilteredLogEvent> events)
A list ofFilteredLogEvent
objects representing the matched events from the request.void
setNextToken(String nextToken)
A pagination token obtained from aFilterLogEvents
response to continue paginating the FilterLogEvents results.void
setSearchedLogStreams(Collection<SearchedLogStream> searchedLogStreams)
A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.String
toString()
Returns a string representation of this object; useful for testing and debugging.FilterLogEventsResult
withEvents(FilteredLogEvent... events)
A list ofFilteredLogEvent
objects representing the matched events from the request.FilterLogEventsResult
withEvents(Collection<FilteredLogEvent> events)
A list ofFilteredLogEvent
objects representing the matched events from the request.FilterLogEventsResult
withNextToken(String nextToken)
A pagination token obtained from aFilterLogEvents
response to continue paginating the FilterLogEvents results.FilterLogEventsResult
withSearchedLogStreams(SearchedLogStream... searchedLogStreams)
A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.FilterLogEventsResult
withSearchedLogStreams(Collection<SearchedLogStream> searchedLogStreams)
A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.
-
-
-
Method Detail
-
getEvents
public List<FilteredLogEvent> getEvents()
A list of
FilteredLogEvent
objects representing the matched events from the request.- Returns:
- A list of
FilteredLogEvent
objects representing the matched events from the request.
-
setEvents
public void setEvents(Collection<FilteredLogEvent> events)
A list of
FilteredLogEvent
objects representing the matched events from the request.- Parameters:
events
- A list ofFilteredLogEvent
objects representing the matched events from the request.
-
withEvents
public FilterLogEventsResult withEvents(FilteredLogEvent... events)
A list of
FilteredLogEvent
objects representing the matched events from the request.NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection)
orwithEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
events
- A list ofFilteredLogEvent
objects representing the matched events from the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvents
public FilterLogEventsResult withEvents(Collection<FilteredLogEvent> events)
A list of
FilteredLogEvent
objects representing the matched events from the request.- Parameters:
events
- A list ofFilteredLogEvent
objects representing the matched events from the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSearchedLogStreams
public List<SearchedLogStream> getSearchedLogStreams()
A list of
SearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.- Returns:
- A list of
SearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.
-
setSearchedLogStreams
public void setSearchedLogStreams(Collection<SearchedLogStream> searchedLogStreams)
A list of
SearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.- Parameters:
searchedLogStreams
- A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.
-
withSearchedLogStreams
public FilterLogEventsResult withSearchedLogStreams(SearchedLogStream... searchedLogStreams)
A list of
SearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.NOTE: This method appends the values to the existing list (if any). Use
setSearchedLogStreams(java.util.Collection)
orwithSearchedLogStreams(java.util.Collection)
if you want to override the existing values.- Parameters:
searchedLogStreams
- A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSearchedLogStreams
public FilterLogEventsResult withSearchedLogStreams(Collection<SearchedLogStream> searchedLogStreams)
A list of
SearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.- Parameters:
searchedLogStreams
- A list ofSearchedLogStream
objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
A pagination token obtained from a
FilterLogEvents
response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.- Parameters:
nextToken
- A pagination token obtained from aFilterLogEvents
response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.
-
getNextToken
public String getNextToken()
A pagination token obtained from a
FilterLogEvents
response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.- Returns:
- A pagination token obtained from a
FilterLogEvents
response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.
-
withNextToken
public FilterLogEventsResult withNextToken(String nextToken)
A pagination token obtained from a
FilterLogEvents
response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.- Parameters:
nextToken
- A pagination token obtained from aFilterLogEvents
response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.- 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 FilterLogEventsResult clone()
-
-