Class CfnDatabaseProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnDatabaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatabaseProps>
- Enclosing interface:
- CfnDatabaseProps
@Stability(Stable)
public static final class CfnDatabaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatabaseProps>
A builder for
CfnDatabaseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDatabaseProps.getCatalogId()databaseInput(IResolvable databaseInput) Sets the value ofCfnDatabaseProps.getDatabaseInput()databaseInput(CfnDatabase.DatabaseInputProperty databaseInput) Sets the value ofCfnDatabaseProps.getDatabaseInput()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
catalogId
Sets the value ofCfnDatabaseProps.getCatalogId()- Parameters:
catalogId- The AWS account ID for the account in which to create the catalog object. This parameter is required.To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId- Returns:
this
-
databaseInput
Sets the value ofCfnDatabaseProps.getDatabaseInput()- Parameters:
databaseInput- The metadata for the database. This parameter is required.- Returns:
this
-
databaseInput
@Stability(Stable) public CfnDatabaseProps.Builder databaseInput(CfnDatabase.DatabaseInputProperty databaseInput) Sets the value ofCfnDatabaseProps.getDatabaseInput()- Parameters:
databaseInput- The metadata for the database. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatabaseProps>- Returns:
- a new instance of
CfnDatabaseProps - Throws:
NullPointerException- if any required attribute was not provided
-