Struct aws_sdk_glue::model::database_input::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for DatabaseInput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the database.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the database.
sourcepub fn location_uri(self, input: impl Into<String>) -> Self
pub fn location_uri(self, input: impl Into<String>) -> Self
The location of the database (for example, an HDFS path).
sourcepub fn set_location_uri(self, input: Option<String>) -> Self
pub fn set_location_uri(self, input: Option<String>) -> Self
The location of the database (for example, an HDFS path).
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters.
To override the contents of this collection use set_parameters.
These key-value pairs define parameters and properties of the database.
These key-value pairs define parameters and properties of the database.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
These key-value pairs define parameters and properties of the database.
These key-value pairs define parameters and properties of the database.
sourcepub fn create_table_default_permissions(
self,
input: PrincipalPermissions
) -> Self
pub fn create_table_default_permissions(
self,
input: PrincipalPermissions
) -> Self
Appends an item to create_table_default_permissions.
To override the contents of this collection use set_create_table_default_permissions.
Creates a set of default permissions on the table for principals.
sourcepub fn set_create_table_default_permissions(
self,
input: Option<Vec<PrincipalPermissions>>
) -> Self
pub fn set_create_table_default_permissions(
self,
input: Option<Vec<PrincipalPermissions>>
) -> Self
Creates a set of default permissions on the table for principals.
sourcepub fn target_database(self, input: DatabaseIdentifier) -> Self
pub fn target_database(self, input: DatabaseIdentifier) -> Self
A DatabaseIdentifier structure that describes a target database for resource linking.
sourcepub fn set_target_database(self, input: Option<DatabaseIdentifier>) -> Self
pub fn set_target_database(self, input: Option<DatabaseIdentifier>) -> Self
A DatabaseIdentifier structure that describes a target database for resource linking.
sourcepub fn build(self) -> DatabaseInput
pub fn build(self) -> DatabaseInput
Consumes the builder and constructs a DatabaseInput.