@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Database extends Object implements Serializable, Cloneable, StructuredPojo
The Database
object represents a logical grouping of tables that might reside in a Hive metastore or an
RDBMS.
Constructor and Description |
---|
Database() |
Modifier and Type | Method and Description |
---|---|
Database |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
Database |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Database |
clone() |
boolean |
equals(Object obj) |
String |
getCatalogId()
The ID of the Data Catalog in which the database resides.
|
List<PrincipalPermissions> |
getCreateTableDefaultPermissions()
Creates a set of default permissions on the table for principals.
|
Date |
getCreateTime()
The time at which the metadata database was created in the catalog.
|
String |
getDescription()
A description of the database.
|
FederatedDatabase |
getFederatedDatabase()
A
FederatedDatabase structure that references an entity outside the Glue Data Catalog. |
String |
getLocationUri()
The location of the database (for example, an HDFS path).
|
String |
getName()
The name of the database.
|
Map<String,String> |
getParameters()
These key-value pairs define parameters and properties of the database.
|
DatabaseIdentifier |
getTargetDatabase()
A
DatabaseIdentifier structure that describes a target database for resource linking. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCatalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
|
void |
setCreateTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
void |
setCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
|
void |
setDescription(String description)
A description of the database.
|
void |
setFederatedDatabase(FederatedDatabase federatedDatabase)
A
FederatedDatabase structure that references an entity outside the Glue Data Catalog. |
void |
setLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
|
void |
setName(String name)
The name of the database.
|
void |
setParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
|
void |
setTargetDatabase(DatabaseIdentifier targetDatabase)
A
DatabaseIdentifier structure that describes a target database for resource linking. |
String |
toString()
Returns a string representation of this object.
|
Database |
withCatalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
|
Database |
withCreateTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
Database |
withCreateTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
Database |
withCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
|
Database |
withDescription(String description)
A description of the database.
|
Database |
withFederatedDatabase(FederatedDatabase federatedDatabase)
A
FederatedDatabase structure that references an entity outside the Glue Data Catalog. |
Database |
withLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
|
Database |
withName(String name)
The name of the database.
|
Database |
withParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
|
Database |
withTargetDatabase(DatabaseIdentifier targetDatabase)
A
DatabaseIdentifier structure that describes a target database for resource linking. |
public void setName(String name)
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
name
- The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.public String getName()
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
public Database withName(String name)
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
name
- The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.public void setDescription(String description)
A description of the database.
description
- A description of the database.public String getDescription()
A description of the database.
public Database withDescription(String description)
A description of the database.
description
- A description of the database.public void setLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
locationUri
- The location of the database (for example, an HDFS path).public String getLocationUri()
The location of the database (for example, an HDFS path).
public Database withLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
locationUri
- The location of the database (for example, an HDFS path).public Map<String,String> getParameters()
These key-value pairs define parameters and properties of the database.
public void setParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
parameters
- These key-value pairs define parameters and properties of the database.public Database withParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
parameters
- These key-value pairs define parameters and properties of the database.public Database addParametersEntry(String key, String value)
public Database clearParametersEntries()
public void setCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
createTime
- The time at which the metadata database was created in the catalog.public Date getCreateTime()
The time at which the metadata database was created in the catalog.
public Database withCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
createTime
- The time at which the metadata database was created in the catalog.public List<PrincipalPermissions> getCreateTableDefaultPermissions()
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
public void setCreateTableDefaultPermissions(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.
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.public Database withCreateTableDefaultPermissions(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.
NOTE: This method appends the values to the existing list (if any). Use
setCreateTableDefaultPermissions(java.util.Collection)
or
withCreateTableDefaultPermissions(java.util.Collection)
if you want to override the existing values.
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.public Database withCreateTableDefaultPermissions(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.
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.public void setTargetDatabase(DatabaseIdentifier targetDatabase)
A DatabaseIdentifier
structure that describes a target database for resource linking.
targetDatabase
- A DatabaseIdentifier
structure that describes a target database for resource linking.public DatabaseIdentifier getTargetDatabase()
A DatabaseIdentifier
structure that describes a target database for resource linking.
DatabaseIdentifier
structure that describes a target database for resource linking.public Database withTargetDatabase(DatabaseIdentifier targetDatabase)
A DatabaseIdentifier
structure that describes a target database for resource linking.
targetDatabase
- A DatabaseIdentifier
structure that describes a target database for resource linking.public void setCatalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
catalogId
- The ID of the Data Catalog in which the database resides.public String getCatalogId()
The ID of the Data Catalog in which the database resides.
public Database withCatalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
catalogId
- The ID of the Data Catalog in which the database resides.public void setFederatedDatabase(FederatedDatabase federatedDatabase)
A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.
federatedDatabase
- A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.public FederatedDatabase getFederatedDatabase()
A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.
FederatedDatabase
structure that references an entity outside the Glue Data Catalog.public Database withFederatedDatabase(FederatedDatabase federatedDatabase)
A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.
federatedDatabase
- A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.