public class GetLogEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetLogEventsRequest()
Default constructor for GetLogEventsRequest object.
|
GetLogEventsRequest(String logGroupName,
String logStreamName)
Constructs a new GetLogEventsRequest object.
|
Modifier and Type | Method and Description |
---|---|
GetLogEventsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Long |
getEndTime() |
Integer |
getLimit()
The maximum number of log events returned in the response.
|
String |
getLogGroupName()
The name of the log group to query.
|
String |
getLogStreamName()
The name of the log stream to query.
|
String |
getNextToken()
A string token used for pagination that points to the next page of
results.
|
Boolean |
getStartFromHead()
If set to true, the earliest log events would be returned first.
|
Long |
getStartTime() |
int |
hashCode() |
Boolean |
isStartFromHead()
If set to true, the earliest log events would be returned first.
|
void |
setEndTime(Long endTime) |
void |
setLimit(Integer limit)
The maximum number of log events returned in the response.
|
void |
setLogGroupName(String logGroupName)
The name of the log group to query.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream to query.
|
void |
setNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
void |
setStartFromHead(Boolean startFromHead)
If set to true, the earliest log events would be returned first.
|
void |
setStartTime(Long startTime) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetLogEventsRequest |
withEndTime(Long endTime) |
GetLogEventsRequest |
withLimit(Integer limit)
The maximum number of log events returned in the response.
|
GetLogEventsRequest |
withLogGroupName(String logGroupName)
The name of the log group to query.
|
GetLogEventsRequest |
withLogStreamName(String logStreamName)
The name of the log stream to query.
|
GetLogEventsRequest |
withNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
GetLogEventsRequest |
withStartFromHead(Boolean startFromHead)
If set to true, the earliest log events would be returned first.
|
GetLogEventsRequest |
withStartTime(Long startTime) |
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public GetLogEventsRequest()
public GetLogEventsRequest(String logGroupName, String logStreamName)
logGroupName
- The name of the log group to query.logStreamName
- The name of the log stream to query.public void setLogGroupName(String logGroupName)
The name of the log group to query.
logGroupName
- The name of the log group to query.public String getLogGroupName()
The name of the log group to query.
public GetLogEventsRequest withLogGroupName(String logGroupName)
The name of the log group to query.
logGroupName
- The name of the log group to query.public void setLogStreamName(String logStreamName)
The name of the log stream to query.
logStreamName
- The name of the log stream to query.public String getLogStreamName()
The name of the log stream to query.
public GetLogEventsRequest withLogStreamName(String logStreamName)
The name of the log stream to query.
logStreamName
- The name of the log stream to query.public void setStartTime(Long startTime)
startTime
- public Long getStartTime()
public GetLogEventsRequest withStartTime(Long startTime)
startTime
- public void setEndTime(Long endTime)
endTime
- public Long getEndTime()
public GetLogEventsRequest withEndTime(Long endTime)
endTime
- public void setNextToken(String nextToken)
A string token used for pagination that points to the next page of
results. It must be a value obtained from the
nextForwardToken
or
nextBackwardToken
fields in the response of the
previous GetLogEvents
request.
nextToken
- A string token used for pagination that points to the next page of
results. It must be a value obtained from the
nextForwardToken
or
nextBackwardToken
fields in the response
of the previous GetLogEvents
request.public String getNextToken()
A string token used for pagination that points to the next page of
results. It must be a value obtained from the
nextForwardToken
or
nextBackwardToken
fields in the response of the
previous GetLogEvents
request.
nextForwardToken
or
nextBackwardToken
fields in the
response of the previous GetLogEvents
request.public GetLogEventsRequest withNextToken(String nextToken)
A string token used for pagination that points to the next page of
results. It must be a value obtained from the
nextForwardToken
or
nextBackwardToken
fields in the response of the
previous GetLogEvents
request.
nextToken
- A string token used for pagination that points to the next page of
results. It must be a value obtained from the
nextForwardToken
or
nextBackwardToken
fields in the response
of the previous GetLogEvents
request.public void setLimit(Integer limit)
The maximum number of log events returned in the response. If you don't specify a value, the request would return as many log events as can fit in a response size of 1MB, up to 10,000 log events.
limit
- The maximum number of log events returned in the response. If you
don't specify a value, the request would return as many log events
as can fit in a response size of 1MB, up to 10,000 log events.public Integer getLimit()
The maximum number of log events returned in the response. If you don't specify a value, the request would return as many log events as can fit in a response size of 1MB, up to 10,000 log events.
public GetLogEventsRequest withLimit(Integer limit)
The maximum number of log events returned in the response. If you don't specify a value, the request would return as many log events as can fit in a response size of 1MB, up to 10,000 log events.
limit
- The maximum number of log events returned in the response. If you
don't specify a value, the request would return as many log events
as can fit in a response size of 1MB, up to 10,000 log events.public void setStartFromHead(Boolean startFromHead)
If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).
startFromHead
- If set to true, the earliest log events would be returned first.
The default is false (the latest log events are returned first).public Boolean getStartFromHead()
If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).
public GetLogEventsRequest withStartFromHead(Boolean startFromHead)
If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).
startFromHead
- If set to true, the earliest log events would be returned first.
The default is false (the latest log events are returned first).public Boolean isStartFromHead()
If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).
public String toString()
toString
in class Object
Object.toString()
public GetLogEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.