Struct aws_sdk_athena::types::builders::TableMetadataBuilder
source · #[non_exhaustive]pub struct TableMetadataBuilder { /* private fields */ }Expand description
A builder for TableMetadata.
Implementations§
source§impl TableMetadataBuilder
impl TableMetadataBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the table.
This field is required.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 get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
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 get_last_access_time(&self) -> &Option<DateTime>
pub fn get_last_access_time(&self) -> &Option<DateTime>
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 get_table_type(&self) -> &Option<String>
pub fn get_table_type(&self) -> &Option<String>
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 get_columns(&self) -> &Option<Vec<Column>>
pub fn get_columns(&self) -> &Option<Vec<Column>>
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 get_partition_keys(&self) -> &Option<Vec<Column>>
pub fn get_partition_keys(&self) -> &Option<Vec<Column>>
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 get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
A set of custom key/value pairs for table properties.
sourcepub fn build(self) -> Result<TableMetadata, BuildError>
pub fn build(self) -> Result<TableMetadata, BuildError>
Consumes the builder and constructs a TableMetadata.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TableMetadataBuilder
impl Clone for TableMetadataBuilder
source§fn clone(&self) -> TableMetadataBuilder
fn clone(&self) -> TableMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TableMetadataBuilder
impl Debug for TableMetadataBuilder
source§impl Default for TableMetadataBuilder
impl Default for TableMetadataBuilder
source§fn default() -> TableMetadataBuilder
fn default() -> TableMetadataBuilder
source§impl PartialEq for TableMetadataBuilder
impl PartialEq for TableMetadataBuilder
source§fn eq(&self, other: &TableMetadataBuilder) -> bool
fn eq(&self, other: &TableMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TableMetadataBuilder
Auto Trait Implementations§
impl Freeze for TableMetadataBuilder
impl RefUnwindSafe for TableMetadataBuilder
impl Send for TableMetadataBuilder
impl Sync for TableMetadataBuilder
impl Unpin for TableMetadataBuilder
impl UnwindSafe for TableMetadataBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more