@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getEndTime()
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
Integer |
getLimit()
The maximum number of log events returned.
|
String |
getLogGroupName()
The name of the log group.
|
String |
getLogStreamName()
The name of the log stream.
|
String |
getNextToken()
The token for the next set of items to return.
|
Boolean |
getStartFromHead()
If the value is true, the earliest log events are returned first.
|
Long |
getStartTime()
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
int |
hashCode() |
Boolean |
isStartFromHead()
If the value is true, the earliest log events are returned first.
|
void |
setEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setLimit(Integer limit)
The maximum number of log events returned.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream.
|
void |
setNextToken(String nextToken)
The token for the next set of items to return.
|
void |
setStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first.
|
void |
setStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetLogEventsRequest |
withEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
GetLogEventsRequest |
withLimit(Integer limit)
The maximum number of log events returned.
|
GetLogEventsRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
GetLogEventsRequest |
withLogStreamName(String logStreamName)
The name of the log stream.
|
GetLogEventsRequest |
withNextToken(String nextToken)
The token for the next set of items to return.
|
GetLogEventsRequest |
withStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first.
|
GetLogEventsRequest |
withStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public GetLogEventsRequest()
public GetLogEventsRequest(String logGroupName, String logStreamName)
logGroupName
- The name of the log group.logStreamName
- The name of the log stream.public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String getLogGroupName()
The name of the log group.
public GetLogEventsRequest withLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public void setLogStreamName(String logStreamName)
The name of the log stream.
logStreamName
- The name of the log stream.public String getLogStreamName()
The name of the log stream.
public GetLogEventsRequest withLogStreamName(String logStreamName)
The name of the log stream.
logStreamName
- The name of the log stream.public void setStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not included.
startTime
- The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Events with a time stamp earlier than this time are not included.public Long getStartTime()
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not included.
public GetLogEventsRequest withStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not included.
startTime
- The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Events with a time stamp earlier than this time are not included.public void setEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not included.
endTime
- The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events
with a time stamp later than this time are not included.public Long getEndTime()
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not included.
public GetLogEventsRequest withEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not included.
endTime
- The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events
with a time stamp later than this time are not included.public void setNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)public String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
public GetLogEventsRequest withNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)public void setLimit(Integer limit)
The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1 MB, up to 10,000 log events.
limit
- The maximum number of log events returned. If you don't specify a value, the maximum is as many log events
as can fit in a response size of 1 MB, up to 10,000 log events.public Integer getLimit()
The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1 MB, up to 10,000 log events.
public GetLogEventsRequest withLimit(Integer limit)
The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1 MB, up to 10,000 log events.
limit
- The maximum number of log events returned. If you don't specify a value, the maximum is as many log events
as can fit in a response size of 1 MB, up to 10,000 log events.public void setStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
startFromHead
- If the value is true, the earliest log events are returned first. If the value is false, the latest log
events are returned first. The default value is false.public Boolean getStartFromHead()
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
public GetLogEventsRequest withStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
startFromHead
- If the value is true, the earliest log events are returned first. If the value is false, the latest log
events are returned first. The default value is false.public Boolean isStartFromHead()
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
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.