@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DatabaseInput extends Object implements Serializable, Cloneable, StructuredPojo
The structure used to create or update a database.
Constructor and Description |
---|
DatabaseInput() |
Modifier and Type | Method and Description |
---|---|
DatabaseInput |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
DatabaseInput |
clearParametersEntries()
Removes all the entries added into Parameters.
|
DatabaseInput |
clone() |
boolean |
equals(Object obj) |
List<PrincipalPermissions> |
getCreateTableDefaultPermissions()
Creates a set of default permissions on the table for principals.
|
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 |
setCreateTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
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.
|
DatabaseInput |
withCreateTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
DatabaseInput |
withCreateTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
DatabaseInput |
withDescription(String description)
A description of the database.
|
DatabaseInput |
withFederatedDatabase(FederatedDatabase federatedDatabase)
A
FederatedDatabase structure that references an entity outside the Glue Data Catalog. |
DatabaseInput |
withLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
|
DatabaseInput |
withName(String name)
The name of the database.
|
DatabaseInput |
withParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
|
DatabaseInput |
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 DatabaseInput 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 DatabaseInput 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 DatabaseInput 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.
These key-value pairs define parameters and properties of the database.
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.
These key-value pairs define parameters and properties of the database.
parameters
- These key-value pairs define parameters and properties of the database.
These key-value pairs define parameters and properties of the database.
public DatabaseInput withParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
These key-value pairs define parameters and properties of the database.
parameters
- These key-value pairs define parameters and properties of the database.
These key-value pairs define parameters and properties of the database.
public DatabaseInput addParametersEntry(String key, String value)
public DatabaseInput clearParametersEntries()
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 DatabaseInput 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 DatabaseInput 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 DatabaseInput 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 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 DatabaseInput 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 DatabaseInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.