Class QueryDefinitionProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.QueryDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<QueryDefinitionProps>
- Enclosing interface:
QueryDefinitionProps
@Stability(Stable)
public static final class QueryDefinitionProps.Builder
extends Object
implements software.amazon.jsii.Builder<QueryDefinitionProps>
A builder for
QueryDefinitionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofQueryDefinitionProps.getLogGroups()
queryDefinitionName
(String queryDefinitionName) Sets the value ofQueryDefinitionProps.getQueryDefinitionName()
queryString
(QueryString queryString) Sets the value ofQueryDefinitionProps.getQueryString()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryDefinitionName
@Stability(Stable) public QueryDefinitionProps.Builder queryDefinitionName(String queryDefinitionName) Sets the value ofQueryDefinitionProps.getQueryDefinitionName()
- Parameters:
queryDefinitionName
- Name of the query definition. This parameter is required.- Returns:
this
-
queryString
Sets the value ofQueryDefinitionProps.getQueryString()
- Parameters:
queryString
- The query string to use for this query definition. This parameter is required.- Returns:
this
-
logGroups
@Stability(Stable) public QueryDefinitionProps.Builder logGroups(List<? extends ILogGroup> logGroups) Sets the value ofQueryDefinitionProps.getLogGroups()
- Parameters:
logGroups
- Specify certain log groups for the query definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<QueryDefinitionProps>
- Returns:
- a new instance of
QueryDefinitionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-