Class CfnStoredQueryProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnStoredQueryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStoredQueryProps>
- Enclosing interface:
- CfnStoredQueryProps
@Stability(Stable)
public static final class CfnStoredQueryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStoredQueryProps>
A builder for
CfnStoredQueryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.queryDescription(String queryDescription) Sets the value ofCfnStoredQueryProps.getQueryDescription()queryExpression(String queryExpression) Sets the value ofCfnStoredQueryProps.getQueryExpression()Sets the value ofCfnStoredQueryProps.getQueryName()Sets the value ofCfnStoredQueryProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryExpression
Sets the value ofCfnStoredQueryProps.getQueryExpression()- Parameters:
queryExpression- The expression of the query. This parameter is required. For example,SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.- Returns:
this
-
queryName
Sets the value ofCfnStoredQueryProps.getQueryName()- Parameters:
queryName- The name of the query. This parameter is required.- Returns:
this
-
queryDescription
Sets the value ofCfnStoredQueryProps.getQueryDescription()- Parameters:
queryDescription- A unique description for the query.- Returns:
this
-
tags
Sets the value ofCfnStoredQueryProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStoredQueryProps>- Returns:
- a new instance of
CfnStoredQueryProps - Throws:
NullPointerException- if any required attribute was not provided
-