@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.
|
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.
|
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 |
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.
|
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 |
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.
|
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.
public void setCreateTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
createTableDefaultPermissions
- Creates a set of default permissions on the table for principals.public DatabaseInput withCreateTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
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.public DatabaseInput withCreateTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
createTableDefaultPermissions
- Creates a set of default permissions on the table for principals.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.