Interface QueryDefinition.Builder

All Superinterfaces:
Buildable, CopyableBuilder<QueryDefinition.Builder,QueryDefinition>, SdkBuilder<QueryDefinition.Builder,QueryDefinition>, SdkPojo
Enclosing class:
QueryDefinition

public static interface QueryDefinition.Builder extends SdkPojo, CopyableBuilder<QueryDefinition.Builder,QueryDefinition>
  • Method Details

    • queryDefinitionId

      QueryDefinition.Builder queryDefinitionId(String queryDefinitionId)

      The unique ID of the query definition.

      Parameters:
      queryDefinitionId - The unique ID of the query definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the query definition.

      Parameters:
      name - The name of the query definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryString

      QueryDefinition.Builder queryString(String queryString)

      The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

      Parameters:
      queryString - The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModified

      QueryDefinition.Builder lastModified(Long lastModified)

      The date that the query definition was most recently modified.

      Parameters:
      lastModified - The date that the query definition was most recently modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupNames

      QueryDefinition.Builder logGroupNames(Collection<String> logGroupNames)

      If this query definition contains a list of log groups that it is limited to, that list appears here.

      Parameters:
      logGroupNames - If this query definition contains a list of log groups that it is limited to, that list appears here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupNames

      QueryDefinition.Builder logGroupNames(String... logGroupNames)

      If this query definition contains a list of log groups that it is limited to, that list appears here.

      Parameters:
      logGroupNames - If this query definition contains a list of log groups that it is limited to, that list appears here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.