@Generated(value="software.amazon.awssdk:codegen") public final class QueryDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<QueryDefinition.Builder,QueryDefinition>
This structure contains details about a saved CloudWatch Logs Insights query definition.
| Modifier and Type | Class and Description |
|---|---|
static interface |
QueryDefinition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static QueryDefinition.Builder |
builder() |
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.
|
Long |
lastModified()
The date that the query definition was most recently modified.
|
List<String> |
logGroupNames()
If this query definition contains a list of log groups that it is limited to, that list appears here.
|
String |
name()
The name of the query definition.
|
String |
queryDefinitionId()
The unique ID of the query definition.
|
String |
queryString()
The query string to use for this definition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends QueryDefinition.Builder> |
serializableBuilderClass() |
QueryDefinition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String queryDefinitionId()
The unique ID of the query definition.
public final String name()
The name of the query definition.
public final String queryString()
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
public final Long lastModified()
The date that the query definition was most recently modified.
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()
If this query definition contains a list of log groups that it is limited to, that list appears here.
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.
public QueryDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<QueryDefinition.Builder,QueryDefinition>public static QueryDefinition.Builder builder()
public static Class<? extends QueryDefinition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.