@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QueryDefinition extends Object implements Serializable, Cloneable, StructuredPojo
This structure contains details about a saved CloudWatch Logs Insights query definition.
Constructor and Description |
---|
QueryDefinition() |
Modifier and Type | Method and Description |
---|---|
QueryDefinition |
clone() |
boolean |
equals(Object obj) |
Long |
getLastModified()
The date that the query definition was most recently modified.
|
List<String> |
getLogGroupNames()
If this query definition contains a list of log groups that it is limited to, that list appears here.
|
String |
getName()
The name of the query definition.
|
String |
getQueryDefinitionId()
The unique ID of the query definition.
|
String |
getQueryString()
The query string to use for this definition.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLastModified(Long lastModified)
The date that the query definition was most recently modified.
|
void |
setLogGroupNames(Collection<String> logGroupNames)
If this query definition contains a list of log groups that it is limited to, that list appears here.
|
void |
setName(String name)
The name of the query definition.
|
void |
setQueryDefinitionId(String queryDefinitionId)
The unique ID of the query definition.
|
void |
setQueryString(String queryString)
The query string to use for this definition.
|
String |
toString()
Returns a string representation of this object.
|
QueryDefinition |
withLastModified(Long lastModified)
The date that the query definition was most recently modified.
|
QueryDefinition |
withLogGroupNames(Collection<String> logGroupNames)
If this query definition contains a list of log groups that it is limited to, that list appears here.
|
QueryDefinition |
withLogGroupNames(String... logGroupNames)
If this query definition contains a list of log groups that it is limited to, that list appears here.
|
QueryDefinition |
withName(String name)
The name of the query definition.
|
QueryDefinition |
withQueryDefinitionId(String queryDefinitionId)
The unique ID of the query definition.
|
QueryDefinition |
withQueryString(String queryString)
The query string to use for this definition.
|
public void setQueryDefinitionId(String queryDefinitionId)
The unique ID of the query definition.
queryDefinitionId
- The unique ID of the query definition.public String getQueryDefinitionId()
The unique ID of the query definition.
public QueryDefinition withQueryDefinitionId(String queryDefinitionId)
The unique ID of the query definition.
queryDefinitionId
- The unique ID of the query definition.public void setName(String name)
The name of the query definition.
name
- The name of the query definition.public String getName()
The name of the query definition.
public QueryDefinition withName(String name)
The name of the query definition.
name
- The name of the query definition.public void setQueryString(String queryString)
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
queryString
- The query string to use for this definition. For more information, see CloudWatch Logs
Insights Query Syntax.public String getQueryString()
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
public QueryDefinition withQueryString(String queryString)
The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
queryString
- The query string to use for this definition. For more information, see CloudWatch Logs
Insights Query Syntax.public void setLastModified(Long lastModified)
The date that the query definition was most recently modified.
lastModified
- The date that the query definition was most recently modified.public Long getLastModified()
The date that the query definition was most recently modified.
public QueryDefinition withLastModified(Long lastModified)
The date that the query definition was most recently modified.
lastModified
- The date that the query definition was most recently modified.public List<String> getLogGroupNames()
If this query definition contains a list of log groups that it is limited to, that list appears here.
public void setLogGroupNames(Collection<String> logGroupNames)
If this query definition contains a list of log groups that it is limited to, that list appears here.
logGroupNames
- If this query definition contains a list of log groups that it is limited to, that list appears here.public QueryDefinition withLogGroupNames(String... logGroupNames)
If this query definition contains a list of log groups that it is limited to, that list appears here.
NOTE: This method appends the values to the existing list (if any). Use
setLogGroupNames(java.util.Collection)
or withLogGroupNames(java.util.Collection)
if you want
to override the existing values.
logGroupNames
- If this query definition contains a list of log groups that it is limited to, that list appears here.public QueryDefinition withLogGroupNames(Collection<String> logGroupNames)
If this query definition contains a list of log groups that it is limited to, that list appears here.
logGroupNames
- If this query definition contains a list of log groups that it is limited to, that list appears here.public String toString()
toString
in class Object
Object.toString()
public QueryDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.