Class CfnDatabase.DatabaseInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnDatabase.DatabaseInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatabase.DatabaseInputProperty>
- Enclosing interface:
- CfnDatabase.DatabaseInputProperty
@Stability(Stable)
public static final class CfnDatabase.DatabaseInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatabase.DatabaseInputProperty>
A builder for
CfnDatabase.DatabaseInputProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.createTableDefaultPermissions
(List<? extends Object> createTableDefaultPermissions) Sets the value ofCfnDatabase.DatabaseInputProperty.getCreateTableDefaultPermissions()
createTableDefaultPermissions
(IResolvable createTableDefaultPermissions) Sets the value ofCfnDatabase.DatabaseInputProperty.getCreateTableDefaultPermissions()
description
(String description) Sets the value ofCfnDatabase.DatabaseInputProperty.getDescription()
federatedDatabase
(IResolvable federatedDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getFederatedDatabase()
federatedDatabase
(CfnDatabase.FederatedDatabaseProperty federatedDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getFederatedDatabase()
locationUri
(String locationUri) Sets the value ofCfnDatabase.DatabaseInputProperty.getLocationUri()
Sets the value ofCfnDatabase.DatabaseInputProperty.getName()
parameters
(Object parameters) Sets the value ofCfnDatabase.DatabaseInputProperty.getParameters()
targetDatabase
(IResolvable targetDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getTargetDatabase()
targetDatabase
(CfnDatabase.DatabaseIdentifierProperty targetDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getTargetDatabase()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createTableDefaultPermissions
@Stability(Stable) public CfnDatabase.DatabaseInputProperty.Builder createTableDefaultPermissions(IResolvable createTableDefaultPermissions) Sets the value ofCfnDatabase.DatabaseInputProperty.getCreateTableDefaultPermissions()
- Parameters:
createTableDefaultPermissions
- Creates a set of default permissions on the table for principals. Used by AWS Lake Formation . Not used in the normal course of AWS Glue operations.- Returns:
this
-
createTableDefaultPermissions
@Stability(Stable) public CfnDatabase.DatabaseInputProperty.Builder createTableDefaultPermissions(List<? extends Object> createTableDefaultPermissions) Sets the value ofCfnDatabase.DatabaseInputProperty.getCreateTableDefaultPermissions()
- Parameters:
createTableDefaultPermissions
- Creates a set of default permissions on the table for principals. Used by AWS Lake Formation . Not used in the normal course of AWS Glue operations.- Returns:
this
-
description
Sets the value ofCfnDatabase.DatabaseInputProperty.getDescription()
- Parameters:
description
- A description of the database.- Returns:
this
-
federatedDatabase
@Stability(Stable) public CfnDatabase.DatabaseInputProperty.Builder federatedDatabase(IResolvable federatedDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getFederatedDatabase()
- Parameters:
federatedDatabase
-CfnDatabase.DatabaseInputProperty.FederatedDatabase
.- Returns:
this
-
federatedDatabase
@Stability(Stable) public CfnDatabase.DatabaseInputProperty.Builder federatedDatabase(CfnDatabase.FederatedDatabaseProperty federatedDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getFederatedDatabase()
- Parameters:
federatedDatabase
-CfnDatabase.DatabaseInputProperty.FederatedDatabase
.- Returns:
this
-
locationUri
Sets the value ofCfnDatabase.DatabaseInputProperty.getLocationUri()
- Parameters:
locationUri
- The location of the database (for example, an HDFS path).- Returns:
this
-
name
Sets the value ofCfnDatabase.DatabaseInputProperty.getName()
- Parameters:
name
- The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.- Returns:
this
-
parameters
Sets the value ofCfnDatabase.DatabaseInputProperty.getParameters()
- Parameters:
parameters
- These key-value pairs define parameters and properties of the database.- Returns:
this
-
targetDatabase
@Stability(Stable) public CfnDatabase.DatabaseInputProperty.Builder targetDatabase(IResolvable targetDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getTargetDatabase()
- Parameters:
targetDatabase
- ADatabaseIdentifier
structure that describes a target database for resource linking.- Returns:
this
-
targetDatabase
@Stability(Stable) public CfnDatabase.DatabaseInputProperty.Builder targetDatabase(CfnDatabase.DatabaseIdentifierProperty targetDatabase) Sets the value ofCfnDatabase.DatabaseInputProperty.getTargetDatabase()
- Parameters:
targetDatabase
- ADatabaseIdentifier
structure that describes a target database for resource linking.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDatabase.DatabaseInputProperty>
- Returns:
- a new instance of
CfnDatabase.DatabaseInputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-