@Generated(value="software.amazon.awssdk:codegen") public class GetLogEventsRequest extends CloudWatchLogsRequest implements ToCopyableBuilder<GetLogEventsRequest.Builder,GetLogEventsRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GetLogEventsRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetLogEventsRequest.Builder |
builder() |
Long |
endTime()
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
limit()
The maximum number of log events returned.
|
String |
logGroupName()
The name of the log group.
|
String |
logStreamName()
The name of the log stream.
|
String |
nextToken()
The token for the next set of items to return.
|
static Class<? extends GetLogEventsRequest.Builder> |
serializableBuilderClass() |
Boolean |
startFromHead()
If the value is true, the earliest log events are returned first.
|
Long |
startTime()
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
GetLogEventsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String logGroupName()
The name of the log group.
public String logStreamName()
The name of the log stream.
public 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.
public 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.
public String nextToken()
The token for the next set of items to return. (You received this token from a previous call.)
public 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.
public 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.
public GetLogEventsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetLogEventsRequest.Builder,GetLogEventsRequest>
toBuilder
in class CloudWatchLogsRequest
public static GetLogEventsRequest.Builder builder()
public static Class<? extends GetLogEventsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.