Class CfnCrawler.SchemaChangePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnCrawler.SchemaChangePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrawler.SchemaChangePolicyProperty>
- Enclosing interface:
- CfnCrawler.SchemaChangePolicyProperty
@Stability(Stable)
public static final class CfnCrawler.SchemaChangePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrawler.SchemaChangePolicyProperty>
A builder for
CfnCrawler.SchemaChangePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deleteBehavior(String deleteBehavior) Sets the value ofCfnCrawler.SchemaChangePolicyProperty.getDeleteBehavior()updateBehavior(String updateBehavior) Sets the value ofCfnCrawler.SchemaChangePolicyProperty.getUpdateBehavior()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteBehavior
@Stability(Stable) public CfnCrawler.SchemaChangePolicyProperty.Builder deleteBehavior(String deleteBehavior) Sets the value ofCfnCrawler.SchemaChangePolicyProperty.getDeleteBehavior()- Parameters:
deleteBehavior- The deletion behavior when the crawler finds a deleted object. A value ofLOGspecifies that if a table or partition is found to no longer exist, do not delete it, only log that it was found to no longer exist.A value of
DELETE_FROM_DATABASEspecifies that if a table or partition is found to have been removed, delete it from the database.A value of
DEPRECATE_IN_DATABASEspecifies that if a table has been found to no longer exist, to add a property to the table that says "DEPRECATED" and includes a timestamp with the time of deprecation.- Returns:
this
-
updateBehavior
@Stability(Stable) public CfnCrawler.SchemaChangePolicyProperty.Builder updateBehavior(String updateBehavior) Sets the value ofCfnCrawler.SchemaChangePolicyProperty.getUpdateBehavior()- Parameters:
updateBehavior- The update behavior when the crawler finds a changed schema. A value ofLOGspecifies that if a table or a partition already exists, and a change is detected, do not update it, only log that a change was detected. Add new tables and new partitions (including on existing tables).A value of
UPDATE_IN_DATABASEspecifies that if a table or partition already exists, and a change is detected, update it. Add new tables and partitions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCrawler.SchemaChangePolicyProperty>- Returns:
- a new instance of
CfnCrawler.SchemaChangePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-