Class FilterLogEventsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.logs.model.FilterLogEventsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class FilterLogEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description FilterLogEventsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterLogEventsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)LonggetEndTime()A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.StringgetFilterPattern()A valid CloudWatch Logs filter pattern to use for filtering the response.BooleangetInterleaved()If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response.IntegergetLimit()The maximum number of events to return in a page of results.StringgetLogGroupName()The name of the log group to query.List<String>getLogStreamNames()Optional list of log stream names within the specified log group to search.StringgetNextToken()A pagination token obtained from aFilterLogEventsresponse to continue paginating the FilterLogEvents results.LonggetStartTime()A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.inthashCode()BooleanisInterleaved()If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response.voidsetEndTime(Long endTime)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.voidsetFilterPattern(String filterPattern)A valid CloudWatch Logs filter pattern to use for filtering the response.voidsetInterleaved(Boolean interleaved)If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response.voidsetLimit(Integer limit)The maximum number of events to return in a page of results.voidsetLogGroupName(String logGroupName)The name of the log group to query.voidsetLogStreamNames(Collection<String> logStreamNames)Optional list of log stream names within the specified log group to search.voidsetNextToken(String nextToken)A pagination token obtained from aFilterLogEventsresponse to continue paginating the FilterLogEvents results.voidsetStartTime(Long startTime)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.StringtoString()Returns a string representation of this object; useful for testing and debugging.FilterLogEventsRequestwithEndTime(Long endTime)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.FilterLogEventsRequestwithFilterPattern(String filterPattern)A valid CloudWatch Logs filter pattern to use for filtering the response.FilterLogEventsRequestwithInterleaved(Boolean interleaved)If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response.FilterLogEventsRequestwithLimit(Integer limit)The maximum number of events to return in a page of results.FilterLogEventsRequestwithLogGroupName(String logGroupName)The name of the log group to query.FilterLogEventsRequestwithLogStreamNames(String... logStreamNames)Optional list of log stream names within the specified log group to search.FilterLogEventsRequestwithLogStreamNames(Collection<String> logStreamNames)Optional list of log stream names within the specified log group to search.FilterLogEventsRequestwithNextToken(String nextToken)A pagination token obtained from aFilterLogEventsresponse to continue paginating the FilterLogEvents results.FilterLogEventsRequestwithStartTime(Long startTime)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setLogGroupName
public void setLogGroupName(String logGroupName)
The name of the log group to query.
- Parameters:
logGroupName- The name of the log group to query.
-
getLogGroupName
public String getLogGroupName()
The name of the log group to query.
- Returns:
- The name of the log group to query.
-
withLogGroupName
public FilterLogEventsRequest withLogGroupName(String logGroupName)
The name of the log group to query.
- Parameters:
logGroupName- The name of the log group to query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLogStreamNames
public List<String> getLogStreamNames()
Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.
- Returns:
- Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.
-
setLogStreamNames
public void setLogStreamNames(Collection<String> logStreamNames)
Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.
- Parameters:
logStreamNames- Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.
-
withLogStreamNames
public FilterLogEventsRequest withLogStreamNames(String... logStreamNames)
Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.
NOTE: This method appends the values to the existing list (if any). Use
setLogStreamNames(java.util.Collection)orwithLogStreamNames(java.util.Collection)if you want to override the existing values.- Parameters:
logStreamNames- Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLogStreamNames
public FilterLogEventsRequest withLogStreamNames(Collection<String> logStreamNames)
Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.
- Parameters:
logStreamNames- Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTime
public void setStartTime(Long startTime)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.
- Parameters:
startTime- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.
-
getStartTime
public Long getStartTime()
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.
- Returns:
- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.
-
withStartTime
public FilterLogEventsRequest withStartTime(Long startTime)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.
- Parameters:
startTime- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
public void setEndTime(Long endTime)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.
- Parameters:
endTime- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.
-
getEndTime
public Long getEndTime()
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.
- Returns:
- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.
-
withEndTime
public FilterLogEventsRequest withEndTime(Long endTime)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.
- Parameters:
endTime- A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterPattern
public void setFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.
- Parameters:
filterPattern- A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.
-
getFilterPattern
public String getFilterPattern()
A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.
- Returns:
- A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.
-
withFilterPattern
public FilterLogEventsRequest withFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.
- Parameters:
filterPattern- A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.- 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
FilterLogEventsresponse 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 aFilterLogEventsresponse 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
FilterLogEventsresponse 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
FilterLogEventsresponse to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.
-
withNextToken
public FilterLogEventsRequest withNextToken(String nextToken)
A pagination token obtained from a
FilterLogEventsresponse 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 aFilterLogEventsresponse 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.
-
setLimit
public void setLimit(Integer limit)
The maximum number of events to return in a page of results. Default is 10,000 events.
- Parameters:
limit- The maximum number of events to return in a page of results. Default is 10,000 events.
-
getLimit
public Integer getLimit()
The maximum number of events to return in a page of results. Default is 10,000 events.
- Returns:
- The maximum number of events to return in a page of results. Default is 10,000 events.
-
withLimit
public FilterLogEventsRequest withLimit(Integer limit)
The maximum number of events to return in a page of results. Default is 10,000 events.
- Parameters:
limit- The maximum number of events to return in a page of results. Default is 10,000 events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInterleaved
public void setInterleaved(Boolean interleaved)
If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
- Parameters:
interleaved- If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
-
getInterleaved
public Boolean getInterleaved()
If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
- Returns:
- If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
-
withInterleaved
public FilterLogEventsRequest withInterleaved(Boolean interleaved)
If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
- Parameters:
interleaved- If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isInterleaved
public Boolean isInterleaved()
If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
- Returns:
- If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.
-
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 FilterLogEventsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-