Class CfnCrawler.JdbcTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnCrawler.JdbcTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrawler.JdbcTargetProperty>
- Enclosing interface:
CfnCrawler.JdbcTargetProperty
@Stability(Stable)
public static final class CfnCrawler.JdbcTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrawler.JdbcTargetProperty>
A builder for
CfnCrawler.JdbcTargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionName(String connectionName) Sets the value ofCfnCrawler.JdbcTargetProperty.getConnectionName()enableAdditionalMetadata(List<String> enableAdditionalMetadata) Sets the value ofCfnCrawler.JdbcTargetProperty.getEnableAdditionalMetadata()exclusions(List<String> exclusions) Sets the value ofCfnCrawler.JdbcTargetProperty.getExclusions()Sets the value ofCfnCrawler.JdbcTargetProperty.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionName
@Stability(Stable) public CfnCrawler.JdbcTargetProperty.Builder connectionName(String connectionName) Sets the value ofCfnCrawler.JdbcTargetProperty.getConnectionName()- Parameters:
connectionName- The name of the connection to use to connect to the JDBC target.- Returns:
this
-
enableAdditionalMetadata
@Stability(Stable) public CfnCrawler.JdbcTargetProperty.Builder enableAdditionalMetadata(List<String> enableAdditionalMetadata) Sets the value ofCfnCrawler.JdbcTargetProperty.getEnableAdditionalMetadata()- Parameters:
enableAdditionalMetadata- Specify a value ofRAWTYPESorCOMMENTSto enable additional metadata in table responses.RAWTYPESprovides the native-level datatype.COMMENTSprovides comments associated with a column or table in the database.If you do not need additional metadata, keep the field empty.
- Returns:
this
-
exclusions
Sets the value ofCfnCrawler.JdbcTargetProperty.getExclusions()- Parameters:
exclusions- A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler .- Returns:
this
-
path
Sets the value ofCfnCrawler.JdbcTargetProperty.getPath()- Parameters:
path- The path of the JDBC target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCrawler.JdbcTargetProperty>- Returns:
- a new instance of
CfnCrawler.JdbcTargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-