@Generated(value="software.amazon.awssdk:codegen") public final class DatabaseInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DatabaseInput.Builder,DatabaseInput>
The structure used to create or update a database.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatabaseInput.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseInput.Builder |
builder() |
List<PrincipalPermissions> |
createTableDefaultPermissions()
Creates a set of default permissions on the table for principals.
|
String |
description()
A description of the database.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FederatedDatabase |
federatedDatabase()
A
FederatedDatabase structure that references an entity outside the Glue Data Catalog. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCreateTableDefaultPermissions()
For responses, this returns true if the service returned a value for the CreateTableDefaultPermissions property.
|
int |
hashCode() |
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
String |
locationUri()
The location of the database (for example, an HDFS path).
|
String |
name()
The name of the database.
|
Map<String,String> |
parameters()
These key-value pairs define parameters and properties of the database.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DatabaseInput.Builder> |
serializableBuilderClass() |
DatabaseIdentifier |
targetDatabase()
A
DatabaseIdentifier structure that describes a target database for resource linking. |
DatabaseInput.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
public final String description()
A description of the database.
public final String locationUri()
The location of the database (for example, an HDFS path).
public final boolean hasParameters()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameters() method.
These key-value pairs define parameters and properties of the database.
public final boolean hasCreateTableDefaultPermissions()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCreateTableDefaultPermissions() method.
public final DatabaseIdentifier targetDatabase()
A DatabaseIdentifier structure that describes a target database for resource linking.
DatabaseIdentifier structure that describes a target database for resource linking.public final FederatedDatabase federatedDatabase()
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DatabaseInput.Builder,DatabaseInput>public static DatabaseInput.Builder builder()
public static Class<? extends DatabaseInput.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.