Class CfnStoredQueryMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.config.CfnStoredQueryMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStoredQueryMixinProps>
- Enclosing interface:
CfnStoredQueryMixinProps
@Stability(Stable)
public static final class CfnStoredQueryMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStoredQueryMixinProps>
A builder for
CfnStoredQueryMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.queryDescription(String queryDescription) Sets the value ofCfnStoredQueryMixinProps.getQueryDescription()queryExpression(String queryExpression) Sets the value ofCfnStoredQueryMixinProps.getQueryExpression()Sets the value ofCfnStoredQueryMixinProps.getQueryName()Sets the value ofCfnStoredQueryMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryDescription
@Stability(Stable) public CfnStoredQueryMixinProps.Builder queryDescription(String queryDescription) Sets the value ofCfnStoredQueryMixinProps.getQueryDescription()- Parameters:
queryDescription- A unique description for the query.- Returns:
this
-
queryExpression
Sets the value ofCfnStoredQueryMixinProps.getQueryExpression()- Parameters:
queryExpression- The expression of the query. For example,SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.- Returns:
this
-
queryName
Sets the value ofCfnStoredQueryMixinProps.getQueryName()- Parameters:
queryName- The name of the query.- Returns:
this
-
tags
Sets the value ofCfnStoredQueryMixinProps.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<CfnStoredQueryMixinProps>- Returns:
- a new instance of
CfnStoredQueryMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-