Class DatabaseProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.DatabaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseProps>
- Enclosing interface:
DatabaseProps
@Stability(Deprecated)
@Deprecated
public static final class DatabaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseProps>
Deprecated.
A builder for
DatabaseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Deprecated.databaseName(String databaseName) Deprecated.description(String description) Deprecated.locationUri(String locationUri) Deprecated.removalPolicy(RemovalPolicy removalPolicy) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
catalog
Deprecated.Sets the value ofDatabaseProps.getCatalog()- Parameters:
catalog- The catalog in which the database will be placed.- Returns:
this
-
databaseName
Deprecated.Sets the value ofDatabaseProps.getDatabaseName()- Parameters:
databaseName- The name of the database.- Returns:
this
-
description
Deprecated.Sets the value ofDatabaseProps.getDescription()- Parameters:
description- A description of the database.- Returns:
this
-
locationUri
Deprecated.Sets the value ofDatabaseProps.getLocationUri()- Parameters:
locationUri- The location of the database (for example, an HDFS path).- Returns:
this
-
removalPolicy
@Stability(Deprecated) @Deprecated public DatabaseProps.Builder removalPolicy(RemovalPolicy removalPolicy) Deprecated.Sets the value ofDatabaseProps.getRemovalPolicy()- Parameters:
removalPolicy- Policy to apply when the database is removed from the stack. A database is a container for tables and their metadata, so it is retained by default to avoid accidental data loss when it is removed from a stack.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseProps>- Returns:
- a new instance of
DatabaseProps - Throws:
NullPointerException- if any required attribute was not provided
-