Class QueryStringProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.QueryStringProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<QueryStringProps>
- Enclosing interface:
QueryStringProps
@Stability(Stable)
public static final class QueryStringProps.Builder
extends Object
implements software.amazon.jsii.Builder<QueryStringProps>
A builder for
QueryStringProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofQueryStringProps.getDisplay()Sets the value ofQueryStringProps.getFields()Deprecated.Use `filterStatements` insteadfilterStatements(List<String> filterStatements) Sets the value ofQueryStringProps.getFilterStatements()Sets the value ofQueryStringProps.getLimit()Deprecated.Use `parseStatements` insteadparseStatements(List<String> parseStatements) Sets the value ofQueryStringProps.getParseStatements()Sets the value ofQueryStringProps.getSort()Deprecated.Use `statsStatements` insteadstatsStatements(List<String> statsStatements) Sets the value ofQueryStringProps.getStatsStatements()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
display
Sets the value ofQueryStringProps.getDisplay()- Parameters:
display- Specifies which fields to display in the query results.- Returns:
this
-
fields
Sets the value ofQueryStringProps.getFields()- Parameters:
fields- Retrieves the specified fields from log events for display.- Returns:
this
-
filter
Deprecated.Use `filterStatements` insteadSets the value ofQueryStringProps.getFilter()- Parameters:
filter- A single statement for filtering the results of a query based on a boolean expression.- Returns:
this
-
filterStatements
Sets the value ofQueryStringProps.getFilterStatements()- Parameters:
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
filterproperty.- Returns:
this
-
limit
Sets the value ofQueryStringProps.getLimit()- Parameters:
limit- Specifies the number of log events returned by the query.- Returns:
this
-
parse
Deprecated.Use `parseStatements` insteadSets the value ofQueryStringProps.getParse()- Parameters:
parse- A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query.- Returns:
this
-
parseStatements
Sets the value ofQueryStringProps.getParseStatements()- 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. Each provided statement generates a separate parse line in the query string.Note: If provided, this property overrides any value provided for the
parseproperty.- Returns:
this
-
sort
Sets the value ofQueryStringProps.getSort()- Parameters:
sort- Sorts the retrieved log events.- Returns:
this
-
stats
Deprecated.Use `statsStatements` insteadSets the value ofQueryStringProps.getStats()- Parameters:
stats- A single statement for using log field values to calculate aggregate statistics.- Returns:
this
-
statsStatements
Sets the value ofQueryStringProps.getStatsStatements()- Parameters:
statsStatements- An array of one or more statements for calculating aggregate statistics. CloudWatch Logs Insights supports up to two stats commands in a single query. Each provided statement generates a separate stats line in the query string.Note: If provided, this property overrides any value provided for the
statsproperty.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<QueryStringProps>- Returns:
- a new instance of
QueryStringProps - Throws:
NullPointerException- if any required attribute was not provided
-