@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()
Returns true if the LogGroupNames property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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 String queryDefinitionId()
The unique ID of the query definition.
public String name()
The name of the query definition.
public String queryString()
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
public Long lastModified()
The date that the query definition was most recently modified.
public boolean hasLogGroupNames()
public 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.
You can use hasLogGroupNames() to see if a value was sent in this field.
public QueryDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<QueryDefinition.Builder,QueryDefinition>public static QueryDefinition.Builder builder()
public static Class<? extends QueryDefinition.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.