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
-
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()
Sets the value ofQueryStringProps.getStats()
-
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
filter
property.- 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
parse
property.- Returns:
this
-
sort
Sets the value ofQueryStringProps.getSort()
- Parameters:
sort
- Sorts the retrieved log events.- Returns:
this
-
stats
Sets the value ofQueryStringProps.getStats()
- Parameters:
stats
- Uses log field values to calculate aggregate statistics.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<QueryStringProps>
- Returns:
- a new instance of
QueryStringProps
- Throws:
NullPointerException
- if any required attribute was not provided
-