Class CfnNamedQueryProps.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnNamedQueryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNamedQueryProps>
- Enclosing interface:
- CfnNamedQueryProps
@Stability(Stable)
public static final class CfnNamedQueryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamedQueryProps>
A builder for
CfnNamedQueryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnNamedQueryProps.getDatabase()
description
(String description) Sets the value ofCfnNamedQueryProps.getDescription()
Sets the value ofCfnNamedQueryProps.getName()
queryString
(String queryString) Sets the value ofCfnNamedQueryProps.getQueryString()
Sets the value ofCfnNamedQueryProps.getWorkGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
database
Sets the value ofCfnNamedQueryProps.getDatabase()
- Parameters:
database
- The database to which the query belongs. This parameter is required.- Returns:
this
-
queryString
Sets the value ofCfnNamedQueryProps.getQueryString()
- Parameters:
queryString
- The SQL statements that make up the query. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnNamedQueryProps.getDescription()
- Parameters:
description
- The query description.- Returns:
this
-
name
Sets the value ofCfnNamedQueryProps.getName()
- Parameters:
name
- The query name.- Returns:
this
-
workGroup
Sets the value ofCfnNamedQueryProps.getWorkGroup()
- Parameters:
workGroup
- The name of the workgroup that contains the named query.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNamedQueryProps>
- Returns:
- a new instance of
CfnNamedQueryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-