Class CfnPreparedStatementProps.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnPreparedStatementProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPreparedStatementProps>
- Enclosing interface:
CfnPreparedStatementProps
@Stability(Stable)
public static final class CfnPreparedStatementProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPreparedStatementProps>
A builder for
CfnPreparedStatementProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnPreparedStatementProps.getDescription()queryStatement(String queryStatement) Sets the value ofCfnPreparedStatementProps.getQueryStatement()statementName(String statementName) Sets the value ofCfnPreparedStatementProps.getStatementName()Sets the value ofCfnPreparedStatementProps.getWorkGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryStatement
Sets the value ofCfnPreparedStatementProps.getQueryStatement()- Parameters:
queryStatement- The query string for the prepared statement. This parameter is required.- Returns:
this
-
statementName
Sets the value ofCfnPreparedStatementProps.getStatementName()- Parameters:
statementName- The name of the prepared statement. This parameter is required.- Returns:
this
-
workGroup
Sets the value ofCfnPreparedStatementProps.getWorkGroup()- Parameters:
workGroup- The workgroup to which the prepared statement belongs. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPreparedStatementProps.getDescription()- Parameters:
description- The description of the prepared statement.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPreparedStatementProps>- Returns:
- a new instance of
CfnPreparedStatementProps - Throws:
NullPointerException- if any required attribute was not provided
-