@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 end of the time range to query.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLogGroupNames()
For responses, this returns true if the service returned a value for the LogGroupNames property.
|
Integer |
limit()
The maximum number of log events to return in the query.
|
String |
logGroupName()
The log group on which to perform the query.
|
List<String> |
logGroupNames()
The list of log groups to be queried.
|
String |
queryString()
The query string to use.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StartQueryRequest.Builder> |
serializableBuilderClass() |
Long |
startTime()
The beginning of the time range to query.
|
StartQueryRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String logGroupName()
The log group on which to perform the query.
A StartQuery
operation must include a logGroupNames
or a logGroupName
parameter, but not both.
A StartQuery
operation must include a logGroupNames
or a
logGroupName
parameter, but not both.
public final boolean hasLogGroupNames()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> logGroupNames()
The list of log groups to be queried. You can include up to 20 log groups.
A StartQuery
operation must include a logGroupNames
or a logGroupName
parameter, but not both.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLogGroupNames()
method.
A StartQuery
operation must include a logGroupNames
or a
logGroupName
parameter, but not both.
public final Long startTime()
The beginning of the time range to query. The range is inclusive, so the specified start time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
public final Long endTime()
The end of the time range to query. The range is inclusive, so the specified end time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.
public final String queryString()
The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.
public final 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. The default is 1000.
fields
command, only the specified fields and their values are returned. The default is 1000.public StartQueryRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<StartQueryRequest.Builder,StartQueryRequest>
toBuilder
in class CloudWatchLogsRequest
public static StartQueryRequest.Builder builder()
public static Class<? extends StartQueryRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2021. All rights reserved.