Class CfnQueryDefinitionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnQueryDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueryDefinitionMixinProps>
- Enclosing interface:
CfnQueryDefinitionMixinProps
@Stability(Stable)
public static final class CfnQueryDefinitionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQueryDefinitionMixinProps>
A builder for
CfnQueryDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logGroupNames(List<? extends Object> logGroupNames) Sets the value ofCfnQueryDefinitionMixinProps.getLogGroupNames()Sets the value ofCfnQueryDefinitionMixinProps.getName()queryLanguage(String queryLanguage) Sets the value ofCfnQueryDefinitionMixinProps.getQueryLanguage()queryString(String queryString) Sets the value ofCfnQueryDefinitionMixinProps.getQueryString()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroupNames
@Stability(Stable) public CfnQueryDefinitionMixinProps.Builder logGroupNames(List<? extends Object> logGroupNames) Sets the value ofCfnQueryDefinitionMixinProps.getLogGroupNames()- Parameters:
logGroupNames- Use this parameter if you want the query to query only certain log groups.- Returns:
this
-
name
Sets the value ofCfnQueryDefinitionMixinProps.getName()- Parameters:
name- A name for the query definition.You can use the name to create a folder structure for your queries. To create a folder, use a forward slash (/) to prefix your desired query name with your desired folder name. For example,
*folder-name* / *query-name*.- Returns:
this
-
queryLanguage
Sets the value ofCfnQueryDefinitionMixinProps.getQueryLanguage()- Parameters:
queryLanguage- The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages .- Returns:
this
-
queryString
Sets the value ofCfnQueryDefinitionMixinProps.getQueryString()- Parameters:
queryString- The query string to use for this query definition. For more information, see CloudWatch Logs Insights Query Syntax .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQueryDefinitionMixinProps>- Returns:
- a new instance of
CfnQueryDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-