Interface Database.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Database.Builder,Database>
,SdkBuilder<Database.Builder,Database>
,SdkPojo
- Enclosing class:
- Database
public static interface Database.Builder extends SdkPojo, CopyableBuilder<Database.Builder,Database>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Database.Builder
catalogId(String catalogId)
The ID of the Data Catalog in which the database resides.Database.Builder
createTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.Database.Builder
createTableDefaultPermissions(Consumer<PrincipalPermissions.Builder>... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.Database.Builder
createTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.Database.Builder
createTime(Instant createTime)
The time at which the metadata database was created in the catalog.Database.Builder
description(String description)
A description of the database.default Database.Builder
federatedDatabase(Consumer<FederatedDatabase.Builder> federatedDatabase)
AFederatedDatabase
structure that references an entity outside the Glue Data Catalog.Database.Builder
federatedDatabase(FederatedDatabase federatedDatabase)
AFederatedDatabase
structure that references an entity outside the Glue Data Catalog.Database.Builder
locationUri(String locationUri)
The location of the database (for example, an HDFS path).Database.Builder
name(String name)
The name of the database.Database.Builder
parameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.default Database.Builder
targetDatabase(Consumer<DatabaseIdentifier.Builder> targetDatabase)
ADatabaseIdentifier
structure that describes a target database for resource linking.Database.Builder
targetDatabase(DatabaseIdentifier targetDatabase)
ADatabaseIdentifier
structure that describes a target database for resource linking.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
Database.Builder name(String name)
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
- Parameters:
name
- The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Database.Builder description(String description)
A description of the database.
- Parameters:
description
- A description of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locationUri
Database.Builder locationUri(String locationUri)
The location of the database (for example, an HDFS path).
- Parameters:
locationUri
- The location of the database (for example, an HDFS path).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
Database.Builder parameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
- Parameters:
parameters
- These key-value pairs define parameters and properties of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
Database.Builder createTime(Instant createTime)
The time at which the metadata database was created in the catalog.
- Parameters:
createTime
- The time at which the metadata database was created in the catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTableDefaultPermissions
Database.Builder createTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
- Parameters:
createTableDefaultPermissions
- Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTableDefaultPermissions
Database.Builder createTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
- Parameters:
createTableDefaultPermissions
- Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTableDefaultPermissions
Database.Builder createTableDefaultPermissions(Consumer<PrincipalPermissions.Builder>... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
This is a convenience method that creates an instance of thePrincipalPermissions.Builder
avoiding the need to create one manually viaPrincipalPermissions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#createTableDefaultPermissions(List
.) - Parameters:
createTableDefaultPermissions
- a consumer that will call methods onPrincipalPermissions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#createTableDefaultPermissions(java.util.Collection
)
-
targetDatabase
Database.Builder targetDatabase(DatabaseIdentifier targetDatabase)
A
DatabaseIdentifier
structure that describes a target database for resource linking.- Parameters:
targetDatabase
- ADatabaseIdentifier
structure that describes a target database for resource linking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetDatabase
default Database.Builder targetDatabase(Consumer<DatabaseIdentifier.Builder> targetDatabase)
A
This is a convenience method that creates an instance of theDatabaseIdentifier
structure that describes a target database for resource linking.DatabaseIdentifier.Builder
avoiding the need to create one manually viaDatabaseIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetDatabase(DatabaseIdentifier)
.- Parameters:
targetDatabase
- a consumer that will call methods onDatabaseIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
targetDatabase(DatabaseIdentifier)
-
catalogId
Database.Builder catalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
- Parameters:
catalogId
- The ID of the Data Catalog in which the database resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
federatedDatabase
Database.Builder federatedDatabase(FederatedDatabase federatedDatabase)
A
FederatedDatabase
structure that references an entity outside the Glue Data Catalog.- Parameters:
federatedDatabase
- AFederatedDatabase
structure that references an entity outside the Glue Data Catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
federatedDatabase
default Database.Builder federatedDatabase(Consumer<FederatedDatabase.Builder> federatedDatabase)
A
This is a convenience method that creates an instance of theFederatedDatabase
structure that references an entity outside the Glue Data Catalog.FederatedDatabase.Builder
avoiding the need to create one manually viaFederatedDatabase.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofederatedDatabase(FederatedDatabase)
.- Parameters:
federatedDatabase
- a consumer that will call methods onFederatedDatabase.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
federatedDatabase(FederatedDatabase)
-
-