public class GetLogEventsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
endTime |
private java.lang.Integer |
limit
The maximum number of log events returned in the response.
|
private java.lang.String |
logGroupName
The name of the log group to query.
|
private java.lang.String |
logStreamName
The name of the log stream to query.
|
private java.lang.String |
nextToken
A string token used for pagination that points to the next page of
results.
|
private java.lang.Boolean |
startFromHead
If set to true, the earliest log events would be returned first.
|
private java.lang.Long |
startTime |
NOOP
Constructor and Description |
---|
GetLogEventsRequest()
Default constructor for GetLogEventsRequest object.
|
GetLogEventsRequest(java.lang.String logGroupName,
java.lang.String logStreamName)
Constructs a new GetLogEventsRequest object.
|
Modifier and Type | Method and Description |
---|---|
GetLogEventsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getEndTime() |
java.lang.Integer |
getLimit()
The maximum number of log events returned in the response.
|
java.lang.String |
getLogGroupName()
The name of the log group to query.
|
java.lang.String |
getLogStreamName()
The name of the log stream to query.
|
java.lang.String |
getNextToken()
A string token used for pagination that points to the next page of
results.
|
java.lang.Boolean |
getStartFromHead()
If set to true, the earliest log events would be returned first.
|
java.lang.Long |
getStartTime() |
int |
hashCode() |
java.lang.Boolean |
isStartFromHead()
If set to true, the earliest log events would be returned first.
|
void |
setEndTime(java.lang.Long endTime) |
void |
setLimit(java.lang.Integer limit)
The maximum number of log events returned in the response.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group to query.
|
void |
setLogStreamName(java.lang.String logStreamName)
The name of the log stream to query.
|
void |
setNextToken(java.lang.String nextToken)
A string token used for pagination that points to the next page of
results.
|
void |
setStartFromHead(java.lang.Boolean startFromHead)
If set to true, the earliest log events would be returned first.
|
void |
setStartTime(java.lang.Long startTime) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetLogEventsRequest |
withEndTime(java.lang.Long endTime) |
GetLogEventsRequest |
withLimit(java.lang.Integer limit)
The maximum number of log events returned in the response.
|
GetLogEventsRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group to query.
|
GetLogEventsRequest |
withLogStreamName(java.lang.String logStreamName)
The name of the log stream to query.
|
GetLogEventsRequest |
withNextToken(java.lang.String nextToken)
A string token used for pagination that points to the next page of
results.
|
GetLogEventsRequest |
withStartFromHead(java.lang.Boolean startFromHead)
If set to true, the earliest log events would be returned first.
|
GetLogEventsRequest |
withStartTime(java.lang.Long startTime) |
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
private java.lang.String logGroupName
The name of the log group to query.
private java.lang.String logStreamName
The name of the log stream to query.
private java.lang.Long startTime
private java.lang.Long endTime
private java.lang.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.
private java.lang.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.
private java.lang.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).
public GetLogEventsRequest()
public GetLogEventsRequest(java.lang.String logGroupName, java.lang.String logStreamName)
logGroupName
- The name of the log group to query.logStreamName
- The name of the log stream to query.public void setLogGroupName(java.lang.String logGroupName)
The name of the log group to query.
logGroupName
- The name of the log group to query.public java.lang.String getLogGroupName()
The name of the log group to query.
public GetLogEventsRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group to query.
logGroupName
- The name of the log group to query.public void setLogStreamName(java.lang.String logStreamName)
The name of the log stream to query.
logStreamName
- The name of the log stream to query.public java.lang.String getLogStreamName()
The name of the log stream to query.
public GetLogEventsRequest withLogStreamName(java.lang.String logStreamName)
The name of the log stream to query.
logStreamName
- The name of the log stream to query.public void setStartTime(java.lang.Long startTime)
startTime
- public java.lang.Long getStartTime()
public GetLogEventsRequest withStartTime(java.lang.Long startTime)
startTime
- public void setEndTime(java.lang.Long endTime)
endTime
- public java.lang.Long getEndTime()
public GetLogEventsRequest withEndTime(java.lang.Long endTime)
endTime
- public void setNextToken(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetLogEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()