Class QueryDefinition.Builder

java.lang.Object
software.amazon.awscdk.services.logs.QueryDefinition.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<QueryDefinition>
Enclosing class:
QueryDefinition

@Stability(Stable) public static final class QueryDefinition.Builder extends Object implements software.amazon.jsii.Builder<QueryDefinition>
A fluent builder for QueryDefinition.
  • Method Details

    • create

      @Stability(Stable) public static QueryDefinition.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of QueryDefinition.Builder.
    • queryDefinitionName

      @Stability(Stable) public QueryDefinition.Builder queryDefinitionName(String queryDefinitionName)
      Name of the query definition.

      Parameters:
      queryDefinitionName - Name of the query definition. This parameter is required.
      Returns:
      this
    • queryString

      @Stability(Stable) public QueryDefinition.Builder queryString(QueryString queryString)
      The query string to use for this query definition.

      Parameters:
      queryString - The query string to use for this query definition. This parameter is required.
      Returns:
      this
    • logGroups

      @Stability(Stable) public QueryDefinition.Builder logGroups(List<? extends ILogGroup> logGroups)
      Specify certain log groups for the query definition.

      Default: - no specified log groups

      Parameters:
      logGroups - Specify certain log groups for the query definition. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public QueryDefinition build()
      Specified by:
      build in interface software.amazon.jsii.Builder<QueryDefinition>
      Returns:
      a newly built instance of QueryDefinition.