#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteTableInput {
#[doc(hidden)]
pub table_name: std::option::Option<std::string::String>,
}
impl DeleteTableInput {
pub fn table_name(&self) -> std::option::Option<&str> {
self.table_name.as_deref()
}
}
impl DeleteTableInput {
pub fn builder() -> crate::operation::delete_table::builders::DeleteTableInputBuilder {
crate::operation::delete_table::builders::DeleteTableInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteTableInputBuilder {
pub(crate) table_name: std::option::Option<std::string::String>,
}
impl DeleteTableInputBuilder {
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.table_name = Some(input.into());
self
}
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.table_name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_table::DeleteTableInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_table::DeleteTableInput {
table_name: self.table_name,
})
}
}