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.Filters the results of a query that's based on one or more conditions.Specifies the number of log events returned by the query.Extracts data from a log field and creates one or more ephemeral fields that you can process 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
Filters the results of a query that's based on one or more conditions.Default: - no filter in QueryString
- Parameters:
filter
- Filters the results of a query that's based on one or more conditions. 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
Extracts data from a log field and creates one or more ephemeral fields that you can process further in the query.Default: - no parse in QueryString
- Parameters:
parse
- Extracts data from a log field and creates one or more ephemeral fields that you can process 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
.
-