Class CfnDataset.DatabaseInputDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.databrew.CfnDataset.DatabaseInputDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.DatabaseInputDefinitionProperty>
- Enclosing interface:
CfnDataset.DatabaseInputDefinitionProperty
@Stability(Stable)
public static final class CfnDataset.DatabaseInputDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset.DatabaseInputDefinitionProperty>
A builder for
CfnDataset.DatabaseInputDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.databaseTableName
(String databaseTableName) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getDatabaseTableName()
glueConnectionName
(String glueConnectionName) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getGlueConnectionName()
queryString
(String queryString) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getQueryString()
tempDirectory
(IResolvable tempDirectory) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getTempDirectory()
tempDirectory
(CfnDataset.S3LocationProperty tempDirectory) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getTempDirectory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
glueConnectionName
@Stability(Stable) public CfnDataset.DatabaseInputDefinitionProperty.Builder glueConnectionName(String glueConnectionName) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getGlueConnectionName()
- Parameters:
glueConnectionName
- The AWS Glue Connection that stores the connection information for the target database. This parameter is required.- Returns:
this
-
databaseTableName
@Stability(Stable) public CfnDataset.DatabaseInputDefinitionProperty.Builder databaseTableName(String databaseTableName) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getDatabaseTableName()
- Parameters:
databaseTableName
- The table within the target database.- Returns:
this
-
queryString
@Stability(Stable) public CfnDataset.DatabaseInputDefinitionProperty.Builder queryString(String queryString) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getQueryString()
- Parameters:
queryString
- Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs.- Returns:
this
-
tempDirectory
@Stability(Stable) public CfnDataset.DatabaseInputDefinitionProperty.Builder tempDirectory(IResolvable tempDirectory) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getTempDirectory()
- Parameters:
tempDirectory
- An Amazon location that AWS Glue Data Catalog can use as a temporary directory.- Returns:
this
-
tempDirectory
@Stability(Stable) public CfnDataset.DatabaseInputDefinitionProperty.Builder tempDirectory(CfnDataset.S3LocationProperty tempDirectory) Sets the value ofCfnDataset.DatabaseInputDefinitionProperty.getTempDirectory()
- Parameters:
tempDirectory
- An Amazon location that AWS Glue Data Catalog can use as a temporary directory.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataset.DatabaseInputDefinitionProperty>
- Returns:
- a new instance of
CfnDataset.DatabaseInputDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-