Struct aws_sdk_athena::model::table_metadata::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TableMetadata
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
The time that the table was created.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
The time that the table was created.
sourcepub fn last_access_time(self, input: DateTime) -> Self
pub fn last_access_time(self, input: DateTime) -> Self
The last time the table was accessed.
sourcepub fn set_last_access_time(self, input: Option<DateTime>) -> Self
pub fn set_last_access_time(self, input: Option<DateTime>) -> Self
The last time the table was accessed.
sourcepub fn table_type(self, input: impl Into<String>) -> Self
pub fn table_type(self, input: impl Into<String>) -> Self
The type of table. In Athena, only EXTERNAL_TABLE
is supported.
sourcepub fn set_table_type(self, input: Option<String>) -> Self
pub fn set_table_type(self, input: Option<String>) -> Self
The type of table. In Athena, only EXTERNAL_TABLE
is supported.
sourcepub fn columns(self, input: Column) -> Self
pub fn columns(self, input: Column) -> Self
Appends an item to columns
.
To override the contents of this collection use set_columns
.
A list of the columns in the table.
sourcepub fn set_columns(self, input: Option<Vec<Column>>) -> Self
pub fn set_columns(self, input: Option<Vec<Column>>) -> Self
A list of the columns in the table.
sourcepub fn partition_keys(self, input: Column) -> Self
pub fn partition_keys(self, input: Column) -> Self
Appends an item to partition_keys
.
To override the contents of this collection use set_partition_keys
.
A list of the partition keys in the table.
sourcepub fn set_partition_keys(self, input: Option<Vec<Column>>) -> Self
pub fn set_partition_keys(self, input: Option<Vec<Column>>) -> Self
A list of the partition keys in the table.
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
.
A set of custom key/value pairs for table properties.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
A set of custom key/value pairs for table properties.
sourcepub fn build(self) -> TableMetadata
pub fn build(self) -> TableMetadata
Consumes the builder and constructs a TableMetadata
.