Class QueryString.Builder

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

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

    • create

      @Stability(Stable) public static QueryString.Builder create()
      Returns:
      a new instance of QueryString.Builder.
    • display

      @Stability(Stable) public QueryString.Builder display(String display)
      Specifies which fields to display in the query results.

      Default: - no display in QueryString

      Parameters:
      display - Specifies which fields to display in the query results. This parameter is required.
      Returns:
      this
    • fields

      @Stability(Stable) public QueryString.Builder fields(List<String> fields)
      Retrieves the specified fields from log events for display.

      Default: - no fields in QueryString

      Parameters:
      fields - Retrieves the specified fields from log events for display. This parameter is required.
      Returns:
      this
    • filter

      @Stability(Deprecated) @Deprecated public QueryString.Builder filter(String filter)
      Deprecated.
      Use filterStatements instead
      (deprecated) A single statement for filtering the results of a query based on a boolean expression.

      Default: - no filter in QueryString

      Parameters:
      filter - A single statement for filtering the results of a query based on a boolean expression. This parameter is required.
      Returns:
      this
    • filterStatements

      @Stability(Stable) public QueryString.Builder filterStatements(List<String> filterStatements)
      An array of one or more statements for filtering the results of a query based on a boolean expression.

      Each provided statement generates a separate filter line in the query string.

      Note: If provided, this property overrides any value provided for the filter property.

      Default: - no filter in QueryString

      Parameters:
      filterStatements - An array of one or more statements for filtering the results of a query based on a boolean expression. This parameter is required.
      Returns:
      this
    • limit

      @Stability(Stable) public QueryString.Builder limit(Number limit)
      Specifies the number of log events returned by the query.

      Default: - no limit in QueryString

      Parameters:
      limit - Specifies the number of log events returned by the query. This parameter is required.
      Returns:
      this
    • parse

      @Stability(Deprecated) @Deprecated public QueryString.Builder parse(String parse)
      Deprecated.
      Use parseStatements instead
      (deprecated) A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query.

      Default: - no parse in QueryString

      Parameters:
      parse - A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query. This parameter is required.
      Returns:
      this
    • parseStatements

      @Stability(Stable) public QueryString.Builder parseStatements(List<String> parseStatements)
      An array of one or more statements for parsing data from a log field and creating ephemeral fields that can be processed further in the query.

      Each provided statement generates a separate parse line in the query string.

      Note: If provided, this property overrides any value provided for the parse property.

      Default: - no parse in QueryString

      Parameters:
      parseStatements - An array of one or more statements for parsing data from a log field and creating ephemeral fields that can be processed further in the query. This parameter is required.
      Returns:
      this
    • sort

      @Stability(Stable) public QueryString.Builder sort(String sort)
      Sorts the retrieved log events.

      Default: - no sort in QueryString

      Parameters:
      sort - Sorts the retrieved log events. This parameter is required.
      Returns:
      this
    • stats

      @Stability(Stable) public QueryString.Builder stats(String stats)
      Uses log field values to calculate aggregate statistics.

      Default: - no stats in QueryString

      Parameters:
      stats - Uses log field values to calculate aggregate statistics. This parameter is required.
      Returns:
      this
    • build

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