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 Summary
Modifier and TypeMethodDescriptionbuild()
static QueryString.Builder
create()
Specifies which fields to display in the query results.Retrieves the specified fields from log events for display.Deprecated.filterStatements
(List<String> filterStatements) An array of one or more statements for filtering the results of a query based on a boolean expression.Specifies the number of log events returned by the query.Deprecated.UseparseStatements
insteadparseStatements
(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.Sorts the retrieved log events.Uses log field values to calculate aggregate statistics.
-
Method Details
-
create
- Returns:
- a new instance of
QueryString.Builder
.
-
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
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
Deprecated.UsefilterStatements
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
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
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
Deprecated.UseparseStatements
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
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
Sorts the retrieved log events.Default: - no sort in QueryString
- Parameters:
sort
- Sorts the retrieved log events. This parameter is required.- Returns:
this
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<QueryString>
- Returns:
- a newly built instance of
QueryString
.
-
filterStatements
instead