@Generated(value="software.amazon.awssdk:codegen") public final class StartQueryRequest extends CloudWatchLogsRequest implements ToCopyableBuilder<StartQueryRequest.Builder,StartQueryRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
StartQueryRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static StartQueryRequest.Builder |
builder() |
Long |
endTime()
The time to end this query, if it is still running.
|
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 to return in the query.
|
String |
logGroupName()
The log group on which to perform the query.
|
String |
queryString()
The query string to use.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StartQueryRequest.Builder> |
serializableBuilderClass() |
Long |
startTime()
The time to start the query.
|
StartQueryRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String logGroupName()
The log group on which to perform the query.
public Long startTime()
The time to start the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
public Long endTime()
The time to end this query, if it is still running. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
public String queryString()
The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
public Integer limit()
The maximum number of log events to return in the query. If the query string uses the fields
command, only the specified fields and their values are returned.
fields
command, only the specified fields and their values are returned.public StartQueryRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StartQueryRequest.Builder,StartQueryRequest>
toBuilder
in class CloudWatchLogsRequest
public static StartQueryRequest.Builder builder()
public static Class<? extends StartQueryRequest.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.